/* =========================================================================
   Checkout — mise en page à deux colonnes, résumé collant.
   Classes `co-` : stables entre boutiques, seules les couleurs changent.
   ========================================================================= */

.co-body { --ink: #0f172a; --muted: #64748b; --line: #e5e7eb; --bg: #fafafa; padding-bottom: 60px; }

.co-empty { text-align: center; padding: 80px 20px; }
.co-empty p { color: var(--muted); }

.co-grid { display: grid; gap: 0; max-width: 1180px; margin-inline: auto; }
@media (min-width: 1024px) {
	.co-grid { grid-template-columns: 1fr 420px; gap: 48px; padding-inline: 24px; }
	.co-aside { border-left: 1px solid var(--line); }
}

.co-main { padding: 24px 20px 0; max-width: 640px; }
.co-h2 { font-size: 17px; font-weight: 600; margin: 28px 0 12px; }
.co-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.co-err { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }

/* Paiement express + séparateur */
.co-express { margin-bottom: 20px; }
.co-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.co-or::before, .co-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.co-promo { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; padding: 10px 12px; border-radius: 8px; }

/* Champs */
.co-field { margin-bottom: 12px; }
.co-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.co-field input, .co-field select {
	width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid var(--line);
	border-radius: 8px; background: #fff; color: var(--ink);
}
.co-field input:focus, .co-field select:focus { outline: 2px solid var(--ink); outline-offset: -2px; border-color: var(--ink); }
.co-row.c2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.co-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* Autocomplétion d'adresse */
.co-addr-wrap { position: relative; }
.co-suggest { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.co-suggest.open { display: block; }
.co-suggest button { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-suggest button:last-child { border-bottom: 0; }
.co-suggest button:hover { background: var(--bg); }

/* Expédition */
.co-ship label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 8px; padding: 14px; background: #f8fafc; }
.co-ship .t { font-weight: 600; font-size: 14px; }
.co-ship .s { font-size: 12px; color: var(--muted); flex: 1; }
.co-ship .free { font-weight: 700; font-size: 13px; }

/* Paiement */
.co-pay { min-height: 120px; }
.co-pay .ph { color: var(--muted); font-size: 14px; padding: 24px 0; text-align: center; }
.co-pay-btn { width: 100%; margin-top: 16px; padding: 16px; background: var(--ink); color: #fff; border: 0; border-radius: 8px; font-size: 16px; font-weight: 600; }
.co-pay-btn:disabled { opacity: .6; cursor: default; }
.co-legal { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* Résumé */
.co-summary { background: var(--bg); }
@media (min-width: 1024px) { .co-summary { position: sticky; top: 20px; background: none; padding: 24px 0 0 24px; } }
.co-summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (min-width: 1024px) { .co-summary-toggle { display: none; } }
.co-summary-body { display: none; padding: 16px 20px; }
.co-summary.open .co-summary-body { display: block; }
@media (min-width: 1024px) { .co-summary-body { display: block; padding: 0; } }

.co-line { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.co-thumb { position: relative; width: 56px; flex: 0 0 56px; }
.co-thumb img { border: 1px solid var(--line); border-radius: 8px; }
.co-qty { position: absolute; top: -8px; right: -8px; background: var(--muted); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; }
.co-det { flex: 1; }
.co-name { font-size: 14px; font-weight: 600; margin: 0; }
.co-var { font-size: 12px; color: var(--muted); margin: 0; }
.co-price { text-align: right; font-size: 14px; }
.co-price s { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.co-tot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.co-tot p { display: flex; justify-content: space-between; font-size: 14px; margin: 0 0 .5em; }
.co-grand { font-size: 20px !important; font-weight: 700; border-top: 1px solid var(--line); padding-top: .6em; }
.co-grand small { font-size: 12px; color: var(--muted); font-weight: 400; }
