/* ==========================================================
   VITALIANE - PANIER / CHECKOUT
   VERSION V2 PROPRE
   ==========================================================
 *
 * Ce fichier remplace les essais précédents.
 *
 * Objectifs :
 * - panier aéré mais compact
 * - pleine largeur utile sur mobile
 * - aucun gros cadre autour des produits sur smartphone
 * - contrôle quantité entièrement maîtrisé visuellement
 * - moteur AJAX PrestaShop conservé en arrière-plan
 * ========================================================== */


/* ==========================================================
   PAGE
   ========================================================== */

.v-checkout-page {
    width: 100%;
    color: var(--v-text, #2f3433);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
}

.v-checkout-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 48px;
}


/* ==========================================================
   EN-TÊTE
   ========================================================== */

.v-checkout-header {
    margin-bottom: 22px;
}

.v-checkout-title {
    margin: 0 0 4px;
    color: #20332b;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.v-checkout-subtitle {
    margin: 0;
    color: #6b7671;
    font-size: 16px;
    line-height: 1.45;
}


/* ==========================================================
   LAYOUT DESKTOP
   ========================================================== */

.v-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.v-checkout-main {
    min-width: 0;
}

.v-checkout-summary {
    position: sticky;
    top: 20px;
}


/* ==========================================================
   CARTES
   ========================================================== */

.v-cart-products-card,
.v-cart-summary-card {
    background: #fff;
    border: 1px solid #e4eae6;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(36, 56, 47, .045);
}

.v-cart-products-card {
    padding: 4px 24px;
}


/* ==========================================================
   LIGNE PRODUIT DESKTOP
   ========================================================== */

.v-cart-product {
    position: relative;
    display: grid !important;
    grid-template-columns: 88px minmax(220px, 1fr) 150px;
    gap: 22px;
    align-items: center;
    padding: 22px 0 !important;
    border-bottom: 1px solid #e6ebe8 !important;
}

.v-cart-product:last-child {
    border-bottom: 0 !important;
}


/* ==========================================================
   IMAGE
   ========================================================== */

.v-cart-product-image {
    width: 88px !important;
    height: 88px !important;
    overflow: hidden;
    border-radius: 15px !important;
    background: #f5f7f5;
}

.v-cart-product-image-link,
.v-cart-product-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.v-cart-product-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* ==========================================================
   INFORMATIONS
   ========================================================== */

.v-cart-product-info {
    min-width: 0;
}

.v-cart-product-name {
    display: block;
    margin: 0 0 3px !important;
    color: #172923 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    text-decoration: none !important;
}

.v-cart-product-name:hover {
    color: var(--v-primary, #6f9f8a) !important;
}

.v-cart-product-attribute {
    color: #74807b !important;
    font-size: 14px !important;
    line-height: 1.35;
}

.v-cart-product-price {
    margin-top: 8px;
    color: var(--v-primary-dark, #496f60);
    font-size: 18px;
    font-weight: 700;
}


/* ==========================================================
   QUANTITÉ - MOTEUR NATIF CACHÉ
   ==========================================================
 *
 * Le TouchSpin de Warehouse continue à exister et à gérer
 * ses AJAX.
 *
 * Mais il n'est plus utilisé pour l'affichage.
 * ========================================================== */

.v-cart-native-qty {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.v-cart-native-qty .bootstrap-touchspin,
.v-cart-native-qty input {
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
}


/* ==========================================================
   QUANTITÉ - CONTRÔLE VISIBLE VITALIANE
   ========================================================== */

.v-cart-qty-zone {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.v-cart-qty-control {
    display: grid;
    grid-template-columns: 42px 50px 42px;
    align-items: center;
    width: 142px;
    padding: 4px;
    border-radius: 15px;
    background: #f0f5f2;
}

.v-cart-qty-action,
.v-cart-qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
}

.v-cart-qty-action {
    width: 42px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #e4ede7;
    color: #4b755f;
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.v-cart-qty-action:hover {
    background: #dce9e0;
}

.v-cart-qty-value {
    width: 50px;
    border-radius: 10px;
    background: #fff;
    color: #172923;
    font-size: 17px;
    font-weight: 700;
}

.v-cart-qty-left.is-delete {
    /*
     * La corbeille garde exactement la même palette
     * que les autres contrôles de quantité.
     * Pas de rouge : elle reste discrète.
     */
    background: #e4ede7;
    color: #4b755f;
}

.v-cart-qty-left.is-delete:hover {
    background: #dce9e0;
}

.v-cart-qty-left.is-delete i {
    font-size: 17px;
}


/* ==========================================================
   SUPPRESSION NATIVE INVISIBLE
   ========================================================== */

.v-cart-native-remove {
    display: none !important;
}


/* ==========================================================
   ÉLÉMENTS ANNEXES
   ========================================================== */

.v-cart-extra-actions:empty,
.v-cart-customizations:empty {
    display: none;
}



/* ==========================================================
   TITRE DU RÉCAPITULATIF
   ========================================================== */

.v-cart-summary-title {
    margin: 0 0 10px;
    color: #20332b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

/* ==========================================================
   RÉCAPITULATIF
   ========================================================== */

.v-cart-summary-card {
    padding: 24px;
}

.v-cart-summary-card .cart-summary-line {
    font-size: 15px;
    line-height: 1.5;
}

.v-cart-summary-card .cart-summary-line .label {
    color: #47534e;
}

.v-cart-summary-card .cart-summary-line .value {
    color: #24322d;
    font-weight: 500;
}

.v-cart-summary-card .cart-total {
    margin-top: 15px !important;
    padding-top: 19px !important;
    border-top: 1px solid #e5eae7;
}

.v-cart-summary-card .cart-total .label,
.v-cart-summary-card .cart-total .value {
    color: #172923 !important;
    font-size: 23px !important;
    font-weight: 700 !important;
}


/* ==========================================================
   COMMANDER
   ========================================================== */

.v-cart-summary-card .checkout a,
.v-cart-summary-card .btn-primary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 58px;
    margin-top: 18px;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--v-primary, #6f9f8a) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: 0 5px 14px rgba(44, 76, 62, .12);
}

.v-cart-summary-card .checkout a:hover,
.v-cart-summary-card .btn-primary:hover {
    background: var(--v-primary-hover, #5c8976) !important;
}


/* ==========================================================
   CONTINUER MES ACHATS
   ========================================================== */

.v-cart-continue {
    margin-top: 18px;
}

.v-cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--v-primary-dark, #496f60) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

.v-cart-continue-link:hover {
    text-decoration: underline !important;
}


/* ==========================================================
   BLOCS APRÈS CHECKOUT / CROSS SELLING
   ========================================================== */

.v-cart-after-checkout {
    margin-top: 28px;
}

.v-cart-cross-selling {
    margin-top: 22px;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

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

    .v-checkout-layout {
        display: block;
    }

    .v-checkout-summary {
        position: static;
        margin-top: 22px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

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

    /* Page pleine largeur utile */

    .v-checkout-page .v-checkout-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 16px 16px 34px !important;
    }


    /* En-tête */

    .v-checkout-header {
        margin: 12px 0 14px !important;
    }

    .v-checkout-title {
        margin: 0 0 3px !important;
        font-size: 29px !important;
        line-height: 1.15 !important;
    }

    .v-checkout-subtitle {
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
    }


    /* Aucun cadre autour de la liste produits */

    .v-cart-products-card {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }


    /* Ligne produit :
       PHOTO | INFOS | QUANTITÉ */

    .v-cart-product {
        grid-template-columns: 82px minmax(0, 1fr) 122px !important;
        gap: 12px !important;
        min-height: 118px;
        padding: 17px 0 !important;
        border-bottom: 1px solid #e3e8e5 !important;
    }

    .v-cart-product-image {
        width: 82px !important;
        height: 82px !important;
        border-radius: 14px !important;
    }

    .v-cart-product-name {
        margin-bottom: 3px !important;
        font-size: 16px !important;
        line-height: 1.18 !important;
    }

    .v-cart-product-attribute {
        font-size: 12px !important;
    }

    .v-cart-product-price {
        margin-top: 7px;
        font-size: 17px !important;
    }


    /* Quantité compacte mais lisible */

    .v-cart-qty-control {
        grid-template-columns: 36px 42px 36px;
        width: 122px;
        padding: 4px;
        border-radius: 13px;
    }

    .v-cart-qty-action,
    .v-cart-qty-value {
        height: 38px;
    }

    .v-cart-qty-action {
        width: 36px;
        border-radius: 9px;
        font-size: 20px;
    }

    .v-cart-qty-value {
        width: 42px;
        border-radius: 9px;
        font-size: 15px;
    }

    .v-cart-qty-left.is-delete i {
        font-size: 16px;
    }


    .v-cart-summary-title {
        margin: 0 0 10px !important;
        font-size: 18px !important;
        text-align: left;
    }

    /* Résumé juste sous les produits */

    .v-checkout-summary {
        margin-top: 18px !important;
    }

    .v-cart-summary-card {
        padding: 20px !important;
        border-radius: 17px !important;
    }

    .v-cart-summary-card .cart-total .label,
    .v-cart-summary-card .cart-total .value {
        font-size: 22px !important;
    }

    .v-cart-summary-card .checkout a,
    .v-cart-summary-card .btn-primary {
        min-height: 58px;
        font-size: 18px !important;
        border-radius: 14px !important;
    }


    /* Continuer mes achats après le récap */

    .v-cart-continue {
        margin-top: 16px !important;
        text-align: center;
    }

    .v-cart-continue-link {
        font-size: 14px;
    }


    /* Recommandations seulement après */

    .v-cart-after-checkout {
        margin-top: 26px !important;
    }

}


/* ==========================================================
   PETITS MOBILES
   ========================================================== */

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

    .v-checkout-page .v-checkout-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .v-cart-product {
        grid-template-columns: 70px minmax(0, 1fr) 108px !important;
        gap: 9px !important;
    }

    .v-cart-product-image {
        width: 70px !important;
        height: 70px !important;
    }

    .v-cart-product-name {
        font-size: 15px !important;
    }

    .v-cart-qty-control {
        grid-template-columns: 32px 38px 32px;
        width: 108px;
        padding: 3px;
    }

    .v-cart-qty-action,
    .v-cart-qty-value {
        height: 36px;
    }

    .v-cart-qty-action {
        width: 32px;
        font-size: 18px;
    }

    .v-cart-qty-value {
        width: 38px;
        font-size: 14px;
    }

}


/* ==========================================================
   VITALIANE - AJUSTEMENTS V4
   ==========================================================
 *
 * - typographie globalement plus grande
 * - titres produits sur une seule ligne
 * - déclinaison affichée sans le mot "Contenance"
 * - corbeille neutre
 * - récapitulatif plus lisible
 * ========================================================== */


/* ----------------------------------------------------------
   PS CHECKOUT : loader technique invisible
   ---------------------------------------------------------- */

.v-ps-checkout-loader {
    display: none !important;
}


/* ----------------------------------------------------------
   TYPOGRAPHIE GÉNÉRALE DU PANIER
   ---------------------------------------------------------- */

.v-checkout-page {
    font-size: 17px;
}

.v-checkout-title {
    font-size: 36px !important;
}

.v-checkout-subtitle {
    font-size: 17px !important;
}


/* ----------------------------------------------------------
   TITRE PRODUIT : UNE SEULE LIGNE
   ---------------------------------------------------------- */

.v-cart-product-name {
    display: block !important;
    width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
}


/* ----------------------------------------------------------
   DÉCLINAISON : uniquement "5ml"
   ---------------------------------------------------------- */

.v-cart-product-attribute {
    margin-top: 3px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    color: #6f7a75 !important;
}


/* ----------------------------------------------------------
   PRIX PRODUIT
   ---------------------------------------------------------- */

.v-cart-product-price {
    margin-top: 8px !important;
    font-size: 19px !important;
}


/* ----------------------------------------------------------
   RÉCAPITULATIF PLUS LISIBLE
   ---------------------------------------------------------- */

.v-cart-summary-title {
    font-size: 21px !important;
    margin-bottom: 14px !important;
}

.v-cart-summary-card .cart-summary-line {
    font-size: 17px !important;
}

.v-cart-summary-card .cart-total .label,
.v-cart-summary-card .cart-total .value {
    font-size: 25px !important;
}


/* ----------------------------------------------------------
   CORBEILLE : même palette que les autres boutons
   ---------------------------------------------------------- */

.v-cart-qty-left.is-delete,
.v-cart-qty-left.is-delete:hover {
    background: #e4ede7 !important;
    color: #4b755f !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

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

    .v-checkout-title {
        font-size: 32px !important;
    }

    .v-checkout-subtitle {
        font-size: 16px !important;
    }

    .v-cart-product {
        grid-template-columns: 78px minmax(0, 1fr) 122px !important;
        gap: 10px !important;
    }

    .v-cart-product-image {
        width: 78px !important;
        height: 78px !important;
    }

    .v-cart-product-name {
        font-size: 17px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .v-cart-product-attribute {
        font-size: 14px !important;
    }

    .v-cart-product-price {
        font-size: 18px !important;
    }

    .v-cart-summary-title {
        font-size: 20px !important;
    }

    .v-cart-summary-card .cart-summary-line {
        font-size: 17px !important;
    }

    .v-cart-summary-card .cart-total .label,
    .v-cart-summary-card .cart-total .value {
        font-size: 24px !important;
    }

}

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

    .v-cart-product {
        grid-template-columns: 68px minmax(0, 1fr) 108px !important;
        gap: 8px !important;
    }

    .v-cart-product-image {
        width: 68px !important;
        height: 68px !important;
    }

    .v-cart-product-name {
        font-size: 16px !important;
    }

}


/* ==========================================================
   VITALIANE - AJUSTEMENTS V5
   ==========================================================
 *
 * 1. évite le zoom au double tap sur les contrôles quantité
 * 2. laisse le titre produit utiliser toute la largeur
 * 3. descend légèrement le pavé quantité
 * 4. agrandit le bouton +
 * 5. améliore nettement le bloc code promo
 * ========================================================== */


/* ----------------------------------------------------------
   ANTI DOUBLE-TAP ZOOM SUR LES CONTRÔLES
   ----------------------------------------------------------

   On ne désactive PAS le zoom général de la page.
   On indique uniquement au navigateur que ces contrôles
   sont des boutons d'action.
   ---------------------------------------------------------- */

.v-cart-qty-control,
.v-cart-qty-action,
.v-cart-qty-value,
.v-cart-summary-card button,
.v-cart-summary-card input {
    touch-action: manipulation;
}

.v-cart-qty-action {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


/* ----------------------------------------------------------
   BOUTON PLUS PLUS VISIBLE
   ---------------------------------------------------------- */

.v-cart-qty-plus {
    font-size: 27px !important;
    font-weight: 500 !important;
}


/* ----------------------------------------------------------
   CODE PROMO
   ---------------------------------------------------------- */

.v-cart-summary-card .block-promo {
    margin-top: 12px !important;
}

.v-cart-summary-card .cart-voucher {
    margin: 0 !important;
}

.v-cart-summary-card .cart-voucher-area {
    padding: 0 !important;
}

.v-cart-summary-card .promo-code {
    margin: 0 !important;
}

.v-cart-summary-card .promo-code form {
    margin: 0 !important;
}

.v-cart-summary-card .promo-code .input-group {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #dce5e0 !important;
    border-radius: 14px !important;
    background: #f7faf8 !important;
    box-shadow: none !important;
}

.v-cart-summary-card .promo-code .voucher-icon {
    position: static !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #658674 !important;
    font-size: 18px !important;
    box-shadow: none !important;
    pointer-events: none;
}

.v-cart-summary-card .promo-code input.form-control {
    width: 100% !important;
    height: 54px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    background: transparent !important;
    color: #24342e !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

.v-cart-summary-card .promo-code input.form-control::placeholder {
    color: #7d8883 !important;
    opacity: 1;
}

.v-cart-summary-card .promo-code .input-group-append {
    display: block !important;
    height: 54px !important;
}

.v-cart-summary-card .promo-code button[type="submit"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 54px !important;
    min-width: 100px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #dcebe2 !important;
    color: #365d4a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.v-cart-summary-card .promo-code button[type="submit"]:hover {
    background: #cedfd5 !important;
}

.v-cart-summary-card .promo-name {
    margin: 0 0 10px !important;
    padding: 10px 12px !important;
    border-radius: 11px;
    background: #eef6f1;
}

.v-cart-summary-card .promo-name .cart-summary-line {
    margin: 0 !important;
}

.v-cart-summary-card .promo-code .js-error {
    margin-bottom: 10px !important;
    border-radius: 10px !important;
}


/* ==========================================================
   MOBILE : TITRE EN PLEINE LARGEUR + QUANTITÉ PLUS BASSE
   ========================================================== */

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

    /*
     * Deux rangées :
     *
     * [ PHOTO ] [ NOM + 5ml + PRIX sur toute la largeur ]
     * [ PHOTO ] [ espace ]                  [ quantité ]
     *
     * Ainsi le pavé quantité ne vole plus la largeur
     * disponible au nom du produit.
     */

    .v-cart-product {
        grid-template-columns: 78px minmax(0, 1fr) 128px !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 6px !important;
        align-items: center !important;
        min-height: 126px;
        padding: 18px 0 !important;
    }

    .v-cart-product-image {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        align-self: center !important;
    }

    .v-cart-product-info {
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    /*
     * Le titre bénéficie maintenant de toute la largeur
     * comprise entre l'image et le bord droit.
     */

    .v-cart-product-name {
        width: 100% !important;
        max-width: none !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 18px !important;
        line-height: 1.18 !important;
    }

    .v-cart-product-attribute {
        margin-top: 3px !important;
        font-size: 14px !important;
    }

    .v-cart-product-price {
        margin-top: 5px !important;
        font-size: 19px !important;
    }

    /*
     * Quantité descendue sur la seconde rangée,
     * alignée à droite.
     */

    .v-cart-qty-zone {
        grid-column: 3 !important;
        grid-row: 2 !important;
        justify-content: flex-end !important;
        align-self: start !important;
        margin-top: 2px !important;
    }

    .v-cart-qty-control {
        grid-template-columns: 37px 44px 41px !important;
        width: 128px !important;
        padding: 3px !important;
        border-radius: 13px !important;
    }

    .v-cart-qty-action,
    .v-cart-qty-value {
        height: 40px !important;
    }

    .v-cart-qty-action {
        width: 37px !important;
    }

    .v-cart-qty-plus {
        width: 41px !important;
        font-size: 28px !important;
    }

    .v-cart-qty-value {
        width: 44px !important;
        font-size: 16px !important;
    }

    /*
     * Code promo légèrement plus grand sur téléphone.
     */

    .v-cart-summary-card .promo-code .input-group {
        min-height: 58px;
        grid-template-columns: 44px minmax(0, 1fr) 96px;
    }

    .v-cart-summary-card .promo-code .voucher-icon,
    .v-cart-summary-card .promo-code input.form-control,
    .v-cart-summary-card .promo-code .input-group-append,
    .v-cart-summary-card .promo-code button[type="submit"] {
        height: 58px !important;
    }

    .v-cart-summary-card .promo-code input.form-control {
        font-size: 16px !important;
    }

    .v-cart-summary-card .promo-code button[type="submit"] {
        min-width: 96px;
        padding: 0 12px !important;
        font-size: 15px !important;
    }

}


/* ==========================================================
   PETITS MOBILES
   ========================================================== */

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

    .v-cart-product {
        grid-template-columns: 68px minmax(0, 1fr) 116px !important;
        column-gap: 9px !important;
    }

    .v-cart-product-name {
        font-size: 16px !important;
    }

    .v-cart-qty-control {
        grid-template-columns: 33px 40px 37px !important;
        width: 116px !important;
    }

    .v-cart-qty-action {
        width: 33px !important;
    }

    .v-cart-qty-plus {
        width: 37px !important;
        font-size: 25px !important;
    }

    .v-cart-qty-value {
        width: 40px !important;
    }

}


/* ==========================================================
   VITALIANE - AJUSTEMENTS V6
   ==========================================================
 *
 * - titre produit limité à 2 lignes maximum
 * - aucun débordement horizontal
 * - quantité un peu plus basse
 * - confort mobile conservé
 * ========================================================== */

.v-cart-product {
    overflow: hidden;
}

.v-cart-product-info {
    min-width: 0 !important;
    max-width: 100% !important;
}

.v-cart-product-name {
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

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

    /*
     * Le nom peut prendre jusqu'à 2 lignes, jamais davantage.
     * Il reste strictement dans la largeur du téléphone.
     */
    .v-cart-product-name {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 18px !important;
        line-height: 1.18 !important;
    }

    /*
     * Le bloc quantité est légèrement descendu pour laisser
     * respirer le titre et les informations produit.
     */
    .v-cart-qty-zone {
        margin-top: 8px !important;
    }

}


/* ==========================================================
   VITALIANE - AJUSTEMENTS V7
   ==========================================================
 *
 * QUANTITÉS :
 * - les taps sont libres pendant 550 ms
 * - une seule requête part après le dernier tap
 * - pendant la requête seulement, le contrôle se verrouille
 *
 * TITRES :
 * - maximum 2 lignes
 * - aucun débordement à droite
 * - largeur strictement contenue dans l'écran
 * ========================================================== */


/* ----------------------------------------------------------
   ÉTAT DE SYNCHRONISATION AJAX
   ---------------------------------------------------------- */

.v-cart-product.v-cart-qty-syncing .v-cart-qty-control {
    opacity: .72;
}

.v-cart-product.v-cart-qty-syncing .v-cart-qty-action {
    pointer-events: none;
}


/* ----------------------------------------------------------
   AUCUN DÉBORDEMENT HORIZONTAL
   ---------------------------------------------------------- */

.v-cart-page,
.v-cart-page .v-checkout-container,
.v-cart-products-card,
.v-cart-product,
.v-cart-product-info {
    max-width: 100% !important;
}

.v-cart-page {
    overflow-x: hidden !important;
}

.v-cart-product-info {
    min-width: 0 !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

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

    /*
     * Structure :
     *
     * [ PHOTO ] [ NOM / 5ml / PRIX................ ]
     * [ PHOTO ] [                       quantité   ]
     *
     * Le titre utilise la largeur restante de l'écran,
     * sans jamais dépasser.
     */

    .v-cart-product {
        grid-template-columns: 78px minmax(0, 1fr) 126px !important;
        grid-template-rows: auto auto !important;
        column-gap: 11px !important;
        row-gap: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .v-cart-product-image {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
    }

    .v-cart-product-info {
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-right: 6px !important;
        overflow: hidden !important;
    }

    /*
     * Deux lignes maximum.
     * Pas de texte qui part sous / derrière le compteur.
     */

    .v-cart-product-name {
        display: -webkit-box !important;
        width: 100% !important;
        max-width: 100% !important;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;

        overflow: hidden !important;
        white-space: normal !important;
        text-overflow: clip !important;

        overflow-wrap: normal !important;
        word-break: normal !important;

        font-size: 18px !important;
        line-height: 1.16 !important;
    }

    /*
     * Quantité sur la seconde rangée uniquement.
     * Elle ne réduit donc pas la largeur du titre.
     */

    .v-cart-qty-zone {
        grid-column: 3 !important;
        grid-row: 2 !important;
        align-self: start !important;
        justify-content: flex-end !important;
        margin-top: 5px !important;
    }

}


/* ==========================================================
   PETITS MOBILES
   ========================================================== */

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

    .v-cart-product {
        grid-template-columns: 68px minmax(0, 1fr) 114px !important;
        column-gap: 8px !important;
    }

    .v-cart-product-info {
        padding-right: 3px !important;
    }

    .v-cart-product-name {
        font-size: 16px !important;
    }

}


/* ==========================================================
   VITALIANE - PANIER V9
   RÉCAPITULATIF / CODE PROMO / CTA / RÉASSURANCE
   ========================================================== */


/* ----------------------------------------------------------
   AJUSTEMENT QUANTITÉ VALIDÉ
   ---------------------------------------------------------- */

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

    .v-cart-qty-zone {
        margin-top: -50px !important;
    }

}


/* ----------------------------------------------------------
   BANDEAU OFFRE
   ---------------------------------------------------------- */

.v-cart-offer-info {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 16px;
    padding: 15px;

    border-radius: 16px;
    background: #eef6f1;
}

.v-cart-offer-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #dfeee5;
    color: #28664d;

    font-size: 23px;
}

.v-cart-offer-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.v-cart-offer-copy strong {
    color: #173c2e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.v-cart-offer-copy span {
    color: #65716c;
    font-size: 14px;
    line-height: 1.35;
}


/* ----------------------------------------------------------
   RÉCAPITULATIF
   ---------------------------------------------------------- */

.v-cart-summary-title {
    margin: 0 0 12px !important;

    color: #17362b !important;

    font-size: 22px !important;
    font-weight: 700 !important;
}

.v-cart-summary-card {
    overflow: hidden;

    border: 1px solid #e0e8e4 !important;
    border-radius: 18px !important;

    background: #ffffff !important;

    box-shadow:
        0 8px 26px rgba(28, 62, 48, .06) !important;
}

.v-cart-summary-card .cart-detailed-totals {
    padding: 0 !important;
}

.v-cart-summary-card .cart-detailed-subtotals {
    padding: 19px 20px 12px !important;
}

.v-cart-summary-card .cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;

    margin-bottom: 10px !important;

    color: #46534e;
    font-size: 17px !important;
    line-height: 1.3;
}

.v-cart-summary-card .cart-summary-line .label {
    min-width: 0;
}

.v-cart-summary-card .cart-summary-line .value {
    flex: 0 0 auto;

    color: #243b31;

    font-size: 17px !important;
    font-weight: 700 !important;
}


/* Remises */

.v-cart-summary-card #cart-subtotal-discount .value {
    color: #267052 !important;
}


/* Livraison */

.v-cart-summary-card #cart-subtotal-shipping .value {
    color: #267052 !important;
}


/* Séparateurs */

.v-cart-summary-card hr {
    margin: 0 20px !important;

    border: 0 !important;
    border-top: 1px solid #e7ece9 !important;
}


/* ----------------------------------------------------------
   TOTAL TTC
   ---------------------------------------------------------- */

.v-cart-summary-card .cart-summary-totals {
    padding: 16px 20px !important;
}

.v-cart-summary-card .cart-total {
    margin: 0 !important;
}

.v-cart-summary-card .cart-total .label {
    color: #17362b !important;

    font-size: 22px !important;
    font-weight: 800 !important;
}

.v-cart-summary-card .cart-total .value {
    color: #1e6a4d !important;

    font-size: 28px !important;
    font-weight: 800 !important;
}

.v-cart-summary-card .cart-summary-line.cart-total {
    margin-bottom: 0 !important;
}


/* Taxes */

.v-cart-summary-card .cart-summary-line.cart-total + .cart-summary-line,
.v-cart-summary-card .cart-summary-totals .tax {
    color: #79837f !important;
    font-size: 13px !important;
}


/* ----------------------------------------------------------
   CODE PROMO
   ---------------------------------------------------------- */

.v-cart-promo {
    padding: 16px 20px 18px !important;
}

.v-cart-promo-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 9px;

    color: #243b31;

    font-size: 15px;
    font-weight: 700;
}

.v-cart-promo-title i {
    color: #287154;
    font-size: 17px;
}

.v-cart-promo .promo-code {
    margin: 0 !important;
}

.v-cart-promo .promo-code .alert,
.v-cart-promo .promo-code .js-error {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/*
 * L'erreur n'est affichée que si PrestaShop ajoute réellement
 * un texte dans .js-error-text.
 */
.v-cart-promo .promo-code .js-error:has(.js-error-text:not(:empty)),
.v-cart-promo .promo-code .alert:has(.js-error-text:not(:empty)) {
    display: block !important;

    margin: 0 0 10px !important;
    padding: 10px 12px !important;

    border: 1px solid #efb7b7 !important;
    border-radius: 10px !important;

    background: #fff1f1 !important;
    color: #a54444 !important;
}

.v-cart-promo-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 106px !important;

    width: 100% !important;

    overflow: hidden;

    border: 1px solid #dce5e0 !important;
    border-radius: 13px !important;

    background: #f8faf9 !important;
}

.v-cart-promo-form input.form-control {
    width: 100% !important;
    height: 52px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    border: 0 !important;

    background: transparent !important;
    color: #263a32 !important;

    font-size: 16px !important;

    box-shadow: none !important;
}

.v-cart-promo-form input.form-control::placeholder {
    color: #8a9490 !important;
    opacity: 1;
}

.v-cart-promo-form .input-group-append {
    height: 52px !important;
}

.v-cart-promo-form button {
    width: 106px !important;
    height: 52px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border: 0 !important;
    border-left: 1px solid #dce5e0 !important;
    border-radius: 0 !important;

    background: #e1efe7 !important;
    color: #285f49 !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: none !important;

    box-shadow: none !important;
}

.v-cart-promo-form button:hover {
    background: #d6e9de !important;
}

.v-cart-promo .promo-name {
    margin: 0 0 12px !important;
    padding: 12px 14px !important;

    border-radius: 12px;

    background: #eff7f2;
}

.v-cart-promo .promo-name .cart-summary-line {
    margin: 0 !important;
}

.v-cart-promo-remove {
    margin-left: 7px;
    color: #4e7764 !important;
}

.v-cart-available-promos {
    margin-top: 12px;
}

.v-cart-available-promos .promo-highlighted {
    margin: 0 0 7px;

    color: #68756f;

    font-size: 13px;
    font-weight: 600;
}


/* ----------------------------------------------------------
   BOUTON COMMANDER
   ---------------------------------------------------------- */

.v-cart-summary-card .cart-detailed-actions {
    padding: 0 20px 20px !important;
}

.v-cart-order-button {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;

    width: 100% !important;
    min-height: 60px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    border: 0 !important;
    border-radius: 30px !important;

    background: #246d50 !important;
    color: #ffffff !important;

    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: none !important;

    box-shadow:
        0 9px 22px rgba(36, 109, 80, .18) !important;
}

.v-cart-order-button:hover {
    background: #1e6046 !important;
    color: #ffffff !important;
}

.v-cart-order-button span {
    text-align: center;
}

.v-cart-order-button .fa-lock {
    justify-self: start;
}

.v-cart-order-button .fa-arrow-right {
    justify-self: end;
}


/* ----------------------------------------------------------
   RÉASSURANCE
   ---------------------------------------------------------- */

.v-cart-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;

    margin-top: 12px;
}

.v-cart-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;

    padding: 11px 10px;

    border-radius: 13px;

    background: #f3f8f5;
}

.v-cart-trust-item > i {
    flex: 0 0 auto;

    width: 25px;

    color: #287154;

    font-size: 21px;
    text-align: center;
}

.v-cart-trust-item div {
    min-width: 0;
}

.v-cart-trust-item strong,
.v-cart-trust-item span {
    display: block;
}

.v-cart-trust-item strong {
    color: #244136;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.v-cart-trust-item span {
    margin-top: 2px;

    color: #75807b;

    font-size: 10px;
    line-height: 1.25;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

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

    .v-cart-offer-info {
        margin: 8px 0 17px;
        padding: 14px;
    }

    .v-cart-offer-copy strong {
        font-size: 18px;
    }

    .v-cart-offer-copy span {
        font-size: 14px;
    }

    .v-cart-summary-title {
        font-size: 23px !important;
    }

    .v-cart-summary-card .cart-detailed-subtotals {
        padding: 18px 17px 11px !important;
    }

    .v-cart-summary-card .cart-summary-line {
        font-size: 17px !important;
    }

    .v-cart-summary-card .cart-summary-line .value {
        font-size: 17px !important;
    }

    .v-cart-summary-card hr {
        margin: 0 17px !important;
    }

    .v-cart-summary-card .cart-summary-totals {
        padding: 15px 17px !important;
    }

    .v-cart-summary-card .cart-total .label {
        font-size: 23px !important;
    }

    .v-cart-summary-card .cart-total .value {
        font-size: 30px !important;
    }

    .v-cart-promo {
        padding: 16px 17px 18px !important;
    }

    .v-cart-summary-card .cart-detailed-actions {
        padding: 0 17px 18px !important;
    }

    .v-cart-order-button {
        min-height: 62px !important;

        border-radius: 31px !important;

        font-size: 21px !important;
    }

    .v-cart-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;

        margin-top: 10px;
    }

    .v-cart-trust-item {
        flex-direction: column;
        justify-content: flex-start;

        gap: 5px;

        padding: 10px 5px;

        text-align: center;
    }

    .v-cart-trust-item > i {
        width: auto;

        font-size: 22px;
    }

    .v-cart-trust-item strong {
        font-size: 11px;
    }

    .v-cart-trust-item span {
        font-size: 9px;
    }

}


/* ----------------------------------------------------------
   PETITS MOBILES
   ---------------------------------------------------------- */

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

    .v-cart-promo-form {
        grid-template-columns:
            minmax(0, 1fr)
            92px !important;
    }

    .v-cart-promo-form button {
        width: 92px !important;

        padding: 0 8px !important;

        font-size: 14px !important;
    }

}


/* ==========================================================
   VITALIANE - PANIER V10
   ==========================================================
 *
 * Corrections :
 * - panier beaucoup plus large sur PC
 * - suppression visuelle du bandeau offre
 * - lignes du récapitulatif parfaitement alignées
 * - plus de rectangle rouge vide sous le code promo
 * - codes/remises appliqués propres sur mobile
 * - flèche Commander mieux espacée
 * - lignes produit plus compactes autour des séparateurs
 * ========================================================== */


/* ==========================================================
   DESKTOP : UTILISER DAVANTAGE LA LARGEUR DE L'ÉCRAN
   ========================================================== */

@media screen and (min-width: 992px) {

    .v-checkout-container {
        max-width: 1520px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .v-checkout-layout {
        grid-template-columns:
            minmax(0, 1fr)
            440px !important;

        gap: 32px !important;
    }

    .v-cart-products-card {
        padding-left: 26px !important;
        padding-right: 26px !important;
    }

}


/* ==========================================================
   PRODUITS : MOINS D'ESPACE AUTOUR DES SÉPARATEURS
   ========================================================== */

.v-cart-product {
    min-height: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.v-cart-product + .v-cart-product {
    margin-top: 0 !important;
}


/* ==========================================================
   RÉCAPITULATIF : ALIGNEMENT STRICT DES 2 COLONNES
   ========================================================== */

.v-cart-summary-card .cart-detailed-subtotals,
.v-cart-summary-card .cart-summary-totals {
    width: 100% !important;
}

.v-cart-summary-card .cart-summary-line {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        auto !important;

    align-items: baseline !important;

    width: 100% !important;

    column-gap: 18px !important;
}

.v-cart-summary-card .cart-summary-line > .label {
    min-width: 0 !important;

    text-align: left !important;
}

.v-cart-summary-card .cart-summary-line > .value {
    min-width: 92px !important;

    margin-left: 0 !important;

    text-align: right !important;
    white-space: nowrap !important;
}

.v-cart-summary-card .cart-total > .value {
    min-width: 120px !important;
}


/* Les éventuels détails de livraison restent sous la ligne */

.v-cart-summary-card
.cart-summary-line
> div:not(.pull-right) {
    grid-column: 1 / -1 !important;
}


/* ==========================================================
   CODE PROMO : SUPPRESSION DU RECTANGLE ROUGE VIDE
   ========================================================== */

.v-cart-promo-error {
    display: none !important;

    margin: 0 0 10px !important;
}


/* Il ne réapparaît que si PrestaShop ajoute réellement
   un texte d'erreur dans .js-error-text. */

.v-cart-promo-error.is-visible {
    display: block !important;

    padding: 10px 12px !important;

    border-radius: 10px !important;

    font-size: 14px !important;
}


/* ==========================================================
   REMISES / CODES DÉJÀ APPLIQUÉS
   ========================================================== */

.v-cart-promo .v-cart-applied-promos {
    margin: 0 0 14px !important;
    padding: 0 !important;

    list-style: none !important;

    background: transparent !important;
}

.v-cart-applied-promo {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 11px 13px;

    border-radius: 12px;

    background: #eef6f1;
}

.v-cart-applied-promo + .v-cart-applied-promo {
    margin-top: 7px;
}

.v-cart-applied-promo-name {
    min-width: 0;

    color: #466156;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.v-cart-applied-promo-right {
    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;
}

.v-cart-applied-promo-value {
    color: #286a50;

    font-size: 15px;
    font-weight: 700;
}

.v-cart-promo-remove {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin: 0 !important;

    border-radius: 8px;

    background: #dfece5;

    color: #3e755e !important;

    text-decoration: none !important;
}


/* ==========================================================
   BOUTON COMMANDER
   ========================================================== */

.v-cart-order-button {
    grid-template-columns:
        34px
        minmax(0, 1fr)
        42px !important;

    padding-left: 18px !important;
    padding-right: 18px !important;
}

.v-cart-order-button .fa-lock {
    justify-self: center !important;
}

.v-cart-order-button .v-cart-order-arrow {
    justify-self: center !important;

    margin-left: 4px;

    font-size: 19px !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

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

    /*
     * Le réglage de quantité que tu as validé est conservé.
     * Le margin-bottom négatif retire l'espace que la grille
     * continuait à réserver sous le contrôle.
     */

    .v-cart-qty-zone {
        margin-top: -50px !important;
        margin-bottom: -38px !important;
    }


    /*
     * Moins de blanc avant/après le trait de séparation.
     */

    .v-cart-product {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }


    /*
     * Récapitulatif mobile : labels et valeurs restent
     * parfaitement en face.
     */

    .v-cart-summary-card .cart-summary-line {
        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        column-gap: 12px !important;
    }

    .v-cart-summary-card
    .cart-summary-line
    > .value {
        min-width: 88px !important;
    }


    /*
     * Code/remise appliqué :
     * jamais de chevauchement sur petit écran.
     */

    .v-cart-applied-promo {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        padding: 10px 11px;
    }

    .v-cart-applied-promo-name {
        font-size: 13px;
    }

    .v-cart-applied-promo-value {
        font-size: 14px;
    }


    /*
     * Bouton Commander :
     * flèche détachée du texte et du bord droit.
     */

    .v-cart-order-button {
        grid-template-columns:
            32px
            minmax(0, 1fr)
            40px !important;

        padding-left: 16px !important;
        padding-right: 16px !important;
    }

}


/* ==========================================================
   TRÈS PETITS MOBILES
   ========================================================== */

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

    .v-cart-applied-promo {
        gap: 8px;
    }

    .v-cart-applied-promo-name {
        font-size: 12px;
    }

    .v-cart-applied-promo-value {
        font-size: 13px;
    }

}


/* ==========================================================
   VITALIANE - PANIER V11
   ==========================================================
 *
 * - aucun clavier numérique à l'ouverture du panier
 * - moins d'espace avant / après Total TTC
 * - récapitulatif sans cadre
 * - récapitulatif pleine largeur sur mobile
 * - bouton Commander avec une seule icône panier
 * - réassurance "Préparé en France / Avec soin"
 * ========================================================== */


/* ==========================================================
   INPUT QUANTITÉ NATIF : JAMAIS FOCUSABLE
   ========================================================== */

.v-cart-native-qty,
.v-cart-native-qty input,
.js-cart-line-product-quantity {
    pointer-events: none !important;
}

.v-cart-native-qty input,
.js-cart-line-product-quantity {
    caret-color: transparent !important;
}


/* ==========================================================
   RÉCAPITULATIF : PLUS DE CADRE
   ========================================================== */

.v-cart-summary-card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}


/* ==========================================================
   ESPACEMENTS RÉCAPITULATIF
   ========================================================== */

/* Moins de blanc après Livraison */

.v-cart-summary-card .cart-detailed-subtotals {
    padding-bottom: 4px !important;
}


/* Trait plus proche des lignes */

.v-cart-summary-card hr {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}


/* Total TTC plus proche de Livraison */

.v-cart-summary-card .cart-summary-totals {
    padding-top: 8px !important;
    padding-bottom: 7px !important;
}


/* Moins de blanc sous Total TTC */

.v-cart-promo {
    padding-top: 8px !important;
}


/* ==========================================================
   BOUTON COMMANDER : PANIER + TEXTE
   ========================================================== */

.v-cart-order-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 11px !important;

    padding-left: 18px !important;
    padding-right: 18px !important;
}

.v-cart-order-button > i {
    margin: 0 !important;
    font-size: 20px !important;
}

.v-cart-order-button > span {
    flex: 0 0 auto !important;
    text-align: center !important;
}


/* ==========================================================
   MOBILE : RÉCAPITULATIF PLEINE LARGEUR
   ========================================================== */

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

    /*
     * Le conteneur principal garde ses marges pour les
     * produits, mais le récapitulatif utilise toute la
     * largeur visuelle du téléphone.
     */

    .v-checkout-summary {
        width: calc(100% + 32px) !important;
        max-width: none !important;

        margin-left: -16px !important;
        margin-right: -16px !important;

        padding-left: 16px !important;
        padding-right: 16px !important;
    }


    /*
     * Pas de carte encadrée autour du récapitulatif.
     */

    .v-cart-summary-card {
        width: 100% !important;

        margin: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        box-shadow: none !important;
    }


    /*
     * Encore plus compact verticalement sur téléphone.
     */

    .v-cart-summary-card .cart-detailed-subtotals {
        padding:
            12px
            0
            3px
            0 !important;
    }

    .v-cart-summary-card hr {
        margin:
            2px
            0
            2px
            0 !important;
    }

    .v-cart-summary-card .cart-summary-totals {
        padding:
            7px
            0
            5px
            0 !important;
    }

    .v-cart-promo {
        padding:
            7px
            0
            12px
            0 !important;
    }

    .v-cart-summary-card .cart-detailed-actions {
        padding:
            0
            0
            14px
            0 !important;
    }


    /*
     * Réassurance également sur toute la largeur disponible.
     */

    .v-cart-trust {
        width: 100% !important;
    }

}


/* ==========================================================
   VITALIANE - PANIER STABLE FINAL - ANTI CLAVIER
   ========================================================== */

body#cart .v-cart-native-qty,
body#cart .v-cart-native-qty input,
body#cart .js-cart-line-product-quantity {
    pointer-events: none !important;
}

body#cart .js-cart-line-product-quantity {
    caret-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}


/* ==========================================================
   VITALIANE - CORRECTIF FINAL CODE PROMO
   ==========================================================
   Empêche l'affichage du grand bloc rouge vide.
   Un vrai message d'erreur reste visible.
   ========================================================== */

body#cart .v-cart-promo .promo-code .js-error,
body#cart .v-cart-promo .promo-code .alert-danger.js-error {
    display: none !important;

    margin: 0 !important;
    padding: 0 !important;

    min-height: 0 !important;

    border: 0 !important;
    background: transparent !important;
}


/*
 * Cas PrestaShop standard :
 * on ne réaffiche le bloc que si .js-error-text contient
 * réellement un message.
 */

body#cart .v-cart-promo .promo-code .js-error:has(.js-error-text:not(:empty)),
body#cart .v-cart-promo .promo-code .alert-danger.js-error:has(.js-error-text:not(:empty)) {
    display: block !important;

    margin: 0 0 10px !important;
    padding: 10px 12px !important;

    min-height: auto !important;

    border: 1px solid #efb7b7 !important;
    border-radius: 10px !important;

    background: #fff1f1 !important;
    color: #a54444 !important;
}


/*
 * Le texte d'erreur lui-même reste lisible.
 */

body#cart .v-cart-promo .promo-code .js-error-text {
    margin: 0 !important;

    color: #a54444 !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
}
