/* ==========================================================================
   Page panier /panier - template dédié (brico_cart), theme cart.tpl intact.
   Palette reprise du tunnel de commande (brico_checkout_custom) :
   teal #0d675d (primaire), orange #ef9d51 (accent/prix), gris #404040/#626568
   ========================================================================== */

#cart .bbs_breadcrumbs {
    display: none;
}

.bcp2 {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 0 60px;
    color: #404040;
}

.bcp2_title {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    padding: 10px;
    margin: 0;
    background: #0d675d;
}

/* ---------- Grille 2 colonnes ---------- */

.bcp2_grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: start;
    gap: 24px;
    margin-top: 15px;
}

.bcp2_col_left {
    min-width: 0;
}

.bcp2_col_right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bcp2_block {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 992px) {
    .bcp2_grid {
        grid-template-columns: 1fr;
        padding-top: 40px;
    }
}

/* ---------- Listing produits (réutilise cart-detailed-product-line.tpl) ---------- */

.bpc2_block_products {
    border-radius: 8px;
    border: 1px solid #0d675d;
    overflow: hidden;
}
.bcp2_col_left .cart-overview {
    background: #fff;
    border-radius: 8px;
    padding: 4px 10px 10px 10px;
}

.bcp2_col_left .cart_2020_thead {
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #626568;
    border-bottom: 1px solid #f1f1f1;
}

.bcp2_col_left .cart_2020_row {
    padding: 14px 0;
    border-bottom: 1px dashed #f1f1f1;
    align-items: center;
}

.bcp2_col_left .cart_2020_row:last-child {
    border-bottom: none;
}

.bcp2_col_left .cpl_image img {
    border: 1px solid #f1f1f1;
    border-radius: 6px;
}

.bcp2_col_left .cpl_designation .label {
    font-size: 14px;
    font-weight: 500;
    color: #404040;
}

.bcp2_col_left .cpl_designation .label:hover {
    color: #0d675d;
}

.bcp2_col_left .cpl_designation .product_reference,
.bcp2_col_left .cpl_designation i {
    font-size: 12px;
    font-style: normal;
    color: #949494;
}

.bcp2_col_left .cpl_price .value {
    font-size: 14px;
    font-weight: 600;
    color: #404040;
}

.bcp2_col_left .cpl_price .cpl_price_crossed {
    display: block;
    font-size: 12px;
    color: #949494;
    text-decoration: line-through;
}

.bcp2_col_left .cpl_price .unit-price-cart {
    font-size: 11px;
    color: #949494;
}

.bcp2_col_left .cpl_total {
    font-size: 15px;
    font-weight: 700;
    color: #ef9d51;
}

.bcp2_col_left .qty input.js-cart-line-product-quantity {
    width: 36px;
    height: 36px;
    text-align: center;
    color: #0d675d;
    font-weight: 600;
    background: none;
    padding: 0;
    border-radius: 6px 0 0 6px !important;
}
.bcp2_col_left .bootstrap-touchspin .input-group-btn-vertical {
    left: 3px;
    width: 20px;
}
.bcp2_col_left .bootstrap-touchspin .input-group-btn-vertical>.btn {
    padding: 0 !important;
    margin-left: 0;
    border: 1px solid #bebebe;
}
.bcp2_col_left .bootstrap-touchspin-up {
    height: 20px;
    border-radius: 0 6px 0 0 !important;
}
.bcp2_col_left .bootstrap-touchspin-down {
    height: 18px;
    border-radius: 0 0 6px 0 !important;
}
.bcp2_col_left .bootstrap-touchspin .input-group-btn-vertical i {
    position: relative;
    top: -1px;
    left: auto;
}

.bcp2_col_left .qty input.js-cart-line-product-quantity:disabled {
    color: #949494;
    background: #f8f8f8;
}

.bcp2_col_left .cpl_delete a.remove-from-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    color: #949494;
    border-radius: 50%;
    transition: .2s ease;
}

.bcp2_col_left .cpl_delete a.remove-from-cart:hover {
    color: #e74c3c;
    background: #fdf0ef;
}

.bcp2_col_left .cart_atelier,
.bcp2_col_left .cart_atelier_texts {
    display: none;
}

.bcp2_col_left .no-items {
    display: block;
    padding: 30px 20px;
    text-align: center;
    font-size: 15px;
    color: #626568;
}

/* ---------- Bloc totaux + code promo + CTA (réutilise les partials existants) ---------- */

.bcp2_block_totals {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #0d675d;
}

.bcp2_block_totals .cart-detailed-totals,
.bcp2_block_totals .card-block {
    box-sizing: border-box;
    width: 100%;
    background: none;
}

.bcp2_block_totals .card-block {
    padding: 6px 8px;
}

.bcp2_block_totals .card-block:not(:first-child) {
    border-top: 1px solid #f1f1f1;
}

/* Grille plutôt que flex : garantit une colonne "montant" strictement
   alignée à droite quelle que soit la longueur du libellé, indépendamment
   des règles héritées du thème (float/clear sur .label/.value). */
.bcp2_block_totals .cart-summary-line {
    box-sizing: border-box;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    justify-items: start;
    column-gap: 12px;
    padding: 4px 0;
    font-size: 15px;
    color: #404040;
}

.bcp2_block_totals #cart-subtotal-discount span {
    color: #ef9d51;
}

.bcp2_block_totals .cart-summary-line span {
    font-size: 15px;
}

.bcp2_block_totals .cart-summary-line .label,
.bcp2_block_totals .cart-summary-line .value {
    float: none;
}

.bcp2_block_totals .cart-summary-line .value {
    text-align: right;
    white-space: nowrap;
}

.bcp2_block_totals .cart-summary-line.cart-total {
    padding-top: 10px;
    font-size: 18px;
    font-weight: 700;
}

.bcp2_block_totals .cart-summary-line.cart-total .value {
    color: #0d675d;
}

/* NB: quand le module brico_checkout_custom est actif (cas quasi permanent
   sur ce site), cart-voucher.tpl délègue entièrement à SON propre template
   (module:brico_checkout_custom/.../cart-voucher.tpl), dont les classes
   diffèrent de celles du template de repli ci-contre (pas de ".vouchers",
   ".add_voucher"/"add_voucher_form" combinées sur le MÊME élément que
   ".promo-code"). Toutes les règles ci-dessous ciblent donc directement ces
   classes réelles, sans ancêtre ".vouchers" qui ne matche jamais en pratique.
*/
.bcp2_block_totals .block-promo {
    margin-top: 18px;
}

#cart .bcp2_block_totals .add_voucher {
    font-size: 14px;
    color: #0d675d;
    padding: 0;
    margin-block-start: 0;
    margin-block-end: 14px;
    cursor: pointer;
}

#cart .bcp2_block_totals .voucher_line {
    color: #404040 !important;
}

/* La CSS qui révèle #promo-code (transition max-height) a été déplacée dans
   brico_cart.css (chargé sur TOUTES les pages) : ce fichier-ci
   (brico_cart_page.css) n'est chargé que sur la page panier, alors que le
   bloc code promo existe aussi dans le tunnel de commande (même template
   brico_checkout_custom). Elle vivait ici scopée à ".bcp2_block_totals" (qui
   n'existe que sur cette page) : sur le checkout, le JS interceptait bien le
   clic (chargé partout) mais aucune CSS ne rendait le bloc visible ensuite,
   ni fallback natif (bloqué par le JS) -> clic sans aucun effet. Voir
   brico_cart.css et le JS correspondant dans brico_cart.js. */

/* PrestaShop pose id="cart" sur le <body> de cette page (nom du controller),
   et redesign25.css contient encore des règles héritées de l'ANCIEN design
   du panier scopées sur #cart pour ces mêmes classes (add_voucher_form,
   add_voucher_form_input, add_voucher_form_btn) : marge négative (-6px en
   haut), hauteur 30px, border:none, width:50%... Un sélecteur #cart bat
   n'importe quel nombre de classes en spécificité, donc ces règles écrasaient
   silencieusement tout ce qui précède ici (bouton tronqué en haut à cause de
   la marge négative + overflow:hidden du parent, bordure d'input invisible à
   cause de border:none). On préfixe donc nous aussi par #cart pour gagner. */
#cart .bcp2_block_totals .block-promo .promo-code {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: none;
}

#cart .bcp2_block_totals .block-promo .promo-code .alert {
    display: none;
}

#cart .bcp2_block_totals .block-promo .add_voucher_form form {
    width: 100%;
}

#cart .bcp2_block_totals .block-promo .add_voucher_form_input {
    width: calc(100% - 145px);
    min-width: 0;
    height: 36px;
    margin-right: 0;
    border: 1px solid #bebebe;
    border-radius: 6px;
    padding-left: 8px;
    margin-right: 15px;
    color: #0d675d;
    background: none;
    box-sizing: border-box;
}

#cart .bcp2_block_totals .block-promo .add_voucher_form_input:focus {
    outline: none;
    border-color: #0d675d;
}

/* iOS Safari zoome automatiquement toute la page au focus d'un <input>
   dont le font-size calculé est < 16px (absent sur Android). Le champ
   code promo hérite ici du font-size 13px du body : on force 16px sur
   mobile pour éviter le zoom intempestif. */
@media (max-width: 768px) {
    #cart .bcp2_block_totals .block-promo .promo-input {
        font-size: 16px;
    }
}

#cart .bcp2_block_totals .block-promo .add_voucher_form_btn {
    width: 120px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    background: #0d675d;
    color: #fff;
    border: none;
    border-radius: 6px;
}

.bcp2_block_totals .promo-name .label {
    display: inline-block;
    width: 80%;
    text-align: left;
    font-size: 13px;
    color: #0d675d;
}

.bcp2_block_totals .exclusive_offers {
    font-size: 13px;
    color: #0d675d;
    margin: 12px 0 4px;
}

.bcp2_block_totals .promo-discounts .code {
    color: #ef9d51;
    font-weight: 600;
}

.bcp2_block_totals .cart-detailed-actions .btn.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    /*background: #0d675d !important;*/
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    transition: .3s ease;
}
.bcp2_block_totals .cart-detailed-actions .btn.btn-primary.fixed_for_mobile {
    position: fixed;
    z-index: 99;
    top: 84px;
    left: 0;
    height: 44px;
    padding: 10px 0 6px 0 !important;
    border-radius: 0 !important;
    transition: transform .2s ease, opacity .2s ease;
}

/* Le thème (custom.js) ajoute .fixed sur .header2023_container au-delà de
   30px de scroll, ce qui le décale de exactement -30px (hauteur de
   .header2023_top) plutôt que de le masquer. On remonte ce bouton fixe du
   même montant, au même seuil, pour qu'il reste collé sous le header une
   fois celui-ci compacté. Voir le JS correspondant dans brico_cart.js. */
.bcp2_block_totals .cart-detailed-actions .btn.btn-primary.fixed_for_mobile.bcp2-header-fixed {
    transform: translateY(-30px);
}

/* Masqué dès que le bouton "Commander" classique (en bas du bloc totaux)
   est visible à l'écran, pour ne pas afficher les deux en même temps. Voir
   le JS correspondant (updateFixedCheckoutButton) dans brico_cart.js. */
.bcp2_block_totals .cart-detailed-actions .btn.btn-primary.fixed_for_mobile.bcp2-cta-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bcp2_block_totals .cart-detailed-actions .btn.btn-primary:hover {
    background: #fea451 !important;
}

.bcp2_block_totals .cart-detailed-actions .btn.btn-primary.disabled {
    opacity: .5;
    pointer-events: none;
}

.bcp2_block_totals ._infoContainer_v4hon_121 {
    width: calc(100% - 144px);
    height: 30px;
    justify-content: center;
}
.bcp2_block_totals .alma-payment-plans-eligibility-line {
    width: 136px;
}
.bcp2_block_totals .alma-payment-plans-payment-info p {
    font-size: 13px !important;
}

@media (min-width: 567px) {

    .bcp2_block_totals .cart-detailed-actions .btn.btn-primary.fixed_for_mobile {
        display: none;
    }

}


/* ---------- Bloc hydrogel / verre trempé (widget bcph, module brico_cart) ---------- */

.bcp2_block_hydro {
    position: relative;
    margin-top: 20px;
    border: 1px solid #858484;
    padding-top: 14px;
    overflow: visible;
    background-image: url(https://staging.brico-phone.com/89093-large_default/protection-d-ecran-en-hydrogel-pour-iphone-13-13-pro.jpg);
    background-repeat: no-repeat;
    background-size: 300px;
    background-position: 262px 10px;
}

.bcp2_block_hydro .free_mr_ban {
    position: absolute;
    top: -20px;
    left: calc((100% - 320px) / 2);
    height: 40px;
}

.bcp2_block_hydro .free_mr_price {
    position: absolute;
    top: 18px;
    right: 10px;
    z-index: 2;
    font-size: 12px;
    text-align: center;
    color: #fff;
    background: #aa0e4e;
    padding: 6px;
    border-radius: 8px;
    transform: rotate(10deg);
}
.bcp2_block_hydro .free_mr_price span {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.bcph {
    padding: 16px 20px;
}

.bcph_title {
    font-size: 15px;
    font-weight: 600;
    color: #404040;
}

.bcph_subtitle {
    font-size: 13px;
    color: #626568;
    margin-bottom: 10px;
}

.bcph_hidden {
    display: none !important;
}

.bcph_search_field {
    position: relative;
    width: 60%;
}

.bcph_input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid #bebebe;
    border-radius: 6px;
    color: #0d675d;
}

.bcph_loading {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #f1f1f1;
    border-top-color: #0d675d;
    border-radius: 50%;
    animation: bcph-spin .7s linear infinite;
}

@keyframes bcph-spin {
    to {
        transform: rotate(360deg);
    }
}

.bcph_results {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.bcph_results:empty {
    margin: 0;
}

.bcph_results li {
    border-bottom: 1px solid #f1f1f1;
}

.bcph_results li:last-child {
    border-bottom: none;
}

.bcph_result,
.bcph_no_result {
    display: block;
    width: 100%;
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
    color: #404040;
    background: none;
    border: none;
    cursor: pointer;
}

.bcph_result:hover {
    background: #f5faf9;
    color: #0d675d;
}

.bcph_no_result {
    color: #949494;
    cursor: default;
}

.bcph_glass_models {
    margin-top: 10px;
    font-size: 12px;
    color: #626568;
}

.bcph_glass_models summary {
    cursor: pointer;
    color: #0d675d;
}

.bcph_glass_models ul {
    margin: 8px 0 0;
    padding-left: 18px;
    max-height: 160px;
    overflow-y: auto;
}

.bcph_limit_reached {
    font-size: 13px;
    font-weight: 600;
    color: #ef9d51;
}

.bcph_offer_model {
    font-size: 14px;
    font-weight: 600;
    color: #404040;
    margin-bottom: 10px;
}

.bcph_offer_articles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bcph_offer_article {
    flex: 1 1 130px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #f7f7f7;
    border-radius: 8px;
    text-align: center;
}

.bcph_offer_article_label {
    display: block;
    font-size: 13px;
    color: #404040;
    margin-bottom: 4px;
}

.bcph_offer_article_price {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #ef9d51;
    margin-bottom: 10px;
}

.bcph_add_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background: #61d0c4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.bcph_add_btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.bcph_change_model {
    display: block;
    margin: 12px auto 0;
    font-size: 12px;
    color: #626568;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 567px) {

    .bcp2_block_hydro {
        background-size: 220px;
        background-position: 198px 40px;
    }
    .bcp2_block_hydro .free_mr_price {
        top: 54px;
        right: 8px;
    }

}

/* ---------- Bloc bonus (hook displayCartBonusRep) ---------- */

.bcp2_block_bonus .cart_bonus_ban {
    width: 100%;
}

/* ---------- Bandeau produits promo (mêmes vignettes que la modal panier,
   en 1 ligne x 4 au lieu de 2x2) ---------- */

.bcp2_block_promo {
    padding: 2px;
    margin: 24px -2px -2px -2px;
}

.bcp2_promo_strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bcp2_block_promo .brico-cart-modal__promo-item {
    border: 1px solid #e5e5e5;
    padding: 8px;
}

@media (max-width: 768px) {
    .bcp2_promo_strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Réassurance : pleine largeur, module brico_home (hook
   displayReassure) réutilisé tel quel ---------- */

.bcp2_block_reassure {
    grid-column: 1 / -1;
    /* Item de grille sans min-width:0 par défaut : sur mobile, la rangée
       .bh-reassure__grid (flex + overflow-x:scroll, cf. brico_home.css)
       calcule sinon sa largeur sur le contenu de ses enfants et fait
       "exploser" cette colonne au-delà du viewport, cassant toute la page
       (barre de scroll horizontale globale). */
    min-width: 0;
    overflow: hidden;
    margin-top: 15px;
}
.bcp2_block_reassure .bh-reassure {
    background: none;
}
.bcp2_block_reassure .bh-reassure .bh-reassure__grid {
    padding: 0;
}
.bcp2_block_reassure .bh-reassure .bh-reassure__item {
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .18);
}

/* Sur la home, en dessous de 768px, brico_home.css transforme
   .bh-reassure__grid en rangée défilante horizontale (carousel) et masque
   les descriptions. Sur le panier on préfère une grille statique 2x3 (6
   des 7 items, "SAV au top" masqué pour tomber juste sur 6) : on surcharge
   donc ici, en !important pour passer devant les règles du même sélecteur
   dans brico_home.css. */
@media (max-width: 768px) {
    .bcp2_block_reassure .bh-reassure__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .bcp2_block_reassure .bh-reassure__item {
        flex: none !important;
        min-width: 0 !important;
    }

    .bcp2_block_reassure .bh-reassure__item:nth-child(7) {
        display: none !important;
    }
}


/* ---------- Panier vide ---------- */

.bcp2_empty {
    padding: 60px 20px;
    text-align: center;
}

.bcp2_empty_text {
    font-size: 16px;
    color: #626568;
    margin-bottom: 20px;
}

.bcp2_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 28px;
    background: #0d675d;
    color: #fff !important;
    font-size: 15px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: .3s ease;
}

.bcp2_btn:hover {
    background: #0f887a;
}

.bcp2_empty_cart img {
    width: 50%;
    margin: -20px 0 -70px 0;
}

@media (max-width: 576px) {
    .bcp2_empty_cart img {
        width: 100%;
        margin: 0;
    }
}

/* ---------- Liste produits (cartes) ---------- */

.bcpl_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bcpl_head,
.bcpl {
    display: grid;
    /* Colonnes à largeur fixe pour "prix", "dispo.", "total" et "suppr." :
       chaque ligne produit est sa propre grille indépendante, donc si ces
       colonnes restaient en "auto" leur largeur varierait selon le texte de
       CHAQUE ligne (ex: "Dernière pièce" vs "+50"), ce qui décale d'autant
       la colonne "1fr" (désignation) et donc la position de la quantité,
       différemment sur chaque produit. Des largeurs fixes garantissent le
       même alignement vertical sur toutes les lignes. */
    grid-template-columns: 72px 1fr 56px 90px 70px 80px 20px;
    align-items: center;
    gap: 18px;
}

.bcpl {
    padding: 4px;
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
}

.bcpl.cart_product_sup {
    border-color: #ef9d51;
    background: #fff8f0;
}

.bcpl_image {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
}

.bcpl_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bcpl_main {
    min-width: 0;
}

.bcpl_name {
    font-size: 14px;
    font-weight: 600;
    color: #404040;
    line-height: 1.35;
}

.bcpl_name a {
    color: #404040;
}

.bcpl_name a:hover {
    color: #0d675d;
}

.bcpl_ref {
    font-size: 11px;
    color: #626568;
    margin-top: 4px;
}

.bcpl_qty {
    display: flex;
    align-items: center;
}

.bcpl_qty input.js-cart-line-product-quantity {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #bebebe;
    border-radius: 6px;
    font-size: 14px;
    color: #404040;
}

/* iOS Safari zoome automatiquement toute la page au focus d'un <input>
   dont le font-size calculé est < 16px (comportement absent sur Android/
   Chrome). Sur mobile on force donc 16px ici, quitte à réduire visuellement
   via un léger scale pour ne pas agrandir le champ à l'écran. */
@media (max-width: 768px) {
    .bcpl_qty input.js-cart-line-product-quantity {
        font-size: 16px;
    }
}

.bcpl_price {
    text-align: right;
    font-size: 14px;
}

.bcpl_price_value {
    color: #404040;
    font-weight: 600;
}

.bcpl_price_crossed {
    display: block;
    font-size: 12px;
    color: #626568;
    text-decoration: line-through;
}

.bcpl_unit_price {
    font-size: 11px;
    color: #626568;
}

.bcpl_stock {
    text-align: center;
    font-size: 12px;
}

.bcpl_stock_ok {
    color: #0d675d;
}

.bcpl_stock_low {
    color: #ef9d51;
}

.bcpl_stock_out {
    color: #c0392b;
}

.bcpl_total {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #404040;
}

.bcpl_delete {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcpl_delete a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #626568;
    transition: .2s ease;
}

.bcpl_delete a:hover {
    background: #fdecec;
    color: #c0392b;
}

/* Alerte délai fournisseur (hook displayCartAndCheckoutAlertPartialDelivery,
   module brico_delivery_delays) : affichée sous la ligne produit concernée
   plutôt qu'agrégée en haut de page. */
.bcpl_delivery_alert {
    margin-top: -6px;
}

.bcpl_delivery_alert .alert {
    margin: 0;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.4;
    background: #fff4e8;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    color: #8a5a1a;
    margin: 0 !important
}

.bcpl_head {
    padding: 4px 14px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #a3a3a3;
}

.bcpl_head span:first-child,
.bcpl_head span:nth-child(3) {
    text-align: center;
}

.bcpl_head span:nth-child(4),
.bcpl_head span:nth-child(6) {
    text-align: right;
}

.bcpl_head span:nth-child(5) {
    text-align: center;
}

@media (max-width: 992px) {
    .bcpl_head {
        display: none;
    }
}

@media (max-width: 992px) {
    .bcpl {
        grid-template-columns: 64px 1fr auto;
        grid-template-areas:
            "image main   delete"
            "image stock  delete"
            "qty   price  total";
        column-gap: 14px;
        row-gap: 10px;
    }

    .bcpl_image {
        grid-area: image;
    }

    .bcpl_main {
        grid-area: main;
    }

    .bcpl_delete {
        grid-area: delete;
    }

    .bcpl_qty {
        grid-area: qty;
    }

    .bcpl_price {
        grid-area: price;
        text-align: left;
    }

    .bcpl_total {
        grid-area: total;
        min-width: 0;
    }

    .bcpl_stock {
        grid-area: stock;
        text-align: left;
        margin-top: -4px;
    }

}

@media (max-width: 576px) {
    .bcpl {
        grid-template-columns: 56px 1fr auto;
        padding: 10px;
    }

    .bcpl_image {
        width: 56px;
        height: 56px;
    }
}

