/* Page de paiement du catalogue (/commande/, cf. commande/commande.js) :
   charge d'abord css/common.css, dont elle reprend .wrapper, .step-title
   et .cta-btn. Volontairement sobre (pas de value stack ni de compte à
   rebours comme la popup de /quizz/offre/) : c'est un passage en caisse
   atteint depuis la vitrine, pas une page de vente. */

.commande-page { padding-bottom: 48px; }

.commande-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.commande-back:hover { color: var(--accent); }

.commande-intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 16px;
}

/* ── Récap produit ────────────────────────────────────────────── */

.commande-recap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.commande-recap-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.commande-recap-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.commande-recap-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.commande-recap-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 3px;
}

.commande-recap-price {
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.commande-recap-microcopy {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ── Champ email ──────────────────────────────────────────────── */

.commande-field { margin-bottom: 20px; }

.commande-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.commande-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.commande-field input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Payment Element + validation ─────────────────────────────── */

.commande-loading { text-align: center; font-size: 14px; color: var(--ink-soft); }

.commande-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--error);
  margin: 10px 0 0;
}

.commande-page .cta-btn { width: 100%; }

.commande-payment-methods {
  display: block;
  margin: 16px auto 0;
  height: auto;
}

.commande-legal {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: center;
  margin: 16px 0 0;
}

.commande-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--error);
  line-height: 1.6;
}
.commande-error a { color: inherit; }

/* ── Repli quand ?p= est absent ou inconnu ────────────────────── */

.commande-picker {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.commande-picker a {
  display: block;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
}

.commande-picker a:hover { border-color: var(--accent); }
