/* =============================================================
   WooCommerce Dark Cart — Full Override v1.4.0
   Nuclear CSS: sélecteur universel + inline style override
   ============================================================= */

/* --- Force le body lui-même à ne pas être blanc --- */
html body.woocommerce-cart,
html body.woocommerce-page {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* --- Sélecteur UNIVERSEL scoped : tout enfant du panier transparent --- */
body.woocommerce-cart *:not(input):not(textarea):not(select):not(button):not(img):not(svg):not(iframe) {
    background-color: transparent !important;
    background: transparent !important;
}

/* --- Restaurer les champs de saisie (fond sombre) --- */
body.woocommerce-cart input,
body.woocommerce-cart input.input-text,
body.woocommerce-cart textarea,
body.woocommerce-cart select,
body.woocommerce-cart table.shop_table .coupon .input-text,
body.woocommerce-cart table.cart td.actions .coupon .input-text {
    background-color: #1E1E1E !important;
    background: #1E1E1E !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

/* --- Placeholder --- */
body.woocommerce-cart input::placeholder,
body.woocommerce-cart textarea::placeholder,
body.woocommerce-cart table.shop_table .coupon .input-text::placeholder {
    color: #999 !important;
}

/* --- Boutons (restaurer le fond) --- */
body.woocommerce-cart button,
body.woocommerce-cart .button,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .wc-block-components-button {
    background-color: #39FF14 !important;
    color: #000 !important;
    border: none !important;
}

body.woocommerce-cart button:hover,
body.woocommerce-cart .button:hover,
body.woocommerce-cart .checkout-button:hover {
    background-color: #2bcc0e !important;
}

/* --- Override inline style="background:..." injectés dynamiquement --- */
body.woocommerce-cart [style*="background-color: white"],
body.woocommerce-cart [style*="background-color: #fff"],
body.woocommerce-cart [style*="background-color: #ffffff"],
body.woocommerce-cart [style*="background: white"],
body.woocommerce-cart [style*="background: #fff"],
body.woocommerce-cart [style*="background: #ffffff"],
body.woocommerce-cart [style*="background-color:white"],
body.woocommerce-cart [style*="background-color:#fff"],
body.woocommerce-cart [style*="background-color:#ffffff"] {
    background-color: transparent !important;
    background: transparent !important;
}

/* --- Overrides spécifiques natives WooCommerce --- */
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error {
    background-color: transparent !important;
    background: transparent !important;
    border-color: #444 !important;
    color: #fff !important;
}

/* --- Couleurs texte globales --- */
body.woocommerce-cart,
body.woocommerce-cart p,
body.woocommerce-cart label,
body.woocommerce-cart h1,
body.woocommerce-cart h2,
body.woocommerce-cart h3,
body.woocommerce-cart span,
body.woocommerce-cart th,
body.woocommerce-cart td,
.woocommerce-cart .cart_totals bdi {
    color: #fff !important;
}

/* --- Montants en vert --- */
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td,
.woocommerce-cart .cart_totals .order-total .amount,
.woocommerce-cart .cart_totals .order-total bdi {
    color: #61CE70 !important;
}

/* --- BlockUI overlay (spinner WooCommerce) --- */
.blockUI.blockOverlay {
    background-color: rgba(0,0,0,0.5) !important;
    background: rgba(0,0,0,0.5) !important;
}

/* --- Bordures tableaux --- */
body.woocommerce-cart table.shop_table,
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
    border-color: #444 !important;
}
