/* ============================================
   TUNNEL DE COMMANDE — PENSEZ SAUVAGE KRAFT
   css/cart.css
   Chargé uniquement sur is_cart() et is_checkout()
   ============================================ */

/* ── BLOC LIVRAISON (remplace le mini-panier sur panier et checkout) ── */

.ps-bloc-livraison {
    position: sticky;
    top: 80px;
    width: 335px;
    flex-shrink: 0;
    align-self: flex-start;
    z-index: 400;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

/* Fond kraft + voile mauve sur le cadre livraison */
.ps-livraison-cadre {
    background: url('../images/kraft-long.jpg') #C8A882 !important;
    background-size: 4% !important;
    background-attachment: scroll !important;
    position: relative !important;
}

.ps-livraison-cadre::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(180, 160, 200, 0.18);
    pointer-events: none;
    z-index: 0;
}

.ps-livraison-cadre .ps-minipanier-inner {
    position: relative;
    z-index: 1;
}

/* Titre de section intermédiaire */
.ps-livraison-titre-section {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #4C351C;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 1.2rem 0 0.6rem;
}

/* Liste tarifs avec puces rondes */
.ps-livraison-tarifs {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0.4rem 0 0;
}

.ps-livraison-tarifs li {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    color: #2C1810;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
}

/* ── TABLEAU PANIER ────────────────────────── */

/* Encadré kraft autour du tableau */
.woocommerce-cart-form {
    border: 2px solid #4C351C;
    border-image: url('../images/border.png') 24 24 / 20px 20px / 0.1rem 0.2rem round;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(200, 168, 130, 0.15);
}

.woocommerce-cart-form .shop_table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    background: transparent !important;
}

/* En-têtes */
.woocommerce-cart-form .shop_table thead th {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #4C351C;
    font-weight: 400;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: transparent !important;
    border-bottom: 2px solid rgba(76, 53, 28, 0.4);
    padding: 0.5rem 0.6rem;
}

/* Lignes produits */
.woocommerce-cart-form .woocommerce-cart-form__cart-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(76, 53, 28, 0.15);
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
}

.woocommerce-cart-form .woocommerce-cart-form__cart-item td {
    padding: 0.8rem 0.6rem;
    vertical-align: middle;
    background: transparent !important;
}

/* Lignes alternées légères */
.woocommerce-cart-form .woocommerce-cart-form__cart-item:nth-child(even) {
    background: rgba(200, 168, 130, 0.12) !important;
}

/* Image vignette — plus grande */
.woocommerce-cart-form .product-thumbnail img {
    border: 1px solid rgba(76, 53, 28, 0.3);
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    aspect-ratio: 1 / 1;
}

/* Nom produit */
.woocommerce-cart-form .product-name a {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810 !important;
    text-decoration: none;
    font-size: 1.1rem;
}

.woocommerce-cart-form .product-name a:hover {
    color: #D4600A !important;
}

/* Prix et sous-total */
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
}

.woocommerce-cart-form .product-price .woocommerce-Price-amount,
.woocommerce-cart-form .product-subtotal .woocommerce-Price-amount {
    color: #7D4E2A;
    font-weight: 400;
    font-size: 1.1rem;
}

/* Bouton suppression (corbeille SVG) */
.woocommerce-cart-form .product-remove a.remove {
    background: transparent !important;
    border: none !important;
    text-decoration: none;
    display: block;
    width: 24px;
    height: 24px;
    font-size: 0 !important;
    color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4600A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6l-1 14H6L5 6'%3E%3C/path%3E%3Cpath d='M10 11v6'%3E%3C/path%3E%3Cpath d='M14 11v6'%3E%3C/path%3E%3Cpath d='M9 6V4h6v2'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    opacity: 0.8;
}

.woocommerce-cart-form .product-remove a.remove:hover {
    background-color: transparent !important;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C1810' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6l-1 14H6L5 6'%3E%3C/path%3E%3Cpath d='M10 11v6'%3E%3C/path%3E%3Cpath d='M14 11v6'%3E%3C/path%3E%3Cpath d='M9 6V4h6v2'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* ── SÉLECTEUR QUANTITÉ +/− ── */
.ps-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #4C351C;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
    background: #dfc4a6;
}

.ps-qty-btn {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    background: rgba(76, 53, 28, 0.15) !important;
    border: none !important;
    border-image: none !important;
    color: #4C351C !important;
    font-size: 1.4rem !important;
    width: 34px !important;
    height: 36px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    transition: background 0.15s !important;
}

.ps-qty-btn:hover {
    background: rgba(76, 53, 28, 0.3) !important;
    color: #2C1810 !important;
}

.ps-qty-input {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    background: transparent !important;
    border: none !important;
    border-left: 1px solid rgba(76, 53, 28, 0.3) !important;
    border-right: 1px solid rgba(76, 53, 28, 0.3) !important;
    border-radius: 0 !important;
    color: #2C1810 !important;
    width: 44px !important;
    height: 36px !important;
    text-align: center !important;
    font-size: 1rem !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}

.ps-qty-input::-webkit-outer-spin-button,
.ps-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── ACTIONS DU FORMULAIRE ─────────────────── */

/* Champ code promo */
.woocommerce-cart-form #coupon_code {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    background: #dfc4a6;
    border: 1px solid #4C351C;
    border-radius: 4px;
    color: #2C1810;
    padding: 6px 10px;
    font-size: 1rem;
    width: auto;
}

.woocommerce-cart-form #coupon_code::placeholder {
    color: rgba(44, 24, 16, 0.5);
    font-style: italic;
}

/* ── BOUTONS KRAFT (uniformes sur toutes les actions) ── */
/*
   Cible : "Appliquer le code promo", "Mettre à jour le panier",
   "Valider la commande" — tous doivent avoir le même style kraft
   que .ps-menu-catalogue-ul li a, sans fond violet/bleu natif.
*/
.woocommerce-cart .woocommerce-cart-form .button,
.woocommerce-cart .woocommerce-cart-form input[type="submit"],
.woocommerce-checkout #place_order,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .woocommerce a.button,
.woocommerce-cart .woocommerce button.button,
.woocommerce-checkout .woocommerce a.button,
.woocommerce-checkout .woocommerce button.button {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    color: #2C1810 !important;
    background: url('../images/kraft-long.jpg') #C8A882 !important;
    background-size: 6% !important;
    background-attachment: fixed !important;
    border: 1.6pt solid #4C351C !important;
    border-image: url('../images/border.png') 24 24 / 12px 15px / 0.05rem round !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    padding: 0.4em 1.4rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: none !important;
    transition: background-color 0.2s !important;
}

.woocommerce-cart-form .button:hover,
.woocommerce-cart-form input[type="submit"]:hover,
#place_order:hover,
.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #e8c99a !important;
    color: #2C1810 !important;
    box-shadow: none !important;
}

/* ── FORMULAIRE CHECKOUT ───────────────────── */
/*
   Champs identiques à css/account.css :
   fond #dfc4a6, bordure #4C351C, coins 4px, police OldNewspaper
*/

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    background: #dfc4a6 !important;
    border: 1px solid #4C351C !important;
    border-radius: 4px !important;
    color: #2C1810 !important;
    padding: 6px 10px !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    outline: none !important;
    border-color: #D4600A !important;
    box-shadow: 0 0 0 2px rgba(212, 96, 10, 0.15) !important;
}

/* Labels du formulaire checkout */
.woocommerce-checkout label {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    color: #2C1810 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}

/* Titres sections checkout */
.woocommerce-checkout h3 {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 1.5rem 0 0.8rem;
}

/* Bloc récapitulatif commande */
.woocommerce-checkout-review-order-table {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    background: transparent !important;
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    background: transparent !important;
    border-bottom: 1px solid rgba(76, 53, 28, 0.2);
    padding: 0.5rem 0.4rem;
    color: #2C1810;
}

.woocommerce-checkout-review-order-table .woocommerce-Price-amount {
    color: #D4600A;
}

/* Contenu textuel du bloc livraison */
.ps-livraison-contenu {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    font-size: 1.1rem;
    line-height: 1.7;
}

.ps-livraison-contenu p {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

/* ── RESPONSIVE TUNNEL ─────────────────────── */

@media (max-width: 768px) {

    /* Sur mobile, le bloc livraison passe sous le cadre */
    .ps-bloc-livraison {
        display: block !important;
        position: static !important;
        width: 100% !important;
        flex-shrink: unset;
        margin: 0 0 2rem;
    }

    /* Tableau responsive : masquer colonnes secondaires */
    .woocommerce-cart-form .product-thumbnail {
        display: none !important;
    }
}

/* ── BOUTON "VALIDER LA COMMANDE" — override WooCommerce ── */
/* Sélecteur ultra-spécifique pour battre les styles natifs WooCommerce */

.wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward {
    background: url('../images/kraft-long.jpg') #C8A882 !important;
    background-size: 6% !important;
    background-attachment: fixed !important;
    color: #2C1810 !important;
    border: 1.6pt solid #4C351C !important;
    border-image: url('../images/border.png') 24 24 / 12px 15px / 0.05rem round !important;
    border-radius: 0 !important;
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    padding: 0.6em 2rem !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward:hover {
    background-color: #e8c99a !important;
    color: #2C1810 !important;
}

/* ── ZONE ACTIONS (code promo + mettre à jour) ── */

.woocommerce-cart-form .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}

/* ── POPUP SACHET OFFERT ── */
#ps-popup-cadeau {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-popup-cadeau-inner {
    background: url('../images/kraft-long.jpg') #C8A882;
    background-size: 6%;
    background-clip: padding-box;
    border: 2px solid #4C351C;
    border-image: url('../images/border.png') 24 24 / 20px 20px / 0.1rem 0.2rem round;
    border-radius: 6px;
    overflow: hidden;
    padding: 2rem 2.5rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
}

.ps-popup-cadeau-titre {
    font-size: 1.6rem;
    color: #2C1810;
    margin: 0 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ps-popup-cadeau-texte {
    font-size: 1.1rem;
    color: #2C1810;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.ps-popup-cadeau-btn {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    background: rgba(76, 53, 28, 0.15);
    border: 1px solid #4C351C;
    color: #2C1810;
    font-size: 1rem;
    padding: 0.5em 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ps-popup-cadeau-btn:hover {
    background: radial-gradient(#ffffffb5, #e8d3ba2b);
}

/* ── BAS DE PAGE PANIER ── */

.ps-bas-panier {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ps-bas-panier-gauche {
    flex: 1;
    min-width: 0;
}

.ps-bas-panier-droite {
    flex: 0 0 360px;
    width: 360px;
    min-width: 0;
}

/* Code promo */
.ps-promo-titre {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.ps-promo-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ps-promo-input {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    background: #dfc4a6 !important;
    border: 1px solid #4C351C !important;
    border-radius: 4px !important;
    color: #2C1810 !important;
    padding: 6px 10px !important;
    font-size: 1rem !important;
    flex: 1;
    min-width: 140px;
}

.ps-promo-btn {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    background: rgba(76, 53, 28, 0.15) !important;
    border: 1px solid #4C351C !important;
    color: #2C1810 !important;
    padding: 6px 1rem !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.ps-promo-btn:hover {
    background: radial-gradient(#ffffffb5, #e8d3ba2b) !important;
}

.ps-promo-applique {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    font-size: 0.85rem;
    color: #6B3A2A;
}

.ps-promo-applique span {
    display: none;
}

.ps-promo-supprimer {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    font-size: 0.8rem;
    color: #8B1A1A;
    text-decoration: none;
    border: 1px solid rgba(139, 26, 26, 0.3);
    padding: 1px 6px 2px;
    transition: background 0.2s;
}

.ps-promo-supprimer:hover {
    background: rgba(139, 26, 26, 0.1);
    color: #8B1A1A;
}

/* Tableau totaux */
.ps-totaux-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
}

.ps-totaux-table td {
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid rgba(76, 53, 28, 0.15);
}

.ps-totaux-table td:last-child {
    text-align: right;
    color: #7D4E2A;
}

.ps-totaux-reduction td {
    color: #3a7a1e !important;
}

.ps-totaux-reduction td:last-child {
    color: #3a7a1e !important;
}

.ps-totaux-ttc td {
    font-size: 1.25rem;
    border-top: 2px solid rgba(76, 53, 28, 0.4);
    border-bottom: none;
    padding-top: 0.8rem;
    color: #2C1810 !important;
}

.ps-totaux-ttc td:last-child {
    color: #7D4E2A !important;
    font-size: 1.3rem;
}

/* Masquer le titre natif GeneratePress sur la page panier */
.woocommerce-cart .entry-header,
.woocommerce-cart h1.entry-title,
.woocommerce-cart .page-title {
    display: none !important;
}

/* Bouton valider */
.ps-bas-panier-droite .wc-proceed-to-checkout {
    margin-top: 1rem;
}

.ps-bas-panier-droite .wc-proceed-to-checkout a {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ps-bas-panier {
        flex-direction: column;
        gap: 1.5rem;
    }
    .ps-bas-panier-gauche,
    .ps-bas-panier-droite {
        width: 100% !important;
        flex: unset !important;
    }
    .woocommerce-cart-form .product-thumbnail {
        display: none !important;
    }
}

/* ── MODALE VIDER LE PANIER ── */
#ps-modale-vider {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-modale-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 24, 16, 0.55);
}

.ps-modale-vider-inner {
    position: relative;
    z-index: 1;
}

.ps-popup-cadeau-btn--confirmer {
    background: rgba(212, 96, 10, 0.15) !important;
    border-color: #D4600A !important;
    color: #D4600A !important;
}

.ps-popup-cadeau-btn--confirmer:hover {
    background: rgba(212, 96, 10, 0.3) !important;
    color: #2C1810 !important;
}

/* Bouton "Annuler" de la modale "Vider le panier" : override du hover
   générique radial-gradient blanc qui rendait le texte illisible.
   Spécificité ID (1,1,0) > classe (0,2,0) → pas besoin de !important.
   Le bouton "Vider" voisin n'est pas affecté (override propre via --confirmer). */
#ps-modale-vider-annuler {
    transition: background 0.2s ease, color 0.2s ease;
}
#ps-modale-vider-annuler:hover,
#ps-modale-vider-annuler:focus {
    background: rgba(76, 53, 28, 0.3);
    color: #7D2B0B;
}

/* ── PANIER VIDE ── */
.ps-panier-vide {
    text-align: center;
    padding: 3rem 2rem;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
}

.ps-panier-vide-texte {
    font-size: 1.4rem;
    color: #2C1810;
    text-align: center;
    font-style: italic;
    margin: 1.5rem 0 0;
}

.ps-btn-catalogue {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    background: url('../images/kraft-long.jpg') #C8A882;
    background-size: 6%;
    background-attachment: fixed;
    border: 1.6pt solid #4C351C;
    border-image: url('../images/border.png') 24 24 / 12px 15px / 0.05rem round;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.4em 1.4rem;
    text-decoration: none;
    display: inline-block;
}

.ps-btn-catalogue:hover {
    background-color: #e8c99a;
    color: #2C1810;
}

/* ── BOUTON VIDER LE PANIER — style kraft fort ── */
#ps-btn-vider-panier,
#ps-btn-vider-panier.button {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    color: #2C1810 !important;
    font-size: 1.05rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: url('../images/kraft-long.jpg') #C8A882 !important;
    background-size: 6% !important;
    border: 3px solid #4C351C !important;
    border-image: url('../images/border.png') 24 24 / 12px 12px / 0 round !important;
    border-radius: 0 !important;
    padding: 6px 18px 8px !important;
    font-style: normal !important;
    cursor: pointer !important;
    box-shadow: none !important;
    display: block !important;
    margin-left: 0 !important;
    transition: background 0.2s !important;
}

#ps-btn-vider-panier:hover,
#ps-btn-vider-panier.button:hover {
    background:
        radial-gradient(rgba(220, 156, 90, 0.25), rgba(220, 156, 90, 0.25)),
        url('../images/kraft-long.jpg') #C8A882 !important;
    background-size: auto, 6% !important;
    background-clip: padding-box !important;
    color: #2C1810 !important;
}

.ps-generer-devis-wrap {
    display: flex;
    justify-content: flex-start;
    margin: 0.8rem 0 1.2rem;
}

.ps-panier-vide-img {
    display: block;
    margin: 2rem auto;
    width: clamp(160px, 25vw, 260px);
    opacity: 0.75;
}

/* Panier vide — centrage vertical autonome.
   .ps-panier-vide ne dépend plus du parent flex (la règle pleine hauteur
   sur .ps-contenu-border-inner est globale dans shop.css depuis le chantier
   "fond clair généralisé"). On donne ici une min-height calculée pour
   garantir une zone suffisante, le flex column interne centre le contenu. */
.woocommerce-cart .ps-panier-vide {
    min-height: calc(100vh - 320px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ── CONFIRMATION CODE PROMO ─────────────────*/

.ps-promo-confirmation {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.8rem;
    padding: 0.6rem 0.9rem;
    background: rgba(58, 122, 42, 0.1);
    border: none;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
}

.ps-promo-confirmation strong {
    color: #3a7a2a;
    font-size: 1.05rem;
}

.ps-promo-confirmation-desc {
    color: #4C351C;
    font-size: 0.95rem;
}

/* ── ERREURS CODE PROMO ──────────────────────
   Cible JS d'injection des notices WC d'erreur (coupon invalide,
   expiré, restriction email, etc.). Reset complet du style natif
   WC pour intégration kraft : pas de bandeau blanc, pas d'icône
   par défaut. Couvre <ul.woocommerce-error> (WC moderne) et
   <div.woocommerce-error> (versions antérieures). */

.ps-promo-erreurs {
    margin-top: 0.8rem;
}
.ps-promo-erreurs:empty {
    display: none;
}
.ps-promo-erreurs .woocommerce-error,
.ps-promo-erreurs ul.woocommerce-error,
.ps-promo-erreurs div.woocommerce-error {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    color: #7D2B0B;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    font-size: 1rem;
}
.ps-promo-erreurs .woocommerce-error li,
.ps-promo-erreurs ul.woocommerce-error li,
.ps-promo-erreurs div.woocommerce-error li {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #7D2B0B;
}
.ps-promo-erreurs .woocommerce-error li::before,
.ps-promo-erreurs ul.woocommerce-error li::before,
.ps-promo-erreurs div.woocommerce-error li::before {
    content: none !important;
    display: none !important;
}
/* Neutralisation des pseudos sur le conteneur lui-même (icône WC
   d'alerte rendue en ::before du <ul>, indépendante des <li>). */
.ps-promo-erreurs .woocommerce-error::before,
.ps-promo-erreurs ul.woocommerce-error::before,
.ps-promo-erreurs div.woocommerce-error::before,
.ps-promo-erreurs .woocommerce-error::after,
.ps-promo-erreurs ul.woocommerce-error::after,
.ps-promo-erreurs div.woocommerce-error::after {
    content: none !important;
    display: none !important;
}
.ps-promo-erreurs .woocommerce-error a {
    color: #7D2B0B;
    text-decoration: underline;
}

/* ── BOUTON GÉNÉRER UN DEVIS ─────────────────────────────── */

.ps-actions-panier {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.ps-vider-panier-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 50%;
}

.ps-generer-devis-form {
    margin: 0;
}

.ps-generer-devis-btn {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    background: #dfc4a6;
    border: 1px solid #4C351C;
    border-image: none;
    border-radius: 4px;
    color: #2C1810;
    font-size: 1rem;
    font-style: italic;
    cursor: pointer;
    padding: 6px 1rem;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    display: block;
    transition: background 0.2s;
}

.ps-generer-devis-btn:hover:not(:disabled),
.ps-generer-devis-btn:focus:not(:disabled) {
    background: #e8c99a;
    color: #2C1810;
}

.ps-generer-devis-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ps-devis-avertissement-coupon {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    font-size: 0.9rem;
    color: #7D2B0B;
    font-style: italic;
    margin: 0.3rem 0 0;
    text-align: right;
    line-height: 1.4;
    max-width: 28rem;
}

@media (max-width: 600px) {
    .ps-actions-panier {
        flex-direction: column;
    }
    .ps-vider-panier-wrap {
        max-width: 100%;
        align-items: stretch;
    }
    .ps-devis-avertissement-coupon {
        text-align: left;
    }
}

/* Bandeau alerte produits indispos après commande de devis.
   Posé par ps_devis_handler_commander en session WC, lu et vidé par
   woocommerce/cart/cart.php au chargement de la page panier. */
.ps-cart-bandeau-indispos {
    background: rgba(197, 48, 48, 0.08);
    border: 2px solid rgba(197, 48, 48, 0.45);
    padding: 1rem 1.4rem;
    margin: 0 0 1.5rem;
    color: #4C351C;
    font-size: 1.05rem;
    border-radius: 4px;
}
.ps-cart-bandeau-indispos-titre {
    margin: 0 0 0.5rem;
    font-weight: bold;
    color: #8B2020;
}
.ps-cart-bandeau-indispos-liste {
    margin: 0;
    padding-left: 1.4rem;
}
.ps-cart-bandeau-indispos-liste li {
    margin: 0.2rem 0;
}
