/* =========================================================
   DPP BELGIUM - CENTRE CADEAUX PREMIUM v2
   ========================================================= */

.dpp-gift-center {
    margin: 25px 0 30px;
    font-family: inherit;
    transition: opacity .18s ease, transform .18s ease;
}

.dpp-gift-center--loading {
    opacity: .38;
    pointer-events: none;
}

.dpp-gift-center__hero {
    display: grid;
    grid-template-columns: 150px 1fr 390px;
    gap: 30px;
    align-items: center;
    padding: 30px 34px;
    border: 1px solid #cad7e4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 18%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 28%),
        linear-gradient(135deg, #eef5fb 0%, #f9fcff 48%, #eef6fb 100%);
    box-shadow: 0 8px 24px rgba(11,49,95,.08);
    animation: dppGiftReveal .26s ease both;
}

@keyframes dppGiftReveal {
    from { opacity: 0; transform: scale(.988) translateY(3px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.dpp-gift-center__icon {
    display: flex;
    justify-content: center;
}

.dpp-gift-center__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #b38728;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.dpp-gift-center__content h2,
.dpp-gift-center__selected h2 {
    margin: 0 0 11px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0b315f !important;
    line-height: 1.15 !important;
    text-align: left !important;
}

.dpp-gift-center__content h2 {
    font-size: 29px !important;
}

.dpp-gift-center__intro {
    margin: 0 0 9px !important;
    color: #283a4d;
    font-size: 17px;
}

.dpp-gift-center__warning {
    margin: 0 !important;
    color: #169b45;
    font-size: 16px;
    line-height: 1.45;
}

.dpp-gift-center__action {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dpp-gift-center__button,
.dpp-gift-center__shop-button,
.dpp-gift-center__modify-button,
.dpp-club-card__button {
    display: inline-block;
    border-radius: 11px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.dpp-gift-center__button {
    display: block;
    padding: 17px 20px;
    background: linear-gradient(180deg, #18a54b 0%, #11833b 100%);
    text-align: center;
    font-size: 18px;
}

.dpp-gift-center__button:hover,
.dpp-club-card__button:hover,
.dpp-gift-center__shop-button:hover,
.dpp-gift-center__modify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,.16);
    color: #fff !important;
}

.dpp-gift-center__button-icon {
    font-size: 14px;
    opacity: .9;
}

.dpp-gift-center__action small {
    display: block;
    color: #4b5967;
    text-align: center;
    line-height: 1.35;
}

/* Cadeau bleu & or construit en CSS */
.dpp-premium-gift {
    position: relative;
    width: 104px;
    height: 100px;
    filter: drop-shadow(0 7px 9px rgba(11,49,95,.18));
}

.dpp-premium-gift__box {
    position: absolute;
    left: 12px;
    bottom: 5px;
    width: 80px;
    height: 61px;
    border-radius: 8px;
    background: linear-gradient(135deg, #163b78 0%, #295ea5 55%, #12376d 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.dpp-premium-gift__lid {
    position: absolute;
    left: 7px;
    top: 28px;
    width: 90px;
    height: 21px;
    z-index: 4;
    border-radius: 7px;
    background: linear-gradient(135deg, #315f9f, #183d79);
    box-shadow: 0 3px 5px rgba(0,0,0,.16);
}

.dpp-premium-gift__ribbon-v {
    position: absolute;
    z-index: 5;
    left: 46px;
    top: 28px;
    width: 13px;
    height: 66px;
    background: linear-gradient(180deg, #e2c06b, #b78e35);
}

.dpp-premium-gift__ribbon-h {
    position: absolute;
    z-index: 5;
    left: 8px;
    top: 34px;
    width: 89px;
    height: 10px;
    background: linear-gradient(90deg, #b78e35, #e7c86f, #b58b31);
}

.dpp-premium-gift__knot {
    position: absolute;
    z-index: 7;
    left: 43px;
    top: 20px;
    width: 19px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0d47d, #b98d31);
}

.dpp-premium-gift__bow {
    position: absolute;
    z-index: 6;
    top: 7px;
    width: 38px;
    height: 28px;
    border: 8px solid #d8b75e;
    background: rgba(255,255,255,.18);
}

.dpp-premium-gift__bow--left {
    left: 13px;
    transform: rotate(19deg);
    border-radius: 70% 35% 55% 40%;
}

.dpp-premium-gift__bow--right {
    right: 12px;
    transform: rotate(-19deg);
    border-radius: 35% 70% 40% 55%;
}

/* Infos */
.dpp-gift-center__info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 14px;
    padding: 17px 22px;
    border-radius: 12px;
    font-size: 15.5px;
}

.dpp-gift-center__info strong {
    min-width: 210px;
    font-size: 16px;
}

.dpp-gift-center__info--blue {
    background: #f3f8fd;
    border: 1px solid #9ec1e4;
    color: #0b315f;
}

.dpp-gift-center__info--orange {
    background: #fff9ef;
    border: 1px solid #efbc67;
    color: #674510;
}

.dpp-info-dot,
.dpp-clock-dot {
    display: inline-grid;
    width: 25px;
    height: 25px;
    margin-right: 7px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.dpp-info-dot { background: #2c77bd; }
.dpp-clock-dot { background: #e4a331; }

/* Sous 75 € */
.dpp-gift-center__progress {
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 25px 30px;
    border: 1px solid #9ec1e4;
    border-radius: 16px;
    background: linear-gradient(135deg, #f2f8fd, #fff);
    box-shadow: 0 6px 18px rgba(11,49,95,.06);
    animation: dppGiftReveal .26s ease both;
}

.dpp-gift-center__progress-icon {
    display: flex;
    min-width: 120px;
    justify-content: center;
}

.dpp-gift-center__progress-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dpp-gift-center__progress strong {
    margin-bottom: 6px;
    color: #0b315f;
    font-size: 19px;
}

.dpp-gift-center__progress span {
    color: #46596d;
}

.dpp-gift-center__shop-button {
    margin-top: 14px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #184c86, #0b315f);
    font-size: 15px;
}

/* Cadeau sélectionné */
.dpp-gift-center__selected {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 24px 28px;
    border: 1px solid #8fc8a3;
    border-radius: 16px;
    background: linear-gradient(135deg, #f2fff6, #fff);
    box-shadow: 0 6px 18px rgba(18,117,58,.06);
    animation: dppGiftReveal .26s ease both;
}

.dpp-gift-center__selected-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: #169b45;
    color: #fff;
    font-size: 29px;
    font-weight: 900;
}

.dpp-gift-center__selected h2 {
    font-size: 23px !important;
}

.dpp-gift-center__selected p {
    margin: 0 !important;
    font-size: 16px;
}

.dpp-gift-center__modify-button {
    padding: 12px 18px;
    background: #0b315f;
    white-space: nowrap;
}

/* Club / Newsletter */
.dpp-club-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 14px;
    padding: 19px 22px;
    border: 1px solid #c4d0df;
    border-radius: 13px;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef3f8 100%);
}

.dpp-club-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #0b315f;
    color: #e7c86f;
    font-size: 24px;
    font-weight: 800;
}

.dpp-club-card__content strong,
.dpp-club-card__content span {
    display: block;
}

.dpp-club-card__content strong {
    margin-bottom: 3px;
    color: #0b315f;
    font-size: 17px;
}

.dpp-club-card__content span {
    color: #4c5e70;
    line-height: 1.4;
}

.dpp-club-card__button {
    padding: 12px 17px;
    background: linear-gradient(180deg, #184c86, #0b315f);
    text-align: center;
    white-space: nowrap;
}

/* Messages WooCommerce : on conserve les vraies erreurs, mais on adoucit l'apparence */
body.woocommerce-cart .woocommerce-message {
    border-color: #63a879 !important;
    background: #f1faf4 !important;
    color: #236b39 !important;
}

body.woocommerce-cart .woocommerce-info {
    border-color: #76a9d6 !important;
    background: #f3f8fd !important;
    color: #215f98 !important;
}

@media screen and (max-width: 900px) {

    .dpp-gift-center__hero,
    .dpp-gift-center__selected,
    .dpp-club-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 22px 16px;
        gap: 14px;
    }

    .dpp-gift-center__content h2,
    .dpp-gift-center__selected h2 {
        font-size: 22px !important;
        text-align: center !important;
    }

    .dpp-gift-center__icon,
    .dpp-gift-center__progress-icon {
        min-width: 0;
    }

    .dpp-gift-center__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .dpp-gift-center__info strong {
        min-width: 0;
    }

    .dpp-gift-center__progress {
        flex-direction: column;
        text-align: center;
        padding: 22px 16px;
    }

    .dpp-gift-center__progress-content {
        width: 100%;
        align-items: center;
    }

    .dpp-gift-center__button,
    .dpp-gift-center__modify-button,
    .dpp-club-card__button {
        width: 100%;
        box-sizing: border-box;
    }

    .dpp-club-card__icon {
        margin: 0 auto;
    }
}


/* =========================================================
   DPP BELGIUM - FINITIONS v2.1
   ========================================================= */

.dpp-benefits-title {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.18;
}

.dpp-benefits-title b {
    font-weight: 800;
}

.dpp-club-card__content small {
    display: block;
    margin-top: 4px;
    color: #758397;
    font-size: 11.5px;
}

.dpp-premium-gift {
    transition: transform .2s ease, filter .2s ease;
}

.dpp-gift-center:hover .dpp-premium-gift {
    transform: translateY(-3px);
    filter: drop-shadow(0 10px 12px rgba(11,49,95,.22));
}

/* Carte Total panier */
body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 26px 28px 24px;
    border: 1px solid #d5dfe8;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(11,49,95,.10);
}

body.woocommerce-cart .cart_totals h2 {
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #e2e8ee;
    color: #0b315f !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

body.woocommerce-cart .cart_totals table.shop_table {
    margin-bottom: 18px;
    border: 0;
    background: transparent;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
    padding-top: 13px;
    padding-bottom: 13px;
    border-color: #edf1f4;
}

body.woocommerce-cart .cart_totals .order-total th {
    color: #0b315f;
    font-size: 17px;
}

body.woocommerce-cart .cart_totals .order-total td {
    color: #0b315f;
    font-size: 25px;
    font-weight: 800;
}

body.woocommerce-cart .cart_totals .order-total small,
body.woocommerce-cart .cart_totals .includes_tax {
    display: block;
    margin-top: 4px;
    color: #748191;
    font-size: 11px !important;
    font-weight: 500;
}

/* Réassurance */
.dpp-cart-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0 16px;
}

.dpp-cart-trust__item {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #dfe8ef;
    border-radius: 10px;
    background: #f8fbfd;
    color: #334a61;
    font-size: 12.5px;
}

.dpp-cart-trust__item span {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: #eef5fb;
    color: #0b315f;
    font-size: 13px;
}

/* Bouton principal */
body.woocommerce-cart .wc-proceed-to-checkout {
    padding-bottom: 0;
}

body.woocommerce-cart .dpp-checkout-button {
    display: flex !important;
    gap: 9px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin: 5px 0 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #169b45 0%, #117d39 100%) !important;
    box-shadow: 0 6px 15px rgba(22,155,69,.22);
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

body.woocommerce-cart .dpp-checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(22,155,69,.28);
    color: #fff !important;
}

.dpp-checkout-button__lock {
    font-size: 16px;
}

/* Paiements */
.dpp-cart-payments {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e4e9ee;
    text-align: center;
}

.dpp-cart-payments__label {
    display: block;
    margin-bottom: 9px;
    color: #0b315f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dpp-cart-payments__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.dpp-cart-payments__chips span {
    padding: 5px 8px;
    border: 1px solid #d9e1e8;
    border-radius: 7px;
    background: #fff;
    color: #44576b;
    font-size: 11px;
    font-weight: 700;
}

.dpp-cart-payments small {
    display: block;
    margin-top: 8px;
    color: #84909d;
    font-size: 10.5px;
}

/* Masquer les boutons de paiement express uniquement sur le panier.
   Ils restent disponibles sur la page de validation. */
body.woocommerce-cart .wc-stripe-cart-checkout-container,
body.woocommerce-cart .wcpay-payment-request-wrapper,
body.woocommerce-cart .express-payment-methods,
body.woocommerce-cart .express-payment-methods-wrapper,
body.woocommerce-cart #express-payment-method-woopay,
body.woocommerce-cart #wc-stripe-payment-request-wrapper {
    display: none !important;
}

@media screen and (max-width: 768px) {
    body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        float: none !important;
        padding: 20px 16px 18px;
        box-sizing: border-box;
    }

    .dpp-cart-trust {
        grid-template-columns: 1fr;
    }

    body.woocommerce-cart .cart_totals h2 {
        font-size: 24px !important;
    }

    body.woocommerce-cart .cart_totals .order-total td {
        font-size: 22px;
    }
}


/* =========================================================
   DPP BELGIUM - PANIER PREMIUM v2.2
   Produits + anciens boutons WooCommerce
   ========================================================= */

/* Tableau produits */
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart {
    overflow: hidden;
    border: 1px solid #dbe4ec;
    border-radius: 16px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 8px 22px rgba(11,49,95,.07);
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart thead th {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    background: #f6f9fc;
    color: #0b315f;
    font-size: 14px;
    font-weight: 800;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart tr.cart_item td {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    vertical-align: middle !important;
    border-color: #edf1f4 !important;
}

body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail {
    width: 120px;
}

body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img {
    width: 88px !important;
    max-width: 88px !important;
    height: 88px !important;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11,49,95,.13);
}

body.woocommerce-cart .woocommerce-cart-form td.product-name a {
    color: #164f89 !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(22,79,137,.28);
}

body.woocommerce-cart .woocommerce-cart-form td.product-name a:hover {
    color: #0b315f !important;
    border-bottom-color: #0b315f;
}

/* Offre DPP Belgium sous le nom */
body.woocommerce-cart .woocommerce-cart-form td.product-name strong {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #eef5fb;
    color: #0b315f;
    font-size: 12px;
    font-weight: 800;
}

body.woocommerce-cart .woocommerce-cart-form td.product-name br + * {
    color: #47708f;
}

body.woocommerce-cart .woocommerce-cart-form td.product-price,
body.woocommerce-cart .woocommerce-cart-form td.product-subtotal {
    color: #172f4a;
    font-size: 17px;
    font-weight: 800;
}

body.woocommerce-cart .woocommerce-cart-form td.product-subtotal {
    color: #0b315f;
    font-size: 19px;
}

/* Bouton supprimer */
body.woocommerce-cart .woocommerce-cart-form td.product-remove {
    width: 54px;
}

body.woocommerce-cart .woocommerce-cart-form a.remove {
    display: grid !important;
    width: 31px !important;
    height: 31px !important;
    margin: 0 auto;
    place-items: center;
    border: 1px solid #d7e0e8 !important;
    border-radius: 50% !important;
    background: #f7f9fb !important;
    color: #748291 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: .18s ease;
}

body.woocommerce-cart .woocommerce-cart-form a.remove:hover {
    border-color: #e3b3b3 !important;
    background: #fff3f3 !important;
    color: #b74646 !important;
    transform: scale(1.05);
}

/* Quantité moderne − 1 + */
body.woocommerce-cart .quantity.dpp-qty-ready {
    display: inline-flex !important;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ccd7e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(11,49,95,.06);
}

body.woocommerce-cart .quantity.dpp-qty-ready input.qty {
    width: 42px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #0b315f;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
}

body.woocommerce-cart .quantity.dpp-qty-ready input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity.dpp-qty-ready input.qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.dpp-qty-btn {
    display: grid;
    width: 36px;
    height: 38px;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f2f6fa !important;
    color: #0b315f !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.dpp-qty-btn:hover {
    background: #e5eef6 !important;
}

/* Zone coupon + actualisation */
body.woocommerce-cart .woocommerce-cart-form td.actions {
    padding: 18px !important;
    background: #f8fafc;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .coupon::before {
    content: "🏷 Code promo";
    margin-right: 4px;
    color: #0b315f;
    font-size: 13px;
    font-weight: 800;
}

body.woocommerce-cart .woocommerce-cart-form .coupon input[name="coupon_code"] {
    min-width: 180px;
    height: 44px;
    padding: 0 13px !important;
    border: 1px solid #c9d5df !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.woocommerce-cart .woocommerce-cart-form .coupon button[name="apply_coupon"],
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
    min-height: 44px;
    padding: 0 17px !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 10px rgba(11,49,95,.12) !important;
    font-weight: 800 !important;
    transition: .18s ease;
}

body.woocommerce-cart .woocommerce-cart-form .coupon button[name="apply_coupon"] {
    background: linear-gradient(180deg,#184c86,#0b315f) !important;
    color: #fff !important;
}

body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
    background: #eef2f6 !important;
    color: #516273 !important;
}

body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:not(:disabled):hover,
body.woocommerce-cart .woocommerce-cart-form .coupon button[name="apply_coupon"]:hover {
    transform: translateY(-1px);
}

/* Retirer définitivement les anciens boutons Checkout */
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:not(.dpp-checkout-button),
body.woocommerce-cart .wc-proceed-to-checkout > a.button.checkout-button:not(.dpp-checkout-button) {
    display: none !important;
}

/* Paiement express masqué sur le panier : reste disponible au checkout */
body.woocommerce-cart .wc-stripe-cart-checkout-container,
body.woocommerce-cart .wcpay-payment-request-wrapper,
body.woocommerce-cart .express-payment-methods,
body.woocommerce-cart .express-payment-methods-wrapper,
body.woocommerce-cart #express-payment-method-woopay,
body.woocommerce-cart #wc-stripe-payment-request-wrapper,
body.woocommerce-cart .apple-pay-button,
body.woocommerce-cart [class*="apple-pay"],
body.woocommerce-cart [id*="apple-pay"] {
    display: none !important;
}

@media screen and (max-width: 768px) {
    body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart {
        border-radius: 12px;
    }

    body.woocommerce-cart .woocommerce-cart-form tr.cart_item td {
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img {
        width: 68px !important;
        max-width: 68px !important;
        height: 68px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-name a {
        font-size: 15px;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
        display: grid;
        grid-template-columns: 1fr auto;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon::before {
        grid-column: 1 / -1;
        margin: 0 0 5px;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon input[name="coupon_code"] {
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
        width: 100%;
        margin-top: 10px;
    }
}


/* =========================================================
   DPP BELGIUM - PANIER PREMIUM v2.3
   Mise à jour automatique des quantités
   ========================================================= */

/* Le bouton WooCommerce reste techniquement présent mais invisible.
   Il est déclenché automatiquement dès que la quantité change. */
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* La zone coupon peut occuper toute la ligne maintenant. */
body.woocommerce-cart .woocommerce-cart-form td.actions {
    position: relative;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
    float: none !important;
}

@media screen and (max-width: 768px) {
    body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
        margin: 0 !important;
    }
}


/* =========================================================
   DPP BELGIUM - PANIER PREMIUM v2.4
   En-tête compact et personnalisé
   ========================================================= */

body.woocommerce-cart .entry-header {
    max-width: 1180px;
    margin: 22px auto 16px !important;
    padding: 18px 24px !important;
    border: 1px solid #cbd9e6;
    border-top: 3px solid #b18830;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(239,246,251,.96));
    box-shadow: 0 7px 18px rgba(11,49,95,.07);
    text-align: center;
}

body.woocommerce-cart .entry-header .entry-title,
body.woocommerce-cart h1.entry-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #0b315f !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em;
    text-align: center !important;
}

body.woocommerce-cart .entry-header .entry-title::before {
    content: "🛒";
    margin-right: 9px;
    font-size: .86em;
    vertical-align: .04em;
}

body.woocommerce-cart .entry-header::after {
    content: "Vérifiez vos articles avant de finaliser votre commande.";
    display: block;
    margin-top: 6px;
    color: #66798b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    body.woocommerce-cart .entry-header {
        margin: 12px 12px 14px !important;
        padding: 15px 14px !important;
        border-radius: 12px;
    }

    body.woocommerce-cart .entry-header .entry-title,
    body.woocommerce-cart h1.entry-title {
        font-size: 22px !important;
    }

    body.woocommerce-cart .entry-header::after {
        font-size: 12px;
    }
}


/* =========================================================
   DPP BELGIUM - CORRECTIF v2.4.1
   En-tête + notification coupon
   ========================================================= */

/* Le thème utilise déjà ::after sur l'en-tête : on le neutralise. */
body.woocommerce-cart .entry-header::after {
    content: none !important;
    display: none !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    writing-mode: initial !important;
}

/* Sous-titre injecté comme vrai élément HTML. */
body.woocommerce-cart .dpp-cart-page-subtitle {
    display: block;
    margin-top: 6px;
    color: #66798b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

/* Annule la règle précédente qui créait le sous-titre via ::after. */
body.woocommerce-cart .entry-header::after {
    content: none !important;
}

@media screen and (max-width: 768px) {
    body.woocommerce-cart .dpp-cart-page-subtitle {
        font-size: 12px;
    }
}
