/* SecretGift V8.9.3 — fiche commande client compacte et colorée */

.client-order-detail-page {
    --order-bg: #d7e7f7;
    --order-border: #4a7fb1;
    --order-text: #214b72;
    --order-muted: #57738d;

    display: grid;
    gap: 9px;
}

.client-order-detail--green {
    --order-bg: #b9e7ca;
    --order-border: #23864d;
    --order-text: #0b572e;
    --order-muted: #357252;
}

.client-order-detail--orange {
    --order-bg: #ffdda4;
    --order-border: #cf8118;
    --order-text: #693a00;
    --order-muted: #885d1c;
}

.client-order-detail--brown {
    --order-bg: #e1d0af;
    --order-border: #856225;
    --order-text: #4b3310;
    --order-muted: #725b36;
}

.client-order-detail--red {
    --order-bg: #f3cdd3;
    --order-border: #ac4150;
    --order-text: #771d2a;
    --order-muted: #94515c;
}

.client-order-detail--purple {
    --order-bg: #e4d8fa;
    --order-border: #795cc0;
    --order-text: #39206d;
    --order-muted: #695390;
}

.client-order-detail--blue {
    --order-bg: #d7e7f7;
    --order-border: #4a7fb1;
    --order-text: #214b72;
    --order-muted: #57738d;
}

.client-order-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 102px;
    padding: 12px 14px;
    border: 1px solid var(--order-border);
    border-left: 8px solid var(--order-border);
    border-radius: 12px;
    background: var(--order-bg);
    color: var(--order-text);
    box-shadow: 0 5px 13px rgba(35, 28, 20, .08);
}

.client-order-back {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--order-text);
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
}

.client-order-hero .order-number {
    display: block;
    margin-bottom: 4px;
    color: var(--order-text);
    font-size: .72rem;
    font-weight: 950;
}

.client-order-hero h1 {
    margin: 0;
    color: var(--order-text);
    font-size: 1.45rem;
    line-height: 1.05;
}

.client-order-hero p {
    margin: 5px 0 0;
    color: var(--order-muted);
    font-size: .78rem;
}

.client-order-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--order-text);
    font-size: .69rem;
    font-weight: 950;
}

.client-order-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
    gap: 9px;
}

.client-order-info-card,
.client-order-timeline-card {
    padding: 11px !important;
    border: 1px solid var(--order-border) !important;
    border-left: 6px solid var(--order-border) !important;
    border-radius: 11px !important;
    background: color-mix(
        in srgb,
        var(--order-bg) 75%,
        white
    ) !important;
    color: var(--order-text) !important;
    box-shadow: 0 4px 11px rgba(35, 28, 20, .07);
}

.client-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.client-card-heading > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .62);
    font-size: 1rem;
}

.client-card-heading h2 {
    margin: 0 !important;
    color: var(--order-text) !important;
    font-size: .98rem !important;
    line-height: 1.1;
}

.client-card-heading p {
    margin: 2px 0 0 !important;
    color: var(--order-muted) !important;
    font-size: .66rem !important;
}

.client-order-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.client-order-facts > div {
    min-width: 0;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(0, 0, 0, .06);
}

.client-order-facts span {
    display: block;
    color: var(--order-muted);
    font-size: .64rem;
    line-height: 1.1;
}

.client-order-facts strong {
    display: block;
    margin-top: 4px;
    color: var(--order-text);
    font-size: .78rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.client-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.client-order-actions .btn {
    min-height: 34px !important;
    padding: 6px 9px !important;
    border-radius: 8px !important;
    font-size: .72rem !important;
}

.recipient-compact-info {
    display: grid;
    gap: 5px;
    padding: 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .58);
}

.recipient-compact-info strong {
    color: var(--order-text);
    font-size: .82rem;
}

.recipient-compact-info span {
    color: var(--order-muted);
    font-size: .72rem;
    line-height: 1.2;
}

.recipient-instructions {
    margin-top: 7px;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .45);
}

.recipient-instructions b {
    color: var(--order-text);
    font-size: .7rem;
}

.recipient-instructions p {
    margin: 3px 0 0;
    color: var(--order-muted);
    font-size: .68rem;
}

.client-order-timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.client-timeline-step {
    --step-bg: #d7e7f7;
    --step-border: #4a7fb1;
    --step-text: #214b72;
    --step-muted: #57738d;

    min-height: 74px;
    padding: 8px 9px;
    border: 1px solid var(--step-border);
    border-left: 5px solid var(--step-border);
    border-radius: 9px;
    background: var(--step-bg);
    color: var(--step-text);
}

.timeline-green {
    --step-bg: #c2ead1;
    --step-border: #278a52;
    --step-text: #0e5a32;
    --step-muted: #3c7458;
}

.timeline-orange {
    --step-bg: #ffe0a8;
    --step-border: #cf8118;
    --step-text: #6c3c00;
    --step-muted: #8b611f;
}

.timeline-brown {
    --step-bg: #e1d0af;
    --step-border: #856225;
    --step-text: #4b3310;
    --step-muted: #725b36;
}

.timeline-red {
    --step-bg: #f3cdd3;
    --step-border: #ac4150;
    --step-text: #771d2a;
    --step-muted: #94515c;
}

.timeline-purple {
    --step-bg: #e4d8fa;
    --step-border: #795cc0;
    --step-text: #39206d;
    --step-muted: #695390;
}

.timeline-blue {
    --step-bg: #d7e7f7;
    --step-border: #4a7fb1;
    --step-text: #214b72;
    --step-muted: #57738d;
}

.timeline-step-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}

.timeline-step-top strong {
    color: var(--step-text);
    font-size: .72rem;
    line-height: 1.15;
}

.timeline-step-top span {
    flex: 0 0 auto;
    color: var(--step-muted);
    font-size: .59rem;
}

.client-timeline-step p {
    margin: 6px 0 0;
    color: var(--step-muted);
    font-size: .65rem;
    line-height: 1.2;
}

@media (max-width: 1050px) {
    .client-order-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-order-timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .client-order-summary-grid {
        grid-template-columns: 1fr;
    }

    .client-order-hero h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 520px) {
    .client-order-hero {
        align-items: flex-start;
    }

    .client-order-facts,
    .client-order-timeline-grid {
        grid-template-columns: 1fr;
    }

    .client-order-status {
        max-width: 110px;
        text-align: center;
    }
}
