
.checkout-box {
  background: var(--surface, #111);
  border: 1px solid var(--border, #222);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.checkout-price {
  margin-bottom: 1.5rem;
}
.checkout-badge-free {
  background: var(--accent, #C9A96E);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.checkout-old-price {
  text-decoration: line-through;
  color: var(--muted, #888);
  font-size: 0.9rem;
  display: block;
}
.checkout-current-price {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  color: var(--text, #F5F5F0);
}
.checkout-savings {
  display: block;
  color: #4ade80;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.checkout-section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border, #222);
}
.checkout-link {
  background: none;
  border: none;
  color: var(--accent, #C9A96E);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}
.checkout-gateway {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border, #222);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.checkout-gateway.selected {
  border-color: var(--accent, #C9A96E);
}
.checkout-gateway.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.checkout-gateway input[type="radio"] {
  width: auto;
  margin: 0;
}
.checkout-gateway-info-box {
  background: rgba(201,169,110,0.1);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted, #888);
  margin-top: 0.5rem;
}
.checkout-input {
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, #222);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--text, #F5F5F0);
  font-size: 0.85rem;
  width: 100%;
}
.checkout-cta {
  width: 100%;
  background: var(--accent, #C9A96E);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.checkout-cta:hover { opacity: 0.85; }
.checkout-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.checkout-meta {
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted, #888);
}
.checkout-trust {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #222);
  font-size: 0.8rem;
  color: var(--muted, #888);
  text-align: center;
}
.checkout-badge {
  display: inline-block;
  background: var(--border, #222);
  color: var(--muted, #888);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.countdown-timer {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  color: var(--text, #F5F5F0);
  margin-top: 0.35rem;
}

/* ── Social proof + guarantee above CTA ─────────────────────────────────── */
.checkout-social-proof,
.checkout-guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(201,169,110,0.07);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text, #F5F5F0);
  margin-top: 0.75rem;
}
.checkout-social-proof strong,
.checkout-guarantee strong {
  color: var(--accent, #C9A96E);
  font-weight: 700;
}
.checkout-sp-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── CTA wrapper + microcopy ────────────────────────────────────────────── */
.checkout-cta-wrap {
  margin-top: 1.25rem;
}
.checkout-cta-microcopy {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted, #888);
  line-height: 1.3;
}

/* ── Mobile sticky CTA bar ──────────────────────────────────────────────── */
.checkout-mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  /* Unstick the desktop sidebar widget so it flows inline on mobile */
  .checkout-box {
    position: static;
    top: auto;
  }
  .checkout-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border, #222);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
  }
  .checkout-mobile-price {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex-shrink: 0;
  }
  .checkout-mobile-price strong {
    font-family: 'Instrument Serif', serif;
    font-size: 1.15rem;
    color: var(--text, #F5F5F0);
  }
  .checkout-mobile-price small {
    text-decoration: line-through;
    color: var(--muted, #888);
    font-size: 0.75rem;
  }
  .checkout-mobile-cta {
    flex: 1;
    width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .checkout-mobile-bar.is-hidden {
    transform: translateY(120%);
    transition: transform 0.25s ease;
    pointer-events: none;
  }
  .checkout-mobile-bar {
    transition: transform 0.25s ease;
  }
  /* Extra bottom padding so the bar doesn't cover page content */
  body.has-checkout-bar { padding-bottom: 80px; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ── Select2 — dark theme (MD_Frontend) ─────────────────────────────────── */
/* Override Bootstrap CSS custom properties used by this select2.css build */
:root,
body,
.select2-dropdown,
.select2-container {
  --bs-select-dropdown-bg: #111;
  --bs-select-dropdown-border-color: #333;
  --bs-select-dropdown-border-width: 1px;
  --bs-select-dropdown-box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  --bs-select-dropdown-link-hover-bg: rgba(201,169,110,0.2);
  --bs-select-dropdown-link-active-bg: rgba(201,169,110,0.3);
  --bs-heading-color: #F5F5F0;
}
.select2-container--default .select2-selection--single {
  background-color: #0A0A0A !important;
  border: 1px solid #222 !important;
  border-radius: 8px !important;
  height: auto !important;
  padding: 0.45rem 0.75rem !important;
  color: #F5F5F0 !important;
  font-size: 0.85rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #F5F5F0 !important;
  line-height: 1.5 !important;
  padding: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #888 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 8px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #C9A96E !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(201,169,110,0.15) !important;
}
.select2-container { z-index: 99999 !important; }
.select2-dropdown {
  background-color: #111 !important;
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8) !important;
  font-size: 0.85rem !important;
  overflow: hidden !important;
  z-index: 99999 !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 6px !important;
  color: #F5F5F0 !important;
  font-size: 0.85rem !important;
  padding: 0.4rem 0.6rem !important;
  margin: 6px !important;
  width: calc(100% - 12px) !important;
  box-sizing: border-box !important;
  outline: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #C9A96E !important;
}
.select2-results__option {
  color: #F5F5F0 !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.85rem !important;
  background-color: transparent !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(201,169,110,0.2) !important;
  color: #C9A96E !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(201,169,110,0.3) !important;
  color: #C9A96E !important;
}
.select2-results__options { max-height: 220px !important; }
.select2-results,
.select2-results__options {
  background-color: #111 !important;
}
