/* ═══════════════════════════════════════════════════════════════════════════
   BHOA Checkout — .bhoa-co__* token system
   Mobile-first · Squircle shapes · Shadow-only depth · Terracotta CTAs
   ═══════════════════════════════════════════════════════════════════════════ */

/* Compat: JS still uses this class for legacy hide/show paths */
.bhoa-checkout-hidden { display: none !important; }

/* ── Overlay ────────────────────────────────────────────────────────────────── */
#bhoa-checkout-overlay {
  position: fixed;
  inset: 0;
  /* Canonical token — must not inherit the eds-order local --z-modal:120 scale */
  z-index: var(--bhoa-z-modal, 2000);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
#bhoa-checkout-overlay[hidden] { display: none !important; }

/* ── Token Bridge (maps canonical --bhoa-* to local --co-* shorthand) ─────── */
.bhoa-co {
  --co-bg:            var(--bhoa-bg);
  --co-sheet:         var(--bhoa-surface);
  --co-surface-2:     var(--bhoa-surface-2);
  --co-card:          rgba(0,0,0,.02);
  --co-input-bg:      var(--bhoa-bg);
  --co-border:        var(--bhoa-border);
  --co-border-accent: var(--bhoa-border-accent);
  --co-accent:        var(--bhoa-accent);
  --co-accent-dim:    var(--bhoa-accent-dim);
  --co-accent-bright: var(--bhoa-accent-bright);
  --co-accent-bg:     var(--bhoa-accent-bg);
  --co-text:          var(--bhoa-text);
  --co-text-2:        var(--bhoa-text-2);
  --co-text-3:        var(--bhoa-text-3);
  --co-ok:            var(--bhoa-success);
  --co-ok-bg:         var(--bhoa-success-bg);
  --co-err:           var(--bhoa-danger);
  --co-danger:        var(--bhoa-danger);
  --co-radius:        var(--bhoa-radius);
  --co-radius-sm:     var(--bhoa-radius-sm);
  --co-radius-lg:     var(--bhoa-radius-lg);
  --co-radius-xl:     var(--bhoa-radius-xl);
  --co-shadow: 4px 4px 0 rgba(192,57,43,.6);
  --co-ease-out:      var(--bhoa-ease-out);
  --co-font-sans:     var(--bhoa-font-sans);
}

/* ── Backdrop ────────────────────────────────────────────────────────────────── */
.bhoa-co__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,.88);
}

/* ── Sheet ───────────────────────────────────────────────────────────────────── */
.bhoa-co__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100dvh;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.06);
  border-radius: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  scrollbar-width: thin;
  scrollbar-color: var(--co-surface-2) transparent;
  display: flex;
  flex-direction: column;
}

/* Mobile drag pill — hidden on full-page mobile, shown on desktop sheet */
.bhoa-co__sheet::before {
  content: '';
  display: none;
  width: 36px;
  height: 4px;
  background: var(--co-surface-2);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.bhoa-co__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 2px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--co-sheet);
}

/* Close button — minimum 44px tap target */
.bhoa-co__close {
  background: none;
  border: none;
  color: var(--co-text-3);
  cursor: pointer;
  padding: 12px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s var(--co-ease-out);
  flex-shrink: 0;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  margin: -6px;
}
.bhoa-co__close:hover,
.bhoa-co__close:active {
  color: var(--co-accent);
}

/* ── Progress indicator ──────────────────────────────────────────────────────── */
.bhoa-co__progress {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
  padding: 0 12px;
}

.bhoa-co__dot {
  width: 24px;
  height: 24px;
  border-radius: 0;
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--co-text-3);
  background: transparent;
  transition: color .15s var(--co-ease-out), border-color .15s var(--co-ease-out), background .15s var(--co-ease-out);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.bhoa-co__dot--on {
  color: #fff;
  background: var(--co-accent);
  border-color: var(--co-accent);
  box-shadow: 3px 3px 0 rgba(192,57,43,.4);
}
.bhoa-co__dot--done {
  color: #fff;
  background: transparent;
  border-color: var(--co-accent);
  font-size: 0;
}
.bhoa-co__dot--done::after {
  content: '';
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--co-accent);
  border-bottom: 2px solid var(--co-accent);
  transform: rotate(-45deg);
  margin-top: -1px;
}

.bhoa-co__line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.08);
  max-width: 32px;
}

/* ── Steps ───────────────────────────────────────────────────────────────────── */
.bhoa-co__step {
  padding: 16px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bhoa-co__step[hidden] { display: none !important; }

.bhoa-co__step-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--co-text);
  letter-spacing: -.02em;
}

/* ── Inline order summary (collapsible, step 2) ─────────────────────────────── */
.bhoa-co__summary-inline {
  gap: 0;
}

.bhoa-co__summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 14px;
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.06);
  border-radius: 0;
  color: var(--co-text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s var(--co-ease-out);
  min-height: 48px;
}
.bhoa-co__summary-toggle:active {
  border-color: var(--co-accent);
}
.bhoa-co__summary-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--co-text-2);
}
.bhoa-co__summary-toggle-left svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.bhoa-co__summary-toggle-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bhoa-co__summary-toggle-right strong {
  color: var(--co-accent);
  font-size: 1rem;
}
.bhoa-co__summary-chevron {
  transition: transform .3s var(--co-ease-out);
  opacity: 0.5;
}
.bhoa-co__summary-toggle[aria-expanded="true"] .bhoa-co__summary-chevron {
  transform: rotate(180deg);
}
.bhoa-co__summary-toggle[aria-expanded="true"] {
  border-bottom-color: transparent;
}

.bhoa-co__summary-details {
  border: 2px solid rgba(255,255,255,.06);
  border-top: none;
  border-radius: 0;
  padding: 12px 14px 14px;
  background: var(--co-sheet);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bhoa-co__summary-details[hidden] { display: none !important; }

.bhoa-co__summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,.05);
}

.bhoa-co__discount-value {
  color: var(--co-ok);
}

.bhoa-co__fee-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 0;
  border: none;
  background: var(--co-surface-2);
  color: var(--co-text-3);
  font-size: 0.62rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
  transition: background .15s var(--co-ease-out);
}
.bhoa-co__fee-info:active {
  background: var(--co-bg);
}

.bhoa-co__fee-explanation {
  font-size: 0.78rem;
  color: var(--co-text-2);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.05);
  border-radius: 0;
  margin: 0;
}
.bhoa-co__fee-explanation[hidden] { display: none !important; }

/* ── Items list ──────────────────────────────────────────────────────────────── */
.bhoa-co__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bhoa-co__items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  gap: 10px;
}
.bhoa-co__items .bhoa-co-item-name {
  flex: 1;
  color: var(--co-text-2);
  line-height: 1.4;
  word-break: break-word;
}
.bhoa-co__items .bhoa-co-item-price {
  font-weight: 700;
  color: var(--co-text);
  white-space: nowrap;
}

/* ── Totals box ──────────────────────────────────────────────────────────────── */
.bhoa-co__totals {
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.06);
  border-radius: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bhoa-co__totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--co-text-3);
  gap: 8px;
}
.bhoa-co__totals-row--total {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--co-text);
  border-top: 2px solid rgba(255,255,255,.06);
  padding-top: 8px;
  margin-top: 2px;
  letter-spacing: -.01em;
}
.bhoa-co__totals-row--total span  { color: var(--co-text); }
.bhoa-co__totals-row--total strong { color: var(--co-accent); }

.bhoa-co__policy {
  border: 2px solid rgba(255,255,255,.04);
  border-radius: 0;
  padding: 12px 14px;
  background: var(--co-sheet);
  color: var(--co-text-3);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Tip pct badge inline in label */
.bhoa-co__tip-pct-badge {
  display: inline-block;
  background: var(--co-accent-bg);
  color: var(--co-accent);
  border-radius: var(--co-radius-sm);
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Tip selector ────────────────────────────────────────────────────────────── */
.bhoa-co__tip-section {
  padding-top: 0;
}
.bhoa-co__tip-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bhoa-co__tip-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--co-text-3);
}
.bhoa-co__tip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bhoa-co__tip-btn {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 2px solid rgba(255,255,255,.1);
  color: var(--co-text-2);
  border-radius: 0;
  padding: 12px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s var(--co-ease-out), border-color .15s var(--co-ease-out), background .15s var(--co-ease-out);
  white-space: nowrap;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.bhoa-co__tip-btn:active {
  opacity: 0.8;
}
.bhoa-co__tip-btn:focus-visible {
  outline: 2px solid var(--co-text);
  outline-offset: 2px;
}
.bhoa-co__tip-btn--on {
  border-color: var(--co-accent);
  background: var(--co-accent);
  color: #fff;
}
.bhoa-co__tip-btn--custom {
  font-size: 0.78rem;
}

/* Custom tip input */
.bhoa-co__tip-custom {
  padding-top: 4px;
}
.bhoa-co__tip-custom[hidden] { display: none !important; }
.bhoa-co__input--tip {
  max-width: 120px;
  text-align: center;
  font-size: 16px !important; /* prevent iOS zoom */
  font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.bhoa-co__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--co-radius);
  transition: opacity .2s var(--co-ease-out), transform .15s var(--co-ease-out), box-shadow .2s var(--co-ease-out);
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.bhoa-co__btn--primary {
  width: 100%;
  padding: 15px 20px;
  min-height: 52px;
  background: var(--co-accent);
  border: 2px solid var(--co-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(0,0,0,.6);
  transition: transform .15s var(--co-ease-out), box-shadow .15s var(--co-ease-out), background .15s var(--co-ease-out);
}
.bhoa-co__btn--primary:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,.6);
}
.bhoa-co__btn--primary:active:not(:disabled) {
  transform: translate(0, 0);
  box-shadow: none;
}
.bhoa-co__btn--primary:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  box-shadow: none;
}

.bhoa-co__btn--ghost {
  padding: 12px 16px;
  min-height: 48px;
  background: transparent;
  border: none;
  color: var(--co-text-3);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 0;
  transition: color .15s var(--co-ease-out);
}
.bhoa-co__btn--ghost:hover {
  color: var(--co-text);
}

.bhoa-co__btn--done {
  margin-top: 8px;
}

/* Spinner inside pay button */
.bhoa-co__spin {
  animation: bhoa-spin 0.72s linear infinite;
  flex-shrink: 0;
}
.bhoa-co__spin[hidden] { display: none !important; }

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

/* ── Sections (Step 2) ───────────────────────────────────────────────────────── */
.bhoa-co__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bhoa-co__section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bhoa-co__section-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--co-text-3);
}

/* Saved badge */
.bhoa-co__saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--co-ok);
}
.bhoa-co__saved-badge[hidden] { display: none !important; }

/* ── Form fields ─────────────────────────────────────────────────────────────── */
.bhoa-co__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Stack phone/email vertically on phone, 2-col on wider screens */
.bhoa-co__fields-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bhoa-co__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bhoa-co__field-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--co-text-3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  padding-left: 2px;
}
.bhoa-co__req { color: var(--co-accent); font-style: normal; }
.bhoa-co__opt {
  font-weight: 400;
  font-style: italic;
  opacity: 0.65;
}

.bhoa-co__input {
  background: var(--co-input-bg);
  border: none;
  border-bottom: 2px solid rgba(255,255,255,.12);
  border-radius: 0;
  padding: 14px 16px;
  color: var(--co-text);
  /* 16px prevents iOS auto-zoom on focus */
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s var(--co-ease-out);
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
.bhoa-co__input::placeholder { color: var(--co-text-3); opacity: 0.4; }
.bhoa-co__input:focus {
  outline: none;
  border-bottom-color: var(--co-accent);
  background: var(--co-sheet);
}
.bhoa-co__input--ok  { border-bottom-color: var(--co-ok); }
.bhoa-co__input--err { border-bottom-color: var(--co-err); }

.bhoa-co__hint {
  font-size: 0.74rem;
  min-height: 1.1em;
  line-height: 1.4;
  transition: color .2s var(--co-ease-out);
  color: transparent;
}
.bhoa-co__hint--ok  { color: var(--co-ok); }
.bhoa-co__hint--err { color: var(--co-err); }

/* ── Payment method tabs — card-style layout ────────────────────────────────── */
.bhoa-co__method-tabs {
  display: flex;
  gap: 8px;
}

.bhoa-co__method-tab {
  flex: 1;
  padding: 14px 12px;
  min-height: 52px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--co-text-3);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: color .15s var(--co-ease-out), border-color .15s var(--co-ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.bhoa-co__method-tab:active {
  opacity: 0.8;
}
.bhoa-co__method-tab:focus-visible {
  outline: 2px solid var(--co-text);
  outline-offset: 2px;
}
.bhoa-co__method-tab:hover:not(.bhoa-co__tab-active) {
  color: var(--co-text-2);
}
.bhoa-co__method-tab span { display: inline-block; }
.bhoa-co__method-tab-icon {
  width: auto;
  max-width: 62px;
  height: 20px;
  object-fit: contain;
  filter: brightness(1.04);
}
.bhoa-co__method-tab.bhoa-co__tab-active {
  border-bottom-color: var(--co-accent);
  color: var(--co-text);
  font-weight: 900;
}

/* ── Payment panels ──────────────────────────────────────────────────────────── */
.bhoa-co__pay-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bhoa-co__pay-panel[hidden] { display: none !important; }

/* Apple Pay / Google Pay availability hint */
.bhoa-co__express-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--co-text-3);
  padding: 10px 14px;
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.05);
  border-radius: 0;
  line-height: 1.4;
}
.bhoa-co__express-hint[hidden] { display: none !important; }
.bhoa-co__express-hint svg { flex-shrink: 0; opacity: 0.7; }

/* Stripe Payment Element mount */
.bhoa-co__stripe-mount {
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.06);
  border-radius: 0;
  padding: 14px;
  min-height: 56px;
}

/* Error messages */
.bhoa-co__err {
  color: var(--co-err);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  min-height: 1em;
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(192,57,43,.06);
  border: none;
  border-left: 3px solid var(--co-err);
  border-radius: 0;
}
.bhoa-co__err:empty { display: none; }

/* ── COD card ────────────────────────────────────────────────────────────────── */
.bhoa-co__cod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 18px;
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.06);
  border-radius: 0;
  text-align: center;
}
.bhoa-co__cod-icon {
  color: var(--co-accent);
  opacity: 0.75;
}
.bhoa-co__cod-note {
  margin: 0;
  color: var(--co-text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}
.bhoa-co__gateway-logo {
  display: block;
  width: auto;
  max-width: 148px;
  max-height: 34px;
  margin: 0 auto 10px;
  object-fit: contain;
}

/* ── Sticky bottom action bar ────────────────────────────────────────────────── */
.bhoa-co__actions-spacer {
  height: 80px;
  flex-shrink: 0;
}

.bhoa-co__actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--co-bg);
  border-top: 2px solid rgba(255,255,255,.06);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  margin: 0 -16px -26px;
}

.bhoa-co__actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.bhoa-co__actions .bhoa-co__btn--ghost   { flex-shrink: 0; }
.bhoa-co__actions .bhoa-co__btn--primary { flex: 1; }

/* ── Success screen ──────────────────────────────────────────────────────────── */
.bhoa-co__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 0 8px;
}
.bhoa-co__gateway-head {
  display: none;
}
.bhoa-co__gateway-copy {
  display: none;
}
.bhoa-co__gateway-frame-wrap {
  position: relative;
  background: var(--co-bg);
  border: none;
  border-radius: 0;
  overflow: hidden;
  min-height: 75vh;
  flex: 1;
}
.bhoa-co__gateway-status {
  display: none;
}
.bhoa-co__gateway-status--warn {
  border-color: rgba(245, 158, 11, 0.28);
  color: #f8fafc;
}
.bhoa-co__gateway-status--ok {
  border-color: rgba(148, 163, 184, 0.28);
}
.bhoa-co__gateway-frame {
  display: block;
  width: 100%;
  min-height: 75vh;
  border: 0;
  background: var(--co-bg);
}
.bhoa-co__check-wrap {
  width: 72px;
  height: 72px;
  position: relative;
}
.bhoa-co__check-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--co-ok) 18%, transparent) 0%,
    color-mix(in srgb, var(--co-ok) 6%, transparent) 50%,
    transparent 70%
  );
  z-index: -1;
  animation: coGlowIn .6s var(--bhoa-ease-out, cubic-bezier(.16,1,.3,1)) .3s both;
}
.bhoa-co__check-svg {
  width: 72px;
  height: 72px;
  overflow: visible;
}
.bhoa-co__check-circle {
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  animation: coCircle 0.55s cubic-bezier(0.4,0,0.2,1) forwards 0.1s;
}
.bhoa-co__check-path {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: coCheck 0.38s ease forwards 0.6s;
}
@keyframes coCircle { to { stroke-dashoffset: 0; } }
@keyframes coCheck  { to { stroke-dashoffset: 0; } }
@keyframes coGlowIn {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

.bhoa-co__success-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--co-text);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.bhoa-co__success-sub {
  margin: 0;
  color: var(--co-text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.bhoa-co__success-hint {
  margin: 0;
  color: var(--co-text-3);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 10px 16px;
  background: var(--co-sheet);
  border: 2px solid rgba(255,255,255,.05);
  border-radius: 0;
}
.bhoa-co__order-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--co-sheet);
  border: 3px solid var(--co-accent);
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(192,57,43,.4);
  padding: 20px 40px;
  min-width: 140px;
}
.bhoa-co__order-badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--co-text-3);
}
.bhoa-co__order-badge-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--co-accent);
  letter-spacing: 0.05em;
}

/* ── Tablet/Desktop: wider screens ──────────────────────────────────────────── */
@media (min-width: 430px) {
  .bhoa-co__fields-2col {
    grid-template-columns: 1fr 1fr;
  }

  .bhoa-co__step {
    padding: 20px 18px 26px;
    gap: 18px;
  }
}

/* ── Desktop: centered modal ─────────────────────────────────────────────────── */
@media (min-width: 640px) {
  #bhoa-checkout-overlay { align-items: center; }
  .bhoa-co__sheet {
    border-radius: 0;
    max-height: 92svh;
    max-height: 92vh;
    height: auto;
    padding-bottom: 0;
    background: var(--co-sheet);
    box-shadow: var(--co-shadow);
    animation: coSheetIn .25s var(--co-ease-out) both;
  }
  .bhoa-co__sheet::before { display: none; }

  .bhoa-co__hdr {
    border-radius: 0;
  }

  .bhoa-co__actions-sticky {
    position: static;
    border-top: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  .bhoa-co__actions-spacer {
    display: none;
  }

  .bhoa-co__gateway-frame-wrap,
  .bhoa-co__gateway-frame {
    min-height: 70vh;
  }

  .bhoa-co__tip-btn:hover {
    background: var(--co-surface-2);
    color: var(--co-text);
  }
}

@keyframes coSheetIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced motion ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bhoa-co *,
  .bhoa-co *::before,
  .bhoa-co *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Global focus-visible outlines (accessibility) ─────────────────────────── */
.bhoa-co button:focus-visible,
.bhoa-co a:focus-visible,
.bhoa-co input:focus-visible,
.bhoa-co select:focus-visible {
  outline: 2px solid var(--co-text, #141414);
  outline-offset: 2px;
}
