.preorder-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.preorder-modal.is-open {
  display: flex;
}

.preorder-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.preorder-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  font-family: 'Universal Sans Display Trial';
}

.preorder-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #ececec;
}

.preorder-modal__title {
  margin: 0;
  font-family: 'Universal Sans Display Trial';
  font-weight: 300;
  font-size: 22px;
  color: #000;
}

.preorder-modal__close {
  background: none;
  border: 0;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  color: #6f6f6f;
}

.preorder-modal__close:hover {
  color: #000;
}

.preorder-modal__body {
  padding: 24px 28px 28px;
}

.preorder-modal__colour {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6f6f6f;
}

.preorder-modal__colour span {
  color: #000;
  font-weight: 600;
}

.preorder-modal__field {
  display: block;
  margin: 0 0 16px;
}

.preorder-modal__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6f6f6f;
}

.preorder-modal__select,
.preorder-modal__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Universal Sans Display Trial';
  color: #000;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  box-sizing: border-box;
  appearance: auto;
}

.preorder-modal__input.is-invalid {
  border-color: #c0392b;
}

.preorder-modal__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9a9a9a;
}

.preorder-modal__shipping-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #6f6f6f;
  background: #f7f7f7;
  border-radius: 6px;
}

.preorder-modal__summary {
  margin-top: 20px;
  padding: 16px 18px;
  background: #f7f7f7;
  border-radius: 8px;
}

.preorder-modal__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #444;
  padding: 4px 0;
}

.preorder-modal__summary-row--total {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  border-top: 1px solid #e2e2e2;
  margin-top: 6px;
  padding-top: 10px;
}

.preorder-modal__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9a9a9a;
}

.preorder-modal__error {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 13px;
  color: #c0392b;
}

.preorder-modal__submit {
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #000;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.preorder-modal__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.preorder-modal__submit:not(:disabled):hover {
  background: #222;
}

@media (max-width: 600px) {
  .preorder-modal {
    padding: 0;
    align-items: flex-end;
  }
  .preorder-modal__card {
    max-width: none;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
  }
}

/* Preorder success screen — shown full-viewport when the customer lands
   back on /product/ from Stripe with ?preorder=success. Modeled on the
   site's existing .video-modal full-bleed dark overlay (see above) for
   visual consistency, per the Figma "Access Confirmed" template. */
.preorder-success {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

.preorder-success.is-open {
  display: flex;
}

.preorder-success__close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Universal Sans Display Trial';
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.preorder-success__content {
  width: 100%;
  max-width: 640px;
  padding: 0 32px;
  text-align: center;
  color: #fff;
}

.preorder-success__label {
  margin: 0 0 24px;
  font-family: 'Universal Sans Display Trial';
  font-weight: 200;
  font-size: 20px;
  color: #fff;
}

.preorder-success__headline {
  margin: 0 0 28px;
  font-family: 'Universal Sans Display Trial';
  font-weight: 250;
  font-size: 48px;
  line-height: 1.15;
  color: #fff;
}

.preorder-success__body {
  margin: 0;
  font-family: 'Universal Sans Display Trial';
  font-weight: 200;
  font-size: 22px;
  line-height: 1.5;
  color: #fff;
}

.preorder-success__footer {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  text-align: center;
}

.preorder-success__follow {
  margin: 0 0 14px;
  font-family: 'Universal Sans Display Trial';
  font-weight: 200;
  font-size: 16px;
  color: #fff;
}

.preorder-success__social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preorder-success__social a {
  font-family: 'Universal Sans Display Trial';
  font-size: 15px;
  line-height: 1.6;
  color: #6f6f6f;
  text-decoration: none;
}

.preorder-success__social a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .preorder-success__close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .preorder-success__headline {
    font-size: 30px;
  }
  .preorder-success__body {
    font-size: 17px;
  }
  .preorder-success__footer {
    bottom: 32px;
  }
}


.preorder-modal,.preorder-success{font-family:var(--font-brand)}
.preorder-modal__hint,.preorder-modal__note,.preorder-modal__shipping-note{font-size:14px;line-height:1.5;color:#6f6f6f}
.preorder-modal__label,.preorder-modal__error{font-size:15px;line-height:1.4}
.preorder-modal__colour,.preorder-modal__summary-row{font-size:16px;line-height:1.4}
.preorder-modal__select,.preorder-modal__input{font-size:16px}
