/**
 * Buy · Product Cart styles.
 *
 * Page-specific stylesheet enqueued on the page-buy-product.php and
 * page-buy-confirmation.php templates. Bone canvas + yellow hero credit card,
 * matching the rest of the site (homepage, prices, account). Uses tokens.css
 * variables only; no new colours.
 *
 * Class names that buy-cart.js depends on:
 *   .bcart, .bcart__btn(--primary|--apple), .bcart__alt-link, .bcart__error,
 *   .bcart__pay, .bcart__pay-options,
 *   .bcart__oauth (logged-out OAuth hand-off block),
 *   .bcart__promo, .bcart__promo-toggle, .bcart__promo-summary, .bcart__promo-form,
 *   .bcart__promo-input, .bcart__promo-apply, .bcart__promo-msg(--error|--success),
 *   .bcart__promo-applied, .bcart__promo-applied-text, .bcart__promo-remove.
 *
 * The previous email-first signup state machine (.bcart__signup,
 * .bcart__signup-form, .bcart__signup-found, etc.) was retired when the
 * cart moved to a single-button OAuth hand-off — Mindbody universal login
 * now owns email lookup, account creation, and password capture
 * (Christophe / case 05413957).
 */

.bcart {
  background-color: var(--bone);
  color: var(--ink);
  padding: clamp(56px, 7vw, 112px) clamp(20px, 4vw, 60px) clamp(72px, 8vw, 128px);
  min-height: 70vh;
}

/* Re-assert [hidden]{display:none} scoped to .bcart — the .bcart__pay block
   carries `display: flex`, which beats the browser default. JS toggles
   `el.hidden = true` to hide it during state transitions. */
.bcart [hidden] {
  display: none !important;
}

.bcart__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 48px);
}

/* ── Stepper ─────────────────────────────────────── */

.bcart__steps {
  border-top: 1px solid rgba(14, 14, 12, 0.18);
  border-bottom: 1px solid rgba(14, 14, 12, 0.18);
  padding: 14px 0;
}

.bcart__steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.bcart__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
}

.bcart__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(14, 14, 12, 0.3);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bcart__step--done .bcart__step-num {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.bcart__step--done .bcart__step-label {
  color: var(--ink);
}

.bcart__step--active .bcart__step-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.bcart__step--active .bcart__step-label {
  color: var(--ink);
}

/* ── Headline block ──────────────────────────────── */

.bcart__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bcart__marker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.bcart__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.bcart__headline em {
  color: var(--ink);
  font-style: italic;
}

.bcart__sub {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

/* ── Hero credit card ────────────────────────────── */

.bcart__card {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: end;
  position: relative;
}

@media (min-width: 720px) {
  .bcart__card {
    grid-template-columns: 1.4fr 1fr;
  }
}

.bcart__card-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bcart__card-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.7;
  margin: 0;
}

.bcart__card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.bcart__card-meta {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(14, 14, 12, 0.18);
  padding-top: 14px;
}

.bcart__card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
}

.bcart__card-row dt {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--ink);
  opacity: 0.65;
  margin: 0;
}

.bcart__card-row dd {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  text-align: right;
}

.bcart__card-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .bcart__card-right {
    align-items: flex-end;
    text-align: right;
  }
}

.bcart__card-total {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

/* ── Quiet upsell ────────────────────────────────── */

.bcart__upsell {
  display: flex;
  justify-content: center;
  margin: -8px 0 0;
}

.bcart__upsell-link {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 14, 12, 0.25);
  padding: 4px 0;
}

.bcart__upsell-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.bcart__upsell-link:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

/* ── Band heading ────────────────────────────────── */

.bcart__band {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(8px, 1vw, 16px) 0 0;
}

.bcart__band-rule {
  flex: 1;
  height: 1px;
  background: rgba(14, 14, 12, 0.18);
}

.bcart__band-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
}

/* ── Payment block ───────────────────────────────── */

.bcart__payment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.bcart__pay {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bcart__pay-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bcart__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border-radius: 100px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s, transform 0.15s;
}

.bcart__btn:hover {
  opacity: 0.9;
}

.bcart__btn:active {
  transform: translateY(1px);
}

.bcart__btn:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

/* Brand icon inside the saved-card pay button. Source images come in
   two aspect ratios (Visa is wide; Amex / Mastercard are square-ish);
   capping the height + width:auto on object-fit:contain keeps them
   visually consistent in the pill. */
.bcart__btn-icon {
  display: inline-flex;
  align-items: center;
  height: 24px;
}
.bcart__btn-icon img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Saved-card pay button label: two rows, top is "Pay with <brand>
   ending <last4>" and bottom is "£<amount> →". Stops long brand
   names ("American Express") wrapping the amount onto its own line
   awkwardly. Bottom row a touch larger so the amount reads first. */
.bcart__btn-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}
.bcart__btn-label-top {
  font-size: 11px;
}
.bcart__btn-label-bottom {
  font-size: 13px;
}

.bcart__btn--primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.bcart__btn--apple {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.bcart__btn--apple .bcart__btn-glyph {
  font-size: 16px;
}

.bcart__alt-link {
  display: inline-block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 4px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}

.bcart__alt-link:hover {
  color: var(--ink);
}

.bcart__alt-link:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

.bcart__error {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--clay);
  margin: 4px 0 0;
  text-align: center;
}

.bcart__btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── OAuth hand-off (logged-out) ─────────────────── */

.bcart__oauth {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 4px 0 0;
}

.bcart__oauth-prompt {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.bcart__oauth-fine {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Account credit opt-in ─────────────────────────────────── *
 * Phase 1 rollout — feature-flagged server-side via
 * sl_account_credit_autoapply_enabled(). Sits below the primary pay
 * button as a centred single-line row; buy-cart.js unhides when
 * balance > 0. Mono 11px to match the visual rhythm of the
 * neighbouring promo/gift summaries; the pay button label updates
 * separately when ticked. */
.bcart__acct-credit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0;
  cursor: pointer;
}
.bcart__acct-credit-cb {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
  margin: 0;
}
.bcart__acct-credit-headline {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}
.bcart__acct-credit:hover .bcart__acct-credit-headline { color: var(--ink); }
.bcart__acct-credit-cb:checked + .bcart__acct-credit-headline { color: var(--ink); }

/* ── Promo code (validated by Mindbody Test:true dry-run) ───── */

.bcart__promo {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding-top: 6px;
  border-top: 1px solid rgba(14, 14, 12, 0.12);
}

.bcart__promo-toggle {
  font-family: var(--mono);
}

.bcart__promo-summary {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
  text-align: center;
}

.bcart__promo-summary::-webkit-details-marker { display: none; }

.bcart__promo-summary:hover { color: var(--ink); }

.bcart__promo-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bcart__promo-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(14, 14, 12, 0.25);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bcart__promo-input:focus,
.bcart__promo-input:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.bcart__promo-apply {
  flex-shrink: 0;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.bcart__promo-apply:hover { opacity: 0.9; }
.bcart__promo-apply[disabled] { opacity: 0.6; cursor: default; }

.bcart__promo-msg {
  margin-top: 8px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--muted);
  min-height: 1em;
  text-align: center;
}

.bcart__promo-msg--error {
  color: var(--clay);
}

.bcart__promo-msg--success {
  color: var(--ink);
}

.bcart__promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--ink);
}

.bcart__promo-remove {
  background: transparent;
  border: 0;
  padding: 0 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.bcart__promo-remove:hover { opacity: 1; }

/* ── Gift card (collapsible row, mirrors the promo pattern) ── */

.bcart__gift {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding-top: 6px;
  border-top: 1px solid rgba(14, 14, 12, 0.12);
}

/* When the gift card row sits directly after the promo row, drop the
   second divider so the two redemption inputs read as one group rather
   than two stacked boxes. */
.bcart__promo + .bcart__gift {
  border-top: 0;
  padding-top: 0;
}


/* The parent .bcart__inner uses a generous flex gap (28-48px) between
   its children so the steps, headline, and selection card breathe.
   That same gap below the payment block leaves a wall of air around
   the promo + gift redemption rows, which are tertiary inputs and
   should read as one tight group rather than three separated sections.
   Negative margin-tops counter the parent's gap. The credit row sits
   in the middle of the chain and follows the same compression. */
.bcart__payment + .bcart__acct-credit { margin-top: -32px; }
.bcart__payment + .bcart__promo        { margin-top: -32px; }
.bcart__acct-credit + .bcart__promo    { margin-top: -40px; }
.bcart__promo + .bcart__gift           { margin-top: -40px; }
.bcart__gift + .bcart__trust           { margin-top: -28px; }

.bcart__gift-summary {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
  text-align: center;
}

.bcart__gift-summary::-webkit-details-marker { display: none; }
.bcart__gift-summary:hover { color: var(--ink); }

.bcart__gift-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bcart__gift-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(14, 14, 12, 0.25);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.bcart__gift-input:focus,
.bcart__gift-input:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.bcart__gift-apply {
  flex-shrink: 0;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.bcart__gift-apply:hover { opacity: 0.9; }
.bcart__gift-apply[disabled] { opacity: 0.6; cursor: default; }

.bcart__gift-msg {
  margin-top: 8px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--muted);
  min-height: 1em;
  text-align: center;
}

.bcart__gift-msg--error {
  color: var(--clay);
}

.bcart__gift-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--ink);
}

.bcart__gift-remove {
  background: transparent;
  border: 0;
  padding: 0 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.bcart__gift-remove:hover { opacity: 1; }

/* ── Trust strip ─────────────────────────────────── */

.bcart__trust {
  list-style: none;
  margin: clamp(8px, 1vw, 16px) 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(14, 14, 12, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(20px, 3vw, 36px);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--muted);
}

.bcart__trust a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bcart__trust a:hover { color: var(--ink); }

.bcart__terms {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.bcart__terms a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Missing-product fallback ────────────────────── */

.bcart--missing {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.bcart--missing .bcart__error {
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.bcart--missing .bcart__error a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Confirmation page ──────────────────────────── */

.bcart--confirm .bcart__inner {
  max-width: 640px;
  align-items: center;
  text-align: center;
}

.bcart__confirm-card {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bcart__confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.bcart__confirm-marker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.7;
  margin: 0;
}

.bcart__confirm-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.bcart__confirm-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.8;
  margin: 0;
  max-width: 38ch;
}

.bcart__confirm-ref {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--ink);
  opacity: 0.7;
  margin: 4px 0 0;
}

.bcart__confirm-ref span {
  color: var(--ink);
  letter-spacing: 0.06em;
  opacity: 1;
}

.bcart__confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

.bcart--confirm .bcart__btn--primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.bcart--confirm .bcart__alt-link {
  color: var(--ink);
  opacity: 0.75;
}

.bcart--confirm .bcart__alt-link:hover {
  opacity: 1;
}

/* ── Buy · Membership (page-buy-membership.php) ──────────── */
/* Tier-driven membership purchase flow shared by Essential, Plus, and
 * Extra. Reuses .bcart base classes; adds two-column layout
 * (.bcart__layout), membership-line summary, and payment sub-states
 * (saved-card vs new-card). Selectors target .bcart--membership /
 * .bcart__inner--membership so all three tiers get the same styling;
 * the per-tier .bcart--{slug} class on the section is reserved for
 * future tier-specific overrides. */

.bcart__inner--membership {
	max-width: 1240px;
}

.bcart__layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
	margin-top: clamp(24px, 3vw, 40px);
}

@media (max-width: 880px) {
	.bcart__layout {
		grid-template-columns: 1fr;
	}
}

.bcart--membership .bcart__head {
	margin-bottom: clamp(20px, 2.4vw, 32px);
}

.bcart__mship-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: var(--bone-2);
	border-radius: 12px;
	margin-bottom: clamp(20px, 2.4vw, 32px);
}

.bcart__mship-label {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink);
	opacity: 0.6;
}

.bcart__mship-val {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}

/* Payment block sub-states */

.bcart__pay-skeleton {
	padding: 28px 22px;
	background: var(--bone-2);
	border-radius: 12px;
	text-align: center;
}

.bcart__pay-skeleton-text {
	font-family: var(--mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink);
	opacity: 0.5;
	margin: 0;
}

.bcart__pay-section-label {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink);
	opacity: 0.5;
	margin: 0 0 12px;
}

.bcart__pay-card-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	background: var(--bone-2);
	border-radius: 12px;
	margin-bottom: 18px;
}

.bcart__pay-card-icon {
	flex-shrink: 0;
	width: 36px;
	height: 24px;
}

.bcart__pay-card-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bcart__pay-card-name {
	font-family: var(--sans);
	font-weight: 500;
	font-size: 15px;
	color: var(--ink);
}

.bcart__pay-card-meta {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink);
	opacity: 0.55;
}

.bcart__alt-link--cancel {
	display: block;
	text-align: center;
	margin-top: 14px;
	font-family: var(--mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink);
	opacity: 0.55;
	text-decoration: none;
}

.bcart__alt-link--cancel:hover {
	opacity: 1;
}

.bcart__alt-link--cancel:focus-visible {
	outline: 2px solid var(--clay);
	outline-offset: 2px;
}

/* No-card sub-state — Mindbody hosted handoff */

.bcart__pay-newcard {
	padding: clamp(20px, 2.4vw, 28px);
	background: var(--bone-2);
	border-radius: 12px;
}

.bcart__pay-newcard-headline {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 12px;
}

.bcart__pay-newcard-body {
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink);
	opacity: 0.85;
	margin: 0 0 18px;
}

.bcart__pay-newcard .bcart__btn--primary {
	display: block;
	width: 100%;
	margin: 0;
	text-align: center;
	text-decoration: none;
}

/* Order rail (right column) */

.bcart__rail {
	background: var(--ink);
	color: var(--bone);
	border-radius: 12px;
	padding: clamp(20px, 2.4vw, 28px);
	position: sticky;
	top: 96px;
}

.bcart__rail-header {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--bone);
	opacity: 0.5;
	margin: 0 0 16px;
}

.bcart__rail-list {
	margin: 0 0 24px;
	padding: 0;
}

.bcart__rail-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(241, 237, 228, 0.12);
}

.bcart__rail-row:last-child {
	border-bottom: none;
}

.bcart__rail-row dt {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--bone);
	opacity: 0.55;
	margin: 0;
}

.bcart__rail-row dd {
	font-family: var(--sans);
	font-size: 14px;
	color: var(--bone);
	margin: 0;
	text-align: right;
}

.bcart__rail-due {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 16px 0 6px;
	border-top: 1px solid rgba(241, 237, 228, 0.25);
}

.bcart__rail-due-label {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--yellow);
}

.bcart__rail-due-amount {
	font-family: var(--serif);
	font-size: clamp(28px, 3vw, 36px);
	color: var(--yellow);
}

.bcart__rail-fine {
	font-family: var(--mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--bone);
	opacity: 0.45;
	margin: 0;
}

/* ── Welcome to Membership (page-welcome-membership.php) ──── */

/* Brand rule #7: yellow italic only on dark backgrounds. Welcome card
   sits on bone, so emphasis stays italic ink — same colour as the parent
   text but reads as a serif italic flourish. Scoped to
   .bcart--welcome-membership so all three tiers' welcome pages render
   the same way. */
.bcart--welcome-membership .bcart__confirm-headline em {
	font-style: italic;
	color: var(--ink);
}

.bcart__welcome-section {
	margin: clamp(24px, 3vw, 36px) 0;
	padding: clamp(20px, 2.4vw, 28px);
	background: var(--bone-2);
	border-radius: 12px;
	text-align: left;
}

.bcart__welcome-section-label {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink);
	opacity: 0.5;
	margin: 0 0 8px;
}

.bcart__welcome-section-body {
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink);
	margin: 0;
}

.bcart__welcome-recap {
	list-style: none;
	margin: clamp(20px, 2.4vw, 28px) 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
	text-align: left;
}

.bcart__welcome-recap li {
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
	opacity: 0.8;
	padding-left: 22px;
	position: relative;
}

.bcart__welcome-recap li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	background: var(--yellow);
	border-radius: 50%;
}

/* ── Activation date picker (page-buy-membership.php) ── */
.bcart__startdate {
	margin: 0 0 20px;
}
.bcart__startdate-label {
	display: block;
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
	margin-bottom: 8px;
}
.bcart__startdate-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid rgba(14, 14, 12, 0.2);
	border-radius: 8px;
	font-family: var(--sans);
	font-size: 16px; /* ≥16px prevents iOS Safari zoom-on-focus */
	color: var(--ink);
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
}
.bcart__startdate-input:focus-visible {
	outline: 2px solid var(--clay);
	outline-offset: 2px;
}
.bcart__startdate-hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.45;
}

/* ── Already-a-member guard (page-buy-membership.php) ─────────
   Mirrors .bcart__pay-newcard typography so the cross-tier and
   already-on-this-tier panels feel like part of the same cart
   surface, not a default-styled fallback. */
.bcart__already {
	padding: clamp(20px, 2.4vw, 28px);
	background: var(--bone-2);
	border-radius: 12px;
}

.bcart__already-headline {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 12px;
}

.bcart__already-body {
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink);
	opacity: 0.85;
	margin: 0 0 18px;
}

.bcart__already-body a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bcart__already .bcart__btn--primary {
	/* Inherit display:flex + align-items:center from .bcart__btn so the
	   CTA text vertically centres in the 56px pill. The parallel
	   .bcart__pay-newcard rule sets display:block here, which cancels
	   the flex centering — copying that override broke vertical alignment
	   on the already-member CTA. Don't repeat the mistake here. */
	margin: 0;
	text-decoration: none;
}

.bcart__already-fine {
	font-family: var(--sans);
	font-size: 12px;
	line-height: 1.55;
	color: var(--muted);
	margin: 18px 0 0;
}

.bcart__already-fine a {
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Native Card Form (Option A port from booking.css) ─────
   Same class names and same rule contents as the State D block
   in booking.css. Class names kept identical so the visual is
   byte-identical between /booking/ and /buy/{slug}/. When
   changing one, mirror the change in the other until these
   rules move to a shared partial. */

.pay__newcard {
  display: flex;
  flex-direction: column;
}

.pay__newcard .pay__section-label {
  margin-bottom: 8px;
}

.pay__newcard-revert {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pay__newcard-revert:hover { opacity: 0.7; }
.pay__newcard-revert:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.pay__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.pay__field-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--muted);
}

.pay__field-input {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid rgba(14,14,12,0.15);
  border-radius: 4px;
  padding: 12px;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.pay__field-input::placeholder {
  color: rgba(14,14,12,0.35);
}

.pay__field-input:focus {
  border-color: var(--ink);
}

.pay__field-input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.pay__field-wrap {
  position: relative;
}

.pay__field-input--cc {
  padding-right: 64px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.pay__field-brand {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  min-height: 24px;
}

.pay__field-brand svg,
.pay__field-brand img {
  height: 24px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  border-radius: 3px;
}

.pay__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.pay__field-row .pay__field {
  margin-bottom: 0;
}

.pay__field-error {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  line-height: 1.4;
  color: #C65D3B;
}
.pay__field-error:empty {
  display: none;
}

.pay__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 2px 0 12px;
  background: var(--bone-2);
  border-radius: 4px;
}

.pay__trust-lock {
  color: var(--ink);
  flex-shrink: 0;
}

.pay__trust-text {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--muted);
  flex: 1;
}

.pay__trust-brands {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pay__trust-brands svg,
.pay__trust-brands img {
  height: 18px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  border-radius: 2px;
}

.pay__newcard-note {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 6px;
}

/* Inline link inside the save-card consent note. Mirrors booking.css. */
.pay__newcard-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pay__newcard-note a:hover { opacity: 0.7; }
.pay__newcard-note a:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Marketing opt-in checkbox at checkout. Mirrors booking.css. PECR
   soft opt-in at point of sale; pre-ticked, customer can untick. */
.pay__marketing-optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.pay__marketing-optin-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  cursor: pointer;
  accent-color: var(--yellow);
}
.pay__marketing-optin-checkbox:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.pay__marketing-optin-label {
  flex: 1;
}

/* Marketing disclosure (replaces the checkbox under PECR soft opt-in).
   Sits in the same vertical position the checkbox used to occupy. */
.pay__marketing-note {
  margin: 12px 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}
.pay__marketing-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pay__marketing-note a:hover {
  opacity: 0.7;
}

/* ── Health waiver gate (LiabilityRelease=false on the /buy/ flow) ──
   Mirrors the .pay__waiver* family in booking.css since buy-cart.css
   loads independently on the cart pages and can't borrow those rules. */
.pay__waiver {
  background: var(--bone);
  border: 1px solid rgba(14, 14, 12, 0.2);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay__waiver-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pay__waiver-body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.pay__waiver-link {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pay__waiver-link a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pay__waiver-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0 4px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.pay__waiver-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--yellow);
}
.pay__waiver-continue {
  align-self: flex-start;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.pay__waiver-continue:hover:not(:disabled) { opacity: 0.85; }
.pay__waiver-continue:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.pay__waiver-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bcart__waiver-error {
  margin: 4px 0 0;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--clay);
}
