.checkout-popup[hidden] { display: none !important; }
.checkout-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: radial-gradient(ellipse at 50% 38%, rgba(243, 198, 143, .11), transparent 43%), rgba(3, 5, 9, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}
.checkout-popup__panel {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 34rem);
  max-height: min(90vh, 52rem);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgba(243, 198, 143, .22);
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% -10%, rgba(243, 198, 143, .1), transparent 48%), linear-gradient(155deg, #151922, #0f1218 72%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72), 0 0 48px rgba(243, 198, 143, .07), inset 0 1px 0 rgba(255, 255, 255, .055);
  color: #f3e6d0;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 198, 143, .35) transparent;
}
.checkout-popup__panel::before {
  position: absolute;
  top: 0;
  left: 18%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 198, 143, .82), transparent);
  content: "";
  pointer-events: none;
}
.checkout-popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #c7cbd1;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.checkout-popup__close:hover { transform: rotate(90deg); border-color: rgba(243, 198, 143, .5); background: rgba(243, 198, 143, .09); color: #fff; }
.checkout-popup__panel :focus-visible { outline: 2px solid #f3c68f; outline-offset: 3px; }
.checkout-popup__eyebrow {
  margin: 0 auto;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 1.6rem;
  border: 1px solid rgba(243, 198, 143, .22);
  border-radius: 999px;
  background: rgba(243, 198, 143, .055);
  padding: .25rem .65rem;
  letter-spacing: .16em;
}
.checkout-popup__title { max-width: 23rem; margin-inline: auto; padding-right: 0 !important; text-align: center; font-size: clamp(1.25rem, 4vw, 1.55rem); line-height: 1.25; }
.checkout-popup__description { max-width: 25rem; margin-inline: auto; text-align: center; }
.checkout-popup__section-heading { justify-content: center; text-align: center; }
.checkout-popup__panel h3 { display: flex; align-items: center; gap: .6rem; }
.checkout-popup__panel h3::after { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(243, 198, 143, .22), transparent); content: ""; }
.checkout-popup__section-heading::before,
.checkout-popup__section-heading::after { height: 1px; flex: 1 1 0; background: linear-gradient(90deg, transparent, rgba(243, 198, 143, .4)); content: ""; }
.checkout-popup__section-heading::after { background: linear-gradient(90deg, rgba(243, 198, 143, .4), transparent); }
.checkout-popup__summary {
  display: grid;
  gap: .8rem;
  margin-top: .75rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(243, 198, 143, .14);
  border-radius: 10px;
  background: linear-gradient(125deg, rgba(243, 198, 143, .055), rgba(255, 255, 255, .018) 56%);
}
.checkout-popup__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  font-size: .875rem;
}
.checkout-popup__summary-row dt { color: #a6abb4; }
.checkout-popup__summary-row dd { max-width: 62%; margin: 0; overflow-wrap: anywhere; text-align: right; color: #f3f4f6; font-weight: 600; }
.checkout-popup__summary-row--total { padding-top: .8rem; border-top: 1px solid rgba(243, 198, 143, .15); }
.checkout-popup__summary-row--total dt { color: #d1d5db; font-weight: 600; }
.checkout-popup__summary-row--total dd { color: #f3c68f; font-size: 1.125rem; font-weight: 800; }
.checkout-popup__form { display: grid; gap: .85rem; margin-top: .8rem; }
.checkout-popup__name-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: .75rem; }
.checkout-popup__email-phone-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
.checkout-popup__field { display: grid; gap: .45rem; min-width: 0; color: #e3e5e8; font-size: .82rem; font-weight: 600; }
.checkout-popup__field-label { display: inline-flex; width: fit-content; align-items: center; gap: .45rem; color: #e8e4dc; font-size: .82rem; letter-spacing: .01em; }
.checkout-popup__field-label svg { width: 1rem; height: 1rem; color: #d4ad7d; opacity: .95; }
.checkout-popup__required { margin-left: -.2rem; color: #f0b978; font-size: .95rem; line-height: 1; }
.checkout-popup__phone-entry { display: flex; align-items: center; width: 100%; min-width: 0; height: 2.9rem; overflow: hidden; border: 1px solid rgba(243, 198, 143, .17); border-radius: 8px; background: rgba(255, 255, 255, .045); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035); transition: border-color .2s, box-shadow .2s, background .2s; }
.checkout-popup__phone-entry:focus-within { border-color: rgba(243, 198, 143, .7); background: rgba(255, 255, 255, .045); box-shadow: 0 0 0 3px rgba(243, 198, 143, .09); }
.checkout-popup__phone-code-control { position: relative; display: inline-flex; height: 100%; width: auto; min-width: 0; flex: 0 0 auto; align-items: center; justify-content: center; gap: .38rem; padding: 0 .55rem; border: 0; border-right: 1px solid rgba(243, 198, 143, .16); border-radius: 0; background: rgba(243, 198, 143, .045); color: #d1d5db; font: inherit; white-space: nowrap; cursor: pointer; transition: background .2s; }
.checkout-popup__phone-code-control:hover { background: rgba(243, 198, 143, .1); }
.checkout-popup__phone-code-control:focus-visible { outline: 2px solid #f3c68f; outline-offset: -3px; }
.checkout-popup__phone-code-control > .checkout-popup__phone-flag { display: inline-grid; width: 1rem; height: .75rem; place-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 2px; font-size: .65rem; line-height: 1; }
.checkout-popup__phone-code-control > .checkout-popup__phone-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.checkout-popup__phone-code-control > svg { width: .65rem; height: .65rem; fill: #d4ad7d; }


.checkout-popup__phone-entry .checkout-popup__phone-number { height: 100%; border: 0; border-radius: 0; background: transparent; padding: .5rem .65rem; color: #fff; box-shadow: none; }
.checkout-popup__phone-number::placeholder { color: #8b929d; }
.checkout-popup__phone-entry .checkout-popup__phone-number:focus { border: 0; background: transparent; box-shadow: none; }
.checkout-popup__select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4ad7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  cursor: pointer;
}
.checkout-popup__select option { background: #11151c; color: #f3e6d0; }


.checkout-popup__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(243, 198, 143, .17);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  min-height: 2.9rem;
  padding: .72rem .9rem;
  color: #fff;
  color-scheme: dark;
  outline: none;
  font: inherit;
  font-weight: 400;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.checkout-popup__input::placeholder { color: #8b929d; }
.checkout-popup__input:focus { border-color: rgba(243, 198, 143, .7); background: rgba(255, 255, 255, .045); box-shadow: 0 0 0 3px rgba(243, 198, 143, .09); }
.checkout-popup__input:focus-visible { outline: none; }
.checkout-popup__input:hover:not(:focus) { border-color: rgba(255, 255, 255, .18); }
.checkout-popup__input[aria-invalid="true"] { border-color: rgba(248, 113, 113, .72); box-shadow: 0 0 0 3px rgba(248, 113, 113, .08); }
.checkout-popup__submit {
  width: 100%;
  margin-top: .2rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(105deg, #f3d2a5, #e9b875 52%, #dfa25d);
  padding: .88rem 1.25rem;
  color: #18120a;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220, 161, 91, .16), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: filter .2s, box-shadow .2s;
}
.checkout-popup__submit:hover { filter: brightness(1.05); box-shadow: 0 11px 28px rgba(220, 161, 91, .22), inset 0 1px 0 rgba(255, 255, 255, .4); }
.checkout-popup__submit:disabled { cursor: wait; opacity: .6; }
.checkout-popup__status { min-height: 1.25rem; margin: 0; text-align: center; font-size: .875rem; }
.checkout-popup__status[data-tone="success"] { color: #6ee7b7; }
.checkout-popup__status[data-tone="error"] { color: #fda4af; }
.checkout-popup__extension[hidden] { display: none !important; }
.checkout-popup__honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.checkout-popup[data-checkout-popup]:not([hidden]) { animation: checkout-backdrop-enter 220ms ease-out both; }
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__panel { animation: checkout-panel-enter 320ms cubic-bezier(.2, .75, .25, 1) both; }
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__form > .checkout-popup__name-fields,
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__form > .checkout-popup__email-phone-fields,
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__form > .checkout-popup__field {
  animation: checkout-field-enter 300ms cubic-bezier(.2, .7, .2, 1) both;
}
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__form > .checkout-popup__name-fields { animation-delay: 25ms; }
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__form > .checkout-popup__email-phone-fields { animation-delay: 65ms; }
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__form > .checkout-popup__field:nth-of-type(1) { animation-delay: 105ms; }
.checkout-popup[data-checkout-popup]:not([hidden]) .checkout-popup__form > .checkout-popup__field:nth-of-type(2) { animation-delay: 145ms; }
@keyframes checkout-field-enter {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes checkout-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes checkout-panel-enter { from { opacity: 0; transform: translateY(10px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 640px) { .checkout-popup__panel { padding: 1.7rem; } }
@media (max-width: 480px) { .checkout-popup { place-items: center; padding: .75rem; } .checkout-popup__panel { max-height: 92dvh; padding: 1.15rem; border-radius: 10px; } .checkout-popup__close { top: .7rem; right: .7rem; } }
@media (max-width: 420px) { .checkout-popup__email-phone-fields { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .checkout-popup { padding: .55rem; } .checkout-popup__panel { padding: .95rem; } .checkout-popup__name-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .checkout-popup *, .checkout-popup *::before, .checkout-popup *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
.checkout-popup__submit { position: static; }
.checkout-popup__country-trigger { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.checkout-popup__country-value { display: inline-flex; min-width: 0; align-items: center; gap: .65rem; }
.checkout-popup__country-flag { display: inline-grid; width: 1.25rem; height: 1rem; flex: 0 0 1.25rem; place-items: center; font-size: 1rem; line-height: 1; }
.checkout-popup__country-flag > img { display: block; width: 100%; height: 100%; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.checkout-popup__country-flag > svg { display: block; width: 1rem; height: 1rem; color: #d4ad7d; }
.checkout-country-picker[hidden] { display: none !important; }
.checkout-country-picker { position: absolute; z-index: 30; display: flex; flex-direction: column; gap: .45rem; box-sizing: border-box; width: min(18rem, calc(100vw - 2rem)); max-height: min(22rem, calc(100dvh - 2rem)); overflow: hidden; padding: .7rem; border: 1px solid rgba(243, 198, 143, .24); border-radius: 8px; background: linear-gradient(155deg, #171c25, #10141b 76%); color: #f8fafc; box-shadow: 0 18px 48px rgba(0, 0, 0, .58), 0 0 24px rgba(243, 198, 143, .06); }
.checkout-country-picker__search { box-sizing: border-box; width: 100%; min-height: 2.7rem; border: 1px solid rgba(243, 198, 143, .2); border-radius: 8px; background: rgba(255, 255, 255, .055); padding: .65rem .8rem; color: #f8fafc; color-scheme: dark; font: inherit; font-size: .875rem; outline: none; }
.checkout-country-picker__search::placeholder { color: #9ca3af; }
.checkout-country-picker__search:focus { border-color: rgba(243, 198, 143, .7); box-shadow: 0 0 0 3px rgba(243, 198, 143, .09); }
.checkout-country-picker__search:focus-visible { outline: none; }
.checkout-country-picker__list { min-height: 0; max-height: 16rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(243, 198, 143, .35) transparent; }
.checkout-country-picker__option { display: flex; width: 100%; min-height: 2.55rem; align-items: center; gap: .65rem; border: 0; border-radius: 8px; background: transparent; padding: .45rem .55rem; color: #e2e8f0; text-align: left; font: inherit; font-size: .875rem; cursor: pointer; }
.checkout-country-picker__option:hover, .checkout-country-picker__option:focus-visible, .checkout-country-picker__option[aria-selected="true"] { background: rgba(243, 198, 143, .11); color: #fff; outline: none; }
.checkout-country-picker__flag { display: inline-grid; width: 1.45rem; height: .95rem; flex: 0 0 1.45rem; place-items: center; overflow: hidden; border-radius: 2px; font-size: 1.1rem; line-height: 1; text-align: center; }
.checkout-country-picker__flag > img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.checkout-country-picker__name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.checkout-country-picker__empty { margin: .2rem 0 0; padding: .65rem .5rem .25rem; color: #a6abb4; text-align: center; font-size: .82rem; }
.checkout-popup__phone-prefix { flex: 0 0 auto; padding: 0; border: 0; color: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.checkout-country-picker__dial-code { flex: 0 0 auto; color: #f3c68f; font-size: .82rem; font-weight: 700; }
.checkout-country-picker__search::-webkit-search-cancel-button { filter: grayscale(1) sepia(1) saturate(2) hue-rotate(350deg) brightness(1.08); opacity: .9; cursor: pointer; }

/* Checkout summary hierarchy and a clear mobile action area. */
.checkout-popup__section-heading { color: #f3e6d0; }
.checkout-popup__summary { gap: .65rem; padding: .9rem 1rem; }
.checkout-popup__summary-row--total dd { font-size: 1.2rem; }
.checkout-popup__actions { display: grid; gap: .55rem; margin-top: .2rem; position: static; inset: auto; transform: none; }
.checkout-popup__actions .checkout-popup__submit { margin-top: 0; }
.checkout-popup__reassurance { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; color: #d1d5db; text-align: center; font-size: .77rem; font-weight: 600; line-height: 1.45; }
.checkout-popup__reassurance svg { width: .95rem; height: .95rem; flex: 0 0 auto; color: #d4ad7d; }

/* Mobile checkout viewport and input sizing */
.checkout-popup {
  box-sizing: border-box;
  top: var(--checkout-popup-viewport-top, 0px);
  bottom: auto;
  height: var(--checkout-popup-viewport-height, 100vh);
}

.checkout-popup__panel {
  min-height: 0;
  max-height: min(calc(var(--checkout-popup-viewport-height, 100vh) - 2rem), 52rem);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .checkout-popup input:not([type="hidden"]),
  .checkout-popup select,
  .checkout-popup textarea,
  .checkout-popup .checkout-popup__select {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .checkout-popup__panel {
    max-height: min(92vh, calc(var(--checkout-popup-viewport-height, 100vh) - 1.5rem));
  }
}

/* Mobile checkout focus scrolling and lower-field reachability */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .checkout-popup__panel {
    padding-bottom: max(2rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)));
    scroll-padding-block: 1rem;
  }
}

@media (max-width: 480px) {
  .checkout-popup__panel {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }
}
