:root {
  --bpo-black: #111111;
  --bpo-text: #242424;
  --bpo-muted: #777b80;
  --bpo-line: #e6e6e6;
  --bpo-field: #f9fafa;
  --bpo-white: #ffffff;
  --bpo-error: #9d2727;
}

.bpo-preorder-product .summary > .price,
.bpo-preorder-eligible .price,
.bpo-preorder-product .stock,
.bpo-preorder-product .wd-buy-now-btn,
.bpo-preorder-product .single_add_to_cart_button:not(.bpo-preorder-button) {
  display: none !important;
}

.bpo-preorder-button {
  cursor: pointer;
}

.bpo-variation-preorder-button[hidden],
.variations_form .single_add_to_cart_button[hidden],
.variations_form .quantity[hidden] {
  display: none !important;
}

.bpo-preorder-button--single {
  min-width: 146px;
  margin: 0 0 28px;
}

.bpo-modal[hidden] {
  display: none !important;
}

.bpo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Roboto, Arial, sans-serif;
}

.bpo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.58);
  backdrop-filter: blur(3px);
}

.bpo-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 66%);
  width: min(1040px, 100%);
  max-height: min(92vh, 900px);
  overflow: hidden;
  background: var(--bpo-white);
  color: var(--bpo-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.bpo-modal__close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #151515;
  font: 300 31px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.bpo-modal__close:hover,
.bpo-modal__close:focus-visible {
  background: #f0f0f0;
  transform: rotate(4deg);
}

.bpo-modal__product {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 42px 34px;
  border-right: 1px solid var(--bpo-line);
  background: #fafafa;
}

.bpo-modal__eyebrow {
  margin: 0 0 14px;
  color: var(--bpo-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bpo-modal__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: auto 0 24px;
  object-fit: contain;
  background: var(--bpo-white);
}

.bpo-modal__product-name {
  margin: 0 0 8px;
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 400;
  line-height: 1.25;
}

.bpo-modal__sku-wrap {
  margin: 0;
  color: var(--bpo-muted);
  font-size: 12px;
}

.bpo-modal__sku-wrap strong {
  color: #454545;
  font-weight: 500;
}

.bpo-modal__content {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px 48px 48px;
}

.bpo-modal__content h2 {
  margin: 0 0 12px;
  color: #181818;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3vw, 45px);
  font-weight: 400;
  line-height: 1.12;
}

.bpo-modal__intro {
  max-width: 620px;
  margin: 0 0 30px;
  color: #666b70;
  font-size: 14px;
  line-height: 1.65;
}

.bpo-form__fields {
  display: flow-root;
}

.bpo-form .form-row {
  margin: 0 0 18px;
  padding: 0;
}

.bpo-form .form-row-first,
.bpo-form .form-row-last {
  width: calc(50% - 8px);
}

.bpo-form .form-row-first {
  float: left;
}

.bpo-form .form-row-last {
  float: right;
}

.bpo-form .form-row-wide {
  clear: both;
  width: 100%;
}

.bpo-form label:not(.bpo-consent) {
  display: block;
  margin: 0 0 7px;
  color: #535960;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.bpo-form label .required {
  color: #dc6b71;
}

.bpo-form input[type="text"],
.bpo-form input[type="email"],
.bpo-form input[type="tel"],
.bpo-form select,
.bpo-form textarea,
.bpo-form .select2-container .select2-selection--single {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  outline: none;
  background: var(--bpo-field);
  color: #4a5055;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bpo-form textarea {
  min-height: 105px;
  resize: vertical;
}

.bpo-form input:focus,
.bpo-form select:focus,
.bpo-form textarea:focus,
.bpo-form .select2-container--focus .select2-selection--single {
  border-color: #969696;
  background: #fff;
  box-shadow: 0 0 0 1px #969696;
}

.bpo-form .select2-container {
  width: 100% !important;
}

.bpo-form .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 18px;
}

.bpo-form .select2-container .select2-selection--single .select2-selection__arrow {
  top: 10px;
  right: 8px;
}

.bpo-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 18px;
  color: #5f6468;
  font-size: 12px;
  line-height: 1.55;
}

.bpo-consent input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
}

.bpo-consent a {
  color: #1c1c1c;
  text-decoration: underline;
}

.bpo-turnstile-wrap {
  margin: 0 0 18px;
}

.bpo-form__configuration-warning,
.bpo-form__message {
  margin: 0 0 16px;
  color: var(--bpo-error);
  font-size: 13px;
  line-height: 1.5;
}

.bpo-form__message:empty {
  display: none;
}

.bpo-form__message.is-success {
  color: #22633a;
}

.bpo-form__submit,
.bpo-modal__done {
  width: 100%;
  min-height: 49px;
  padding: 14px 24px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--bpo-black) !important;
  color: #fff !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.bpo-form__submit:hover,
.bpo-modal__done:hover {
  background: #2b2b2b !important;
}

.bpo-form__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bpo-modal__success {
  min-height: 470px;
  padding-top: 52px;
  text-align: center;
}

.bpo-modal__success-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 28px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  color: #1f1f1f;
  font-size: 28px;
}

.bpo-modal__success .bpo-modal__eyebrow {
  text-align: center;
}

.bpo-modal__success-message {
  max-width: 500px;
  margin: 18px auto 30px;
  color: #62676c;
  font-size: 15px;
  line-height: 1.7;
}

.bpo-modal__done {
  width: auto;
  min-width: 180px;
}

body.bpo-modal-open {
  overflow: hidden !important;
}

@media (max-width: 820px) {
  .bpo-modal {
    align-items: end;
    padding: 0;
  }

  .bpo-modal__dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 94vh;
    overflow-y: auto;
  }

  .bpo-modal__product {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 18px;
    min-height: auto;
    padding: 22px 58px 22px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--bpo-line);
  }

  .bpo-modal__product .bpo-modal__eyebrow {
    grid-column: 2;
    margin-bottom: 7px;
  }

  .bpo-modal__image {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 104px;
    margin: 0;
  }

  .bpo-modal__product-name {
    grid-column: 2;
    font-size: 22px;
  }

  .bpo-modal__sku-wrap {
    grid-column: 2;
  }

  .bpo-modal__content {
    overflow: visible;
    padding: 30px 24px 36px;
  }

  .bpo-modal__content h2 {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .bpo-form .form-row-first,
  .bpo-form .form-row-last {
    float: none;
    width: 100%;
  }

  .bpo-modal__product {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .bpo-modal__image {
    width: 82px;
  }

  .bpo-modal__content {
    padding-right: 18px;
    padding-left: 18px;
  }
}
