/* Correctif de contraste — espace client et commandes
   Chargé après style.css, commandes.css et commerce.css. */

body.commerce-theme main.account-page {
    color: #f9f5fb;
    background: transparent !important;
}

body.commerce-theme .account-container,
body.commerce-theme .account-layout {
    color: #f9f5fb;
}

body.commerce-theme .account-eyebrow,
body.commerce-theme .account-intro,
body.commerce-theme .order-detail-heading p,
body.commerce-theme .account-container > p {
    color: #c9bdce !important;
}

body.commerce-theme .account-title,
body.commerce-theme .account-container > h1,
body.commerce-theme .order-detail-heading h1,
body.commerce-theme .account-card h2,
body.commerce-theme .orders-card h2,
body.commerce-theme .order-detail-section h2,
body.commerce-theme .order-item h3,
body.commerce-theme .empty-state h2 {
    color: #fff !important;
}

body.commerce-theme .account-card,
body.commerce-theme .orders-card,
body.commerce-theme .order-card,
body.commerce-theme .order-detail-section,
body.commerce-theme .empty-state {
    color: #f9f5fb !important;
    background: rgba(26, 18, 32, .97) !important;
    border-color: rgba(255, 255, 255, .11) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .30) !important;
}

body.commerce-theme .orders-card-header {
    color: #f9f5fb !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(65, 6, 102, .30)) !important;
    border-color: rgba(255, 255, 255, .10) !important;
}

body.commerce-theme .account-card p,
body.commerce-theme .order-card p,
body.commerce-theme .order-detail-section p,
body.commerce-theme .order-item p,
body.commerce-theme .shipping-address,
body.commerce-theme .empty-orders,
body.commerce-theme .empty-orders p,
body.commerce-theme .empty-state p {
    color: #c9bdce !important;
}

body.commerce-theme .account-card strong,
body.commerce-theme .order-card strong,
body.commerce-theme .order-detail-section strong,
body.commerce-theme .shipping-address strong {
    color: #fff;
}

body.commerce-theme .account-label,
body.commerce-theme .orders-table th,
body.commerce-theme .orders-table td::before {
    color: #b9aebf !important;
}

body.commerce-theme .order-item,
body.commerce-theme .order-summary > p,
body.commerce-theme .orders-table th,
body.commerce-theme .orders-table td {
    border-color: rgba(255, 255, 255, .10) !important;
}

body.commerce-theme .order-item-price {
    border-color: rgba(255, 255, 255, .10) !important;
}

body.commerce-theme .order-item-price strong,
body.commerce-theme .order-summary-total,
body.commerce-theme .order-summary-total strong,
body.commerce-theme .order-total,
body.commerce-theme .order-number a {
    color: #f4c76b !important;
}

body.commerce-theme .order-summary > p {
    color: #c9bdce !important;
}

body.commerce-theme .order-summary > p > strong,
body.commerce-theme .order-summary-total > span {
    color: #fff !important;
}

body.commerce-theme .orders-table {
    color: #eee7f2;
    background: transparent;
}

body.commerce-theme .orders-table th {
    background: #120d17 !important;
}

body.commerce-theme .orders-table td {
    color: #eee7f2;
    background: transparent;
}

body.commerce-theme .orders-table tbody tr:hover {
    background: rgba(255, 255, 255, .045) !important;
}

body.commerce-theme .back-link,
body.commerce-theme .account-back-button {
    color: #f4c76b !important;
}

body.commerce-theme .back-link:hover,
body.commerce-theme .account-back-button:hover {
    color: #fff !important;
}

body.commerce-theme .account-button {
    color: #f1e9f5 !important;
    background: rgba(255, 255, 255, .075) !important;
    border: 1px solid rgba(255, 255, 255, .11) !important;
}

body.commerce-theme .account-button:hover {
    color: #fff !important;
    background: rgba(93, 10, 122, .42) !important;
    border-color: rgba(160, 93, 194, .58) !important;
}

body.commerce-theme .account-button--logout {
    color: #fecdd3 !important;
    background: rgba(190, 24, 93, .14) !important;
    border-color: rgba(251, 113, 133, .25) !important;
}

body.commerce-theme .all-orders-button,
body.commerce-theme .button-primary,
body.commerce-theme .button-secondary {
    color: #fff !important;
    background: linear-gradient(135deg, #5d0a7a, #410666) !important;
    border-color: transparent !important;
    box-shadow: 0 11px 27px rgba(65, 6, 102, .40) !important;
}

body.commerce-theme .badge,
body.commerce-theme .order-status {
    border: 1px solid rgba(255, 255, 255, .10);
}

body.commerce-theme .danger-zone {
    color: #f9f5fb !important;
    background: rgba(69, 10, 25, .38) !important;
    border-color: rgba(251, 113, 133, .30) !important;
}

body.commerce-theme .danger-zone h2 {
    color: #fecdd3 !important;
}

body.commerce-theme .danger-zone p,
body.commerce-theme .danger-note {
    color: #e2c5cd !important;
}

body.commerce-theme .danger-form label {
    color: #fff !important;
}

body.commerce-theme .danger-form input {
    color: #fff !important;
    background: #120d17 !important;
    border-color: rgba(255, 255, 255, .18) !important;
}

body.commerce-theme .danger-form input:focus {
    border-color: #a05dc2 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(93, 10, 122, .35) !important;
}

body.commerce-theme .delete-button {
    color: #fff !important;
    background: linear-gradient(135deg, #be123c, #881337) !important;
}

@media (max-width: 760px) {
    body.commerce-theme .orders-card {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.commerce-theme .orders-card-header,
    body.commerce-theme .orders-table tr {
        color: #f9f5fb !important;
        background: rgba(26, 18, 32, .97) !important;
        border: 1px solid rgba(255, 255, 255, .11) !important;
        box-shadow: 0 14px 32px rgba(0, 0, 0, .26) !important;
    }

    body.commerce-theme .orders-table td {
        color: #eee7f2 !important;
    }
}
