/* ══════════════════════════════════════════════════════════════
   checkout.css — le checkout inline Breathwork (pattern Spiffy)
   UN seul exemplaire, partagé par toute variante future de la page
   (leçon DRAM : 5 copies parallèles du JS checkout = 4 régressions).
   S'insère dans la colonne droite de la carte .offer existante.
   Langage visuel = celui de la landing : crème/forêt/orange, SF Pro.
   ══════════════════════════════════════════════════════════════ */

/* ── Champs ── */
.bw-co { text-align: left; }
.bw-co .bw-field { margin-bottom: 12px; }
.bw-co label {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted, #8A7C66); margin-bottom: 5px;
}
.bw-co input[type=text],
.bw-co input[type=email],
.bw-co input[type=tel] {
  width: 100%; background: #fff;
  border: 1px solid rgba(42,33,24,.18); border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px; /* JAMAIS <16px : iOS Safari zoome au focus et ne revient pas */
  color: var(--ink, #2A2118); outline: none; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.bw-co input:focus {
  border-color: var(--orange, #D9701F);
  box-shadow: 0 0 0 3px rgba(217,112,31,.12);
}
.bw-co input::placeholder { color: #B4A78F; }
.bw-co input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 9999px #fff inset !important;
  -webkit-text-fill-color: var(--ink, #2A2118) !important;
  transition: background-color 9999s ease-in-out 0s !important;
}
.bw-co .bw-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bw-co .bw-err {
  display: none; font-size: 12.5px; color: #B3261E; margin-top: 4px; padding-left: 2px;
}

/* Téléphone : select d'indicatif NATIF dans le champ (délibéré — intl-tel-input
   cassait en modal/overflow mobile sur DRAM). */
.bw-co .bw-phone-wrap {
  display: flex; align-items: center; background: #fff;
  border: 1px solid rgba(42,33,24,.18); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.bw-co .bw-phone-wrap:focus-within {
  border-color: var(--orange, #D9701F);
  box-shadow: 0 0 0 3px rgba(217,112,31,.12);
}
/* Select pays « recouvert » : la face montre 🇨🇦 +1, le vrai select est
   invisible par-dessus (clic, clavier et lecteur d'écran passent au natif). */
.bw-co .bw-cc {
  position: relative; flex: 0 0 auto; display: flex; align-items: stretch;
  border-right: 1px solid rgba(42,33,24,.14);
}
.bw-co .bw-cc-face {
  display: flex; align-items: center; gap: 3px;
  padding: 12px 20px 12px 13px;
  font-size: 15px; color: var(--ink, #2A2118); white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(0,0,0,0.35)'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
}
.bw-co .bw-cc select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 16px; /* ≥16px : pas de zoom iOS */
  -webkit-appearance: none; appearance: none; border: none;
}
.bw-co .bw-phone-wrap input {
  flex: 1 1 auto; min-width: 0; background: transparent; border: none;
  padding: 12px 14px; font-family: inherit; font-size: 16px;
  color: var(--ink, #2A2118); outline: none; box-sizing: border-box;
}

/* ── Sous-têtes d'étapes ── */
.bw-co .bw-subhead {
  display: flex; align-items: center; gap: 9px; margin: 0 0 13px;
}
.bw-co .bw-step-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  background: #F3E3CC; color: var(--orange-dp, #C25E22);
  font-weight: 800; font-size: 12.5px;
}
.bw-co .bw-subhead h3 {
  font-size: clamp(16px, 1.95cqi, 18px); font-weight: 800;
  letter-spacing: -.015em; color: var(--forest, #2A3B2E); margin: 0;
}
.bw-co .bw-divider { height: 1px; background: rgba(42,33,24,.10); margin: 20px 0; }
.bw-co .bw-consent {
  font-size: 11.5px; color: var(--muted, #8A7C66); line-height: 1.55; margin: 8px 0 0;
}
.bw-co .bw-consent a { text-decoration: underline; }

/* ── Verrou progressif (étape 2 estompée tant que le contact est invalide) ── */
/* Étape 2 masquée (pattern DRAM) : tant que les coordonnées ne sont pas
   complètes, seul le résumé reste visible, réduit à la ligne sous-total.
   Les taxes et le total n'apparaissent qu'au déblocage (adresse fournie). */
.bw-co .bw-locked { pointer-events: none; }
/* L'ID bat .bw-bump.is-on (sinon le bump perce le masque quand il s'active) */
.bw-co #bw-gate-2.bw-locked > :not(.bw-sum) { display: none; }
.bw-co #bw-gate-2.bw-locked .bw-sum-row.bw-sum-tax,
.bw-co #bw-gate-2.bw-locked .bw-sum-row.bw-sum-total { display: none; }
.bw-co .bw-lock-hint {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted, #8A7C66); margin: 2px 0 13px; line-height: 1.4;
}

/* ── Order bump (Spiffy : encadré pointillé + case à cocher) ──
   display:none par défaut — checkout.js ne l'affiche que si get-products
   renvoie un bump ACTIF. V1 se lance avec le slot câblé mais invisible. */
.bw-co .bw-bump { display: none; margin: 0 0 14px; }
.bw-co .bw-bump.is-on { display: block; }
.bw-co .bw-bump label.bw-bump-box {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  background: #FFF6EA; border: 2px dashed rgba(217,112,31,.55); border-radius: 14px;
  padding: 13px 14px; margin: 0; text-transform: none; letter-spacing: 0;
  transition: background .2s, border-color .2s;
}
.bw-co .bw-bump label.bw-bump-box:hover { background: #FDF0DE; }
.bw-co .bw-bump input[type=checkbox] {
  width: 19px; height: 19px; margin-top: 1px; flex: 0 0 auto;
  accent-color: var(--orange, #D9701F); cursor: pointer;
}
.bw-co .bw-bump-t {
  font-size: 14.5px; font-weight: 800; color: var(--ink, #2A2118); line-height: 1.35;
}
.bw-co .bw-bump-t .bw-bump-price { color: var(--orange-dp, #C25E22); white-space: nowrap; }
.bw-co .bw-bump-d { display: block; font-size: 13px; font-weight: 400; color: var(--body, #5A5346); margin-top: 3px; line-height: 1.45; }

/* ── Zone Stripe ── */
.bw-co #bw-payment-element { min-height: 0; }
/* Maquette de champs de carte — l'état avant/pendant le chargement de Stripe.
   Ressemble au vrai formulaire, désactivé : jamais l'air « en panne ». */
.bw-co .bw-paymock { display: grid; gap: 10px; }
.bw-co .bw-paymock-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bw-co .bw-paymock-f {
  display: flex; align-items: center; justify-content: space-between;
  background: #FBF8F2; border: 1px solid rgba(42,33,24,.13); border-radius: 12px;
  padding: 13px 14px; min-height: 47px;
}
.bw-co .bw-paymock-f span { font-size: 14.5px; color: #B4A78F; }
.bw-co .bw-paymock-f i { font-style: normal; font-size: 13px; opacity: .6; }

.bw-co .bw-card-error {
  font-size: 13px; color: #B3261E; margin-top: 8px; min-height: 18px;
}
.bw-co .bw-pi-updating {
  display: none; font-size: 12.5px; color: var(--muted, #8A7C66); margin-top: 8px;
}
.bw-co .bw-pi-updating .bw-spin {
  display: inline-block; margin-right: 5px; animation: bwSpin .8s linear infinite;
}
@keyframes bwSpin { to { transform: rotate(360deg); } }

/* ── Résumé mobile inline (au-dessus du bouton payer) ── */
.bw-co .bw-sum {
  background: #FDF8EF; border: 1px solid rgba(42,33,24,.10); border-radius: 14px;
  padding: 14px 16px; margin: 14px 0 0;
}
.bw-co .bw-sum-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--body, #5A5346); margin-top: 5px;
}
.bw-co .bw-sum-row:first-child { margin-top: 0; }
.bw-co .bw-sum-row.bw-sum-total {
  font-weight: 800; font-size: 16px; color: var(--ink, #2A2118);
  border-top: 1px solid rgba(42,33,24,.12); padding-top: 9px; margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.bw-co .bw-sum-row [data-amount] { font-variant-numeric: tabular-nums; }
/* Une fois ajouté, l'add-on est une ligne comme les autres dans le résumé —
   pas de couleur ni de gras qui le fait ressortir (décision Z). */
.bw-co .bw-sum-row.bw-sum-bump { display: none; }
.bw-co .bw-sum-row.bw-sum-bump.is-on { display: flex; }

/* ── Bouton payer (reprend le .btn de la page mais full-width, état disabled) ── */
.bw-co .bw-pay {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn, linear-gradient(120deg, #EE8C3C, #D9701F));
  color: var(--cream, #FFF8EF); font-weight: 800; font-family: inherit;
  font-size: clamp(16px, 2.05cqi, 19px);
  border: none; border-radius: 999px; padding: 19px 20px; margin-top: 16px;
  cursor: pointer; box-shadow: 0 14px 30px rgba(217,112,31,.36);
  transition: transform .18s ease, box-shadow .18s ease, opacity .2s;
}
.bw-co .bw-pay:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(217,112,31,.42); }
.bw-co .bw-pay:active:not(:disabled) { transform: translateY(0); }
.bw-co .bw-pay:disabled { opacity: .72; cursor: not-allowed; box-shadow: 0 8px 20px rgba(217,112,31,.22); }
.bw-co .bw-trust {
  font-size: 12.5px; color: var(--muted, #8A7C66); text-align: center; margin: 10px 0 0; line-height: 1.5;
}
.bw-co .bw-legal {
  font-size: 11px; color: #A79878; text-align: center; margin: 6px 0 0; line-height: 1.55;
}
.bw-co .bw-legal a { text-decoration: underline; }

/* ── Écran de succès (remplace la carte après paiement sans redirect) ── */
.bw-co .bw-success { display: none; text-align: center; padding: 8px 0; }
.bw-co .bw-success.is-on { display: block; }
.bw-co .bw-success-check {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px;
  background: #E4E9D8; color: #3C5A43; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.bw-co .bw-success h3 {
  font-size: clamp(20px, 2.6cqi, 26px); font-weight: 800; letter-spacing: -.02em;
  color: var(--forest, #2A3B2E); margin: 0 0 8px;
}
.bw-co .bw-success p { font-size: 14.5px; color: var(--body, #5A5346); line-height: 1.6; margin: 0; }
