/* =====================================================================
   BOUTIQUE — shop-order.css
   Confirmation de commande & suivi public : bandeau de réussite,
   progression, récapitulatif, instructions de paiement, timeline.
   ===================================================================== */

.od-wrap { padding: 30px 0 46px; }

/* ── Bandeau de réussite ────────────────────────────────────────────── */
.od-hero {
    text-align: center; padding: 34px 24px;
    background: var(--shop-surface); border-radius: var(--shop-radius);
    box-shadow: var(--shop-sh-md); margin-bottom: 22px;
    position: relative; overflow: hidden;
}
.od-hero::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--shop-accent), var(--shop-accent-2));
}
.od-check {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--shop-ok-bg); color: var(--shop-ok);
    display: grid; place-items: center;
    animation: odPop 480ms cubic-bezier(.2,1.4,.4,1);
}
.od-check svg { width: 30px; height: 30px; }
.od-check.is-pending { background: var(--shop-warn-bg); color: var(--shop-warn); }
.od-check.is-ko { background: var(--shop-ko-bg); color: var(--shop-ko); }
@keyframes odPop { from { transform: scale(.6); opacity: 0; } }

.od-hero h1 {
    font-family: var(--gk-font-title);
    font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
    font-weight: 800; letter-spacing: -.03em; color: var(--shop-ink); margin: 0 0 8px;
}
.od-hero p { color: var(--shop-body); font-size: .95rem; margin: 0 auto; max-width: 56ch; line-height: 1.6; }

.od-number {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 16px; padding: 10px 18px; border-radius: 999px;
    background: var(--shop-surface-3);
    font-family: var(--gk-font-title); font-size: .95rem; font-weight: 800;
    color: var(--shop-ink); letter-spacing: .02em;
}
.od-number small { font-weight: 600; font-size: .74rem; color: var(--shop-muted); letter-spacing: .04em; text-transform: uppercase; }

.od-hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ── Progression ────────────────────────────────────────────────────── */
.od-progress {
    display: flex; align-items: flex-start; gap: 0;
    padding: 22px; margin-bottom: 18px;
    background: var(--shop-surface); border-radius: var(--shop-radius);
    box-shadow: var(--shop-sh-sm);
    overflow-x: auto;
}
.od-pstep { flex: 1; min-width: 88px; text-align: center; position: relative; }
.od-pstep::before {
    content: ''; position: absolute; top: 13px; left: 0; right: 50%;
    height: 2px; background: var(--shop-line);
}
.od-pstep::after {
    content: ''; position: absolute; top: 13px; left: 50%; right: 0;
    height: 2px; background: var(--shop-line);
}
.od-pstep:first-child::before, .od-pstep:last-child::after { display: none; }
.od-pstep.is-done::before, .od-pstep.is-done::after,
.od-pstep.is-current::before { background: var(--shop-accent); }

.od-pdot {
    position: relative; z-index: 1;
    width: 28px; height: 28px; margin: 0 auto 9px; border-radius: 50%;
    background: var(--shop-surface); border: 2px solid var(--shop-line);
    display: grid; place-items: center;
    color: var(--shop-muted); font-size: .7rem; font-weight: 800;
}
.od-pstep.is-done .od-pdot { background: var(--shop-accent); border-color: var(--shop-accent); color: #fff; }
.od-pstep.is-current .od-pdot {
    background: #fff; border-color: var(--shop-accent); color: var(--shop-accent);
    box-shadow: 0 0 0 4px rgba(42,42,106,.14);
}
.od-plabel { font-size: .77rem; font-weight: 700; color: var(--shop-muted); line-height: 1.35; padding: 0 4px; }
.od-pstep.is-current .od-plabel, .od-pstep.is-done .od-plabel { color: var(--shop-ink); }

.od-cancelled {
    padding: 16px 20px; border-radius: var(--shop-radius);
    background: var(--shop-ko-bg); color: var(--shop-ko);
    font-size: .92rem; font-weight: 700; text-align: center; margin-bottom: 18px;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.od-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px; align-items: start;
}
@media (max-width: 900px) { .od-layout { grid-template-columns: minmax(0, 1fr); } }

.od-box {
    background: var(--shop-surface); border-radius: var(--shop-radius);
    box-shadow: var(--shop-sh-sm); padding: 22px;
}
.od-box + .od-box { margin-top: 16px; }
.od-box-title {
    font-family: var(--gk-font-title); font-size: .95rem; font-weight: 800;
    color: var(--shop-ink); margin: 0 0 15px; letter-spacing: -.02em;
    display: flex; align-items: center; gap: 8px;
}
.od-box-title svg { width: 16px; height: 16px; color: var(--shop-accent); }

/* ── Instructions de paiement ───────────────────────────────────────── */
.od-instructions {
    background: linear-gradient(135deg, rgba(42,42,106,.07), rgba(199,161,90,.08));
    border: 1.5px solid rgba(42,42,106,.16);
    border-radius: var(--shop-radius); padding: 20px; margin-bottom: 18px;
}
.od-instructions-title {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--gk-font-title); font-size: .95rem; font-weight: 800;
    color: var(--shop-accent); margin: 0 0 11px;
}
.od-instructions-title svg { width: 17px; height: 17px; }
.od-instructions-body { font-size: .89rem; color: var(--shop-body); line-height: 1.65; }
.od-instructions-body p { margin: 0 0 9px; }
.od-instructions-body p:last-child { margin-bottom: 0; }

/* ── Lignes de commande ─────────────────────────────────────────────── */
.od-item { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--shop-line); }
.od-item:last-child { border-bottom: 0; }
.od-item img { width: 56px; height: 70px; object-fit: cover; border-radius: 7px; background: var(--shop-surface-3); flex-shrink: 0; }
.od-item-info { flex: 1; min-width: 0; }
.od-item-name { font-size: .89rem; font-weight: 700; color: var(--shop-ink); line-height: 1.3; }
.od-item-var { font-size: .78rem; color: var(--shop-muted); margin-top: 2px; }
.od-item-qty { font-size: .79rem; color: var(--shop-body); margin-top: 4px; }
.od-item-total { font-size: .92rem; font-weight: 800; color: var(--shop-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Informations ───────────────────────────────────────────────────── */
.od-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.od-info-label {
    font-size: .71rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--shop-muted); margin-bottom: 5px;
}
.od-info-value { font-size: .89rem; color: var(--shop-ink); line-height: 1.55; }
.od-info-value strong { font-weight: 700; }

/* ── Timeline ───────────────────────────────────────────────────────── */
.od-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.od-timeline::before {
    content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
    width: 2px; background: var(--shop-line);
}
.od-timeline li { position: relative; padding: 0 0 16px 26px; }
.od-timeline li:last-child { padding-bottom: 0; }
.od-timeline li::before {
    content: ''; position: absolute; left: 0; top: 5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--shop-surface); border: 2.5px solid var(--shop-accent);
}
.od-tl-date { font-size: .74rem; color: var(--shop-muted); margin-bottom: 2px; }
.od-tl-text { font-size: .87rem; color: var(--shop-ink); line-height: 1.5; }

/* ── Suivi public ───────────────────────────────────────────────────── */
.od-track-form {
    max-width: 460px; margin: 0 auto;
    background: var(--shop-surface); border-radius: var(--shop-radius);
    box-shadow: var(--shop-sh-md); padding: 30px;
}
.od-track-form h1 {
    font-family: var(--gk-font-title); font-size: 1.4rem; font-weight: 800;
    letter-spacing: -.03em; margin: 0 0 8px; color: var(--shop-ink); text-align: center;
}
.od-track-form > p { text-align: center; color: var(--shop-muted); font-size: .89rem; margin: 0 0 22px; line-height: 1.55; }

/* ══════════ FICHIERS ACHETÉS ══════════ */

.od-dl-box { margin-bottom: 22px; }

.od-dl {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 0; border-bottom: 1px solid var(--shop-line);
}
.od-dl:last-child { border-bottom: 0; }
.od-dl-name { flex: 1 1 200px; font-weight: 700; color: var(--shop-ink); font-size: .9rem; }
.od-dl-meta { font-size: .76rem; color: var(--shop-muted); }

/* Rendez-vous rattaché à une ligne de commande */
.od-item-book {
    display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 5px;
    background: var(--shop-surface-3); color: var(--shop-accent);
    font-size: .75rem; font-weight: 600;
}
