/* ADLR - Panier WooCommerce : présentation de la page Panier.
 * 1.2.26 TEST : le skin Quantité est centralisé dans quantity.css, imprimé inline côté PHP avant le premier rendu.
 * Les calculs, contenus et actions WooCommerce / extensions restent natifs. */

body.woocommerce-cart.adlr-panier-style-enabled {
    --adlr-cart-accent: #045cb4;
    --adlr-cart-text: #172033;
    --adlr-cart-muted: #60758b;
    --adlr-cart-border: #ccdeef;
    --adlr-cart-border-soft: #e3ecf5;
    --adlr-cart-surface-soft: #f5f9fd;
    --adlr-cart-radius: 12px;
    --adlr-cart-shadow: 0 5px 16px rgba(15, 23, 42, .09);
    --adlr-cart-shadow-soft: 0 3px 10px rgba(15, 23, 42, .07);
    --adlr-panier-main-css-ready: 1;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce,
body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form,
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals,
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells,
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals {
    box-sizing: border-box;
}

/* Astra checkout progress is redundant on the cart page and is hidden only
 * while the ADLR cart appearance module is active. Checkout pages are untouched. */
body.woocommerce-cart.adlr-panier-style-enabled div#ast-checkout-wrap {
    display: none !important;
}

/* Main cart becomes one clean card instead of a hard black table. */
body.woocommerce-cart.adlr-panier-style-enabled form.woocommerce-cart-form {
    width: 100%;
    margin: 0 0 22px;
    border: 1px solid var(--adlr-cart-border);
    border-radius: var(--adlr-cart-radius);
    background: #fff;
    box-shadow: var(--adlr-cart-shadow);
    overflow: hidden;
}


/* Real section heading: keeps the cart itself aligned with the other ADLR cards. */
body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--adlr-cart-border);
    background: linear-gradient(180deg, #fff 0%, var(--adlr-cart-surface-soft) 100%);
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading h2 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--adlr-cart-text);
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading-icon {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: var(--adlr-cart-accent);
    box-shadow: 0 3px 8px rgba(4, 92, 180, .18);
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading-icon svg {
    width: 17px;
    height: 17px;
    fill: #fff;
}

body.woocommerce-cart.adlr-panier-style-enabled table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent;
    box-shadow: none !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents thead th {
    padding: 13px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--adlr-cart-border) !important;
    background: linear-gradient(180deg, #fff 0%, var(--adlr-cart-surface-soft) 100%);
    color: var(--adlr-cart-text);
    font-weight: 700;
    line-height: 1.35;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents tbody tr.cart_item {
    background: #fff;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents tbody tr.cart_item:nth-child(even) {
    background: #fbfdff;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents tbody tr.cart_item > td {
    padding: 16px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--adlr-cart-border-soft) !important;
    vertical-align: middle;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-thumbnail img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border: 1px solid var(--adlr-cart-border-soft);
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-name {
    min-width: 220px;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-name a {
    color: var(--adlr-cart-accent);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-name a:hover,
body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-name a:focus-visible {
    text-decoration: underline;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-price,
body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-subtotal {
    color: var(--adlr-cart-text);
    font-weight: 700;
}

body.woocommerce-cart.adlr-panier-style-enabled table.shop_table .woocommerce-Price-amount {
    font-weight: 700 !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-remove a.remove {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    margin: 0 auto;
    border: 1px solid #d8e3ed;
    border-radius: 50%;
    background: #fff;
    color: #7a8796 !important;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-remove a.remove:hover,
body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-remove a.remove:focus-visible {
    border-color: #e4bcbc;
    background: #fff6f6;
    color: #9b1c1c !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents .quantity {
    display: inline-flex;
    align-items: stretch;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents .quantity input.qty {
    min-height: 36px;
    border-color: var(--adlr-cart-border) !important;
    background: #fff;
}


/* 1.2.6 TEST - financial cart table aligned on Commander / Compte client.
 * Native cart controls are preserved; only their presentation and display columns change. */
body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table {
    table-layout: fixed !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table thead th {
    text-align: center !important;
    vertical-align: middle !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table .adlr-panier-col-product {
    width: 44% !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table .adlr-panier-col-qty,
body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table .adlr-panier-col-money {
    width: 14% !important;
    text-align: center !important;
    vertical-align: middle !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table .adlr-panier-col-money {
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody td.adlr-panier-col-money {
    color: var(--adlr-cart-text) !important;
    font-weight: 700 !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody td.adlr-panier-col-ttc {
    font-weight: 900 !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td {
    vertical-align: middle !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody td.adlr-panier-col-qty,
body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody td.adlr-panier-col-money {
    text-align: center !important;
}

body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table td.adlr-panier-col-product {
    padding-left: 14px !important;
    text-align: left !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-wrap {
    display: grid !important;
    grid-template-columns: 30px 72px minmax(0, 1fr);
    align-items: center !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-remove,
body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-thumb,
body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy {
    min-width: 0;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-thumb img {
    display: block;
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    margin: 0 !important;
    object-fit: contain;
    border: 1px solid var(--adlr-cart-border-soft);
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy,
body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy .ast-product-image,
body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy .ast-product-name {
    width: 100% !important;
    min-width: 0 !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy a {
    white-space: normal !important;
    overflow-wrap: break-word;
}

/* Quantity styling lives in quantity.css, emitted inline before first paint. */


/* Coupon / points row. Buttons deliberately inherit Astra's global design. */
body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions {
    padding: 14px !important;
    border: 0 !important;
    background: #f8fbff !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .coupon {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.woocommerce-cart.adlr-panier-style-enabled input#coupon_code,
body.woocommerce-cart.adlr-panier-style-enabled input#wps_cart_points {
    box-sizing: border-box;
    width: min(220px, 100%) !important;
    min-width: 170px;
    min-height: 42px;
    border: 1px solid var(--adlr-cart-border) !important;
    border-radius: 9px !important;
    background: #fff !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .button {
    min-width: 150px;
    min-height: 42px;
    white-space: normal;
}

/* Collaterals stay stacked, but each functional area is now an ADLR card. */
body.woocommerce-cart.adlr-panier-style-enabled .woocommerce .cart-collaterals .cross-sells,
body.woocommerce-cart.adlr-panier-style-enabled.woocommerce-page .cart-collaterals .cross-sells,
body.woocommerce-cart.adlr-panier-style-enabled .woocommerce .cart-collaterals .cart_totals,
body.woocommerce-cart.adlr-panier-style-enabled.woocommerce-page .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    clear: both;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells,
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals {
    margin: 0 0 22px;
    padding: 0 18px 18px;
    border: 1px solid var(--adlr-cart-border) !important;
    border-radius: var(--adlr-cart-radius) !important;
    background: #fff;
    box-shadow: var(--adlr-cart-shadow) !important;
    overflow: hidden;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells > h2,
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals > h2 {
    margin: 0 -18px 18px !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--adlr-cart-border) !important;
    background: linear-gradient(180deg, #fff 0%, var(--adlr-cart-surface-soft) 100%);
    color: var(--adlr-cart-text);
}

/* Cross-sells: same card language as the cart, while keeping the native
 * WooCommerce/Astra product loop, reviews, prices and add-to-cart actions. */
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells > h2 {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells > h2::before {
    content: "";
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background-color: var(--adlr-cart-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2.5l2.08 5.11 5.42.4-4.15 3.51 1.28 5.28L12 14l-4.63 2.8 1.28-5.28L4.5 8.01l5.42-.4L12 2.5zm7.2 13.3.9 2.2 2.4.18-1.84 1.55.57 2.34-2.03-1.24-2.03 1.24.57-2.34-1.84-1.55 2.4-.18.9-2.2z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
    box-shadow: 0 3px 8px rgba(4, 92, 180, .18);
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products {
    display: grid !important;
    align-items: stretch;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-1 { grid-template-columns: 1fr; }
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product {
    box-sizing: border-box;
    display: flex;
    float: none !important;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 15px !important;
    border: 1px solid var(--adlr-cart-border-soft);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--adlr-cart-shadow-soft);
}

/* 1.2.9 TEST - compact cross-sells.
 * Astra separates the thumbnail link from the product summary on this loop.
 * The 1.2.8 grid was therefore reserving title/rating rows inside the image
 * link itself, which produced the large white gap visible on the real cart.
 * Keep the same aligned card principle, but reserve space only where the
 * actual content lives: compact image area, 3-line title, rating, price,
 * then the native WooCommerce add-to-cart button. */
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link {
    display: grid !important;
    grid-template-rows: 170px 30px;
    align-content: start;
    flex: 0 0 auto !important;
    min-width: 0;
    margin: 0 !important;
    text-decoration: none !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap {
    flex: 0 0 auto;
    min-height: 0 !important;
    margin: 0 0 10px !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product > a.woocommerce-LoopProduct-link {
    min-height: 0 !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link > img,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap img {
    display: block;
    width: 100% !important;
    height: 170px !important;
    max-height: 170px !important;
    margin: 0 !important;
    padding: 4px;
    object-fit: contain;
    object-position: center;
    border: 0 !important;
    border-radius: 9px;
    background: #fff;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product h2 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: calc(1.32em * 3);
    max-height: calc(1.32em * 3);
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: var(--adlr-cart-text);
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.32;
}

/* 1.2.11 TEST - Guaranteed Reviews injects its rating widget inside the
 * thumbnail link, before Astra's summary wrapper. The outer .grc-category-stars
 * exists even when there is no rating, but only rated products receive inner
 * content. Reserve one fixed row in the thumbnail link for every card so the
 * summary starts at the same vertical position with or without reviews. */
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap .grc-category-stars {
    box-sizing: border-box !important;
    grid-row: 2;
    align-self: stretch;
    width: 100%;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 4px 0 0 8.5px !important;
    overflow: hidden;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .star-rating {
    flex: 0 0 22px;
    min-height: 22px;
    margin: 0 0 6px !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .price {
    flex: 0 0 auto;
    margin: 0 0 9px !important;
    color: var(--adlr-cart-accent);
    font-weight: 700;
    line-height: 1.4;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    margin-top: auto !important;
    white-space: normal;
}

/* 1.2.12 TEST - Total panier.
 * Keep every native WooCommerce row and every express-payment widget intact.
 * This pass only gives the summary the same visual hierarchy as the validated
 * ADLR recap cards and fixes the cramped included-tax note. */
body.woocommerce-cart.adlr-panier-style-enabled .cart_totals.calculated_shipping,
body.woocommerce-cart.adlr-panier-style-enabled .cart_totals {
    border: 1px solid var(--adlr-cart-border) !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals > h2 {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals > h2::before {
    content: "";
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background-color: var(--adlr-cart-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm2 3v3h3V6H7zm0 5v3h3v-3H7zm0 5v2h3v-2H7zm5-10v3h5V6h-5zm0 5v3h5v-3h-5zm0 5v2h5v-2h-5z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
    box-shadow: 0 3px 8px rgba(4, 92, 180, .18);
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table {
    width: 100% !important;
    margin: 0 0 18px !important;
    border: 1px solid var(--adlr-cart-border-soft) !important;
    border-radius: 10px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff;
    box-shadow: none !important;
    overflow: hidden;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr {
    background: #fff;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table th,
body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table td {
    width: 50%;
    padding: 14px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--adlr-cart-border-soft) !important;
    background: transparent !important;
    color: var(--adlr-cart-text);
    line-height: 1.35;
    vertical-align: middle !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table th {
    font-weight: 700;
    text-align: left !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table td {
    font-weight: 700;
    text-align: right !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table td .woocommerce-Price-amount {
    white-space: nowrap;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total th,
body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total td {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 0 !important;
    background: #f3f8fe !important;
    font-size: 16px;
    font-weight: 800;
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total td strong {
    display: block;
    color: var(--adlr-cart-accent) !important;
    font-size: 18px;
    line-height: 1.2;
}

/* 1.2.14 TEST - the dedicated TVA row already exposes the tax amount.
 * Hide WooCommerce's native included-tax note at CSS level as well as in JS so
 * it cannot reappear after a late cart/AJAX refresh. */
body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax ~ tr.order-total td small.includes_tax {
    display: none !important;
}

/* Separate the native express-payment area from the financial recap without
 * changing, moving or restyling Apple Pay / Google Pay / Link / PayPal widgets. */
body.woocommerce-cart.adlr-panier-style-enabled .cart_totals .wc-proceed-to-checkout {
    margin: 0;
    padding: 17px 0 0 !important;
    border-top: 1px solid var(--adlr-cart-border-soft);
}

body.woocommerce-cart.adlr-panier-style-enabled .cart_totals .wc-proceed-to-checkout .checkout-button {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    margin: 12px 0 0 !important;
    font-weight: 700;
    white-space: normal;
}

body.woocommerce-cart.adlr-panier-style-enabled section.shipping-calculator-form {
    text-align: left;
}

body.woocommerce-cart.adlr-panier-style-enabled a.shipping-calculator-button {
    margin-left: 0;
}

/* Tablet: keep product recommendations readable without changing WooCommerce data. */
@media (max-width: 921px) {
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-3,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-4,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-5,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link {
        grid-template-rows: 160px 30px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product img {
        height: 160px !important;
        max-height: 160px !important;
    }
}

/* Mobile: retain native WooCommerce responsive semantics and soften each row. */
@media (max-width: 768px) {
    body.woocommerce-cart.adlr-panier-style-enabled form.woocommerce-cart-form,
    body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells,
    body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals {
        border-radius: 11px !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, .08) !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading {
        padding: 12px 14px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents tbody tr.cart_item > td {
        padding: 11px 13px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-thumbnail img {
        width: 58px;
        height: 58px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.product-name {
        min-width: 0;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .coupon {
        align-items: stretch;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .coupon input#coupon_code,
    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .coupon .button {
        width: 100% !important;
        max-width: none !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-2,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-3,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-4,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-5,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-6 {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells > h2::before {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background-size: 15px 15px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals > h2::before {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background-size: 15px 15px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table td {
        padding: 12px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total td strong {
        font-size: 17px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link {
        grid-template-rows: 180px 30px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product img {
        height: 180px !important;
        max-height: 180px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-cart.adlr-panier-style-enabled * {
        scroll-behavior: auto !important;
    }
}


/* Responsive financial rows: product full width, then a clean 2 x 2
 * grid for Quantité / HT / TVA / TTC, matching the validated Commander cards. */
@media (max-width: 768px) {
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody {
        display: block !important;
        width: 100% !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table thead {
        display: none !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin: 10px 12px !important;
        border: 1px solid var(--adlr-cart-border) !important;
        border-radius: 11px !important;
        overflow: hidden !important;
        background: #fff !important;
        box-shadow: var(--adlr-cart-shadow-soft) !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td {
        display: block !important;
        width: auto !important;
        padding: 10px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--adlr-cart-border-soft) !important;
        background: #fff !important;
        text-align: left !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td::before {
        content: attr(data-title);
        display: block !important;
        margin: 0 0 5px !important;
        color: var(--adlr-cart-muted) !important;
        font-size: .78em !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-product {
        grid-column: 1 / -1 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-product::before {
        display: none !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty {
        text-align: right !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money::before,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty::before {
        text-align: left !important;
    }


    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-wrap {
        grid-template-columns: 28px 60px minmax(0, 1fr);
        gap: 10px;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-thumb img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr > td.actions {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
    }
}


/* 1.2.15 TEST - responsive verification pass.
 * Mobile product cards now reuse the same centered 2 x 2 financial language
 * validated in Compte client / Commander. The native quantity control remains
 * fully functional; only its placement inside the financial cell changes. */
@media (max-width: 768px) {
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td {
        box-sizing: border-box !important;
        min-width: 0 !important;
        min-height: 68px !important;
        padding: 9px 10px !important;
        text-align: center !important;
        font-size: .98em !important;
        line-height: 1.3 !important;
        background: #fff !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td::before {
        margin: 0 0 6px !important;
        text-align: center !important;
        color: var(--adlr-cart-muted) !important;
        font-size: .76em !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-product {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 11px 12px !important;
        text-align: left !important;
        background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
        border-bottom: 1px solid var(--adlr-cart-border-soft) !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-product::before {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money {
        width: auto !important;
        text-align: center !important;
        white-space: normal !important;
        font-variant-numeric: tabular-nums;
    }

    /* Top row: Quantité / Total HT. Bottom row: TVA / Total TTC. */
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td:nth-child(2),
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td:nth-child(3) {
        border-bottom: 1px solid rgba(4, 92, 180, .09) !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td:nth-child(4) {
        border-right: 1px solid rgba(4, 92, 180, .09) !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td:nth-child(4),
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td:nth-child(5) {
        border-bottom: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-ttc {
        background: #f3f8fd !important;
        color: var(--adlr-cart-text) !important;
        font-weight: 900 !important;
    }


    /* Cart totals: neutralize Woo/Astra's stacked responsive-cell treatment for
     * simple money rows. Keep shipping/calculator rows native because they may
     * contain interactive carrier controls. */
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) max-content !important;
        align-items: center !important;
        column-gap: 12px !important;
        width: 100% !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 12px 13px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > th {
        justify-content: flex-start !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td {
        justify-content: flex-end !important;
        text-align: right !important;
        white-space: nowrap !important;
        font-variant-numeric: tabular-nums;
    }

    /* Astra/WooCommerce can inject the row label again through td::before on
     * responsive tables. The real <th> remains visible, so suppress the duplicate. */
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > td::before,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > td::before,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > td::before,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > td::before,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > td::before,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > td::before,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td::before {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total td strong {
        font-size: 17px !important;
    }
}

@media (max-width: 360px) {
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td {
        padding: 8px !important;
        font-size: .94em !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total {
        column-gap: 8px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}


/* 1.2.16 TEST - responsive mobile finalisation.
 * 1) Total TTC uses one continuous highlighted row instead of two coloured
 *    cells separated by the responsive grid gap.
 * 2) Cross-sell cards are centered on phones without changing their desktop
 *    layout or WooCommerce actions.
 * 3) Cart product cards reuse the compact view-order language: product summary
 *    on top, then four balanced financial cells. The editable quantity control
 *    stays native and functional, but is visually integrated into its cell. */
@media (max-width: 768px) {
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total {
        column-gap: 0 !important;
        background: #f3f8fe !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td {
        background: transparent !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product {
        align-items: center !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link {
        width: 100% !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap .grc-category-stars {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars > div,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars-content {
        justify-content: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap {
        align-items: center !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .woocommerce-loop-product__title,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product h2,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .price {
        width: 100% !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .button {
        align-self: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-product {
        padding: 11px 12px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-wrap {
        grid-template-columns: 22px 54px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 9px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-remove {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-remove a.remove {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        margin: 0 !important;
        border: 1px solid var(--adlr-cart-border) !important;
        border-radius: 50% !important;
        color: var(--adlr-cart-muted) !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-remove a.remove :is(svg, .ast-mobile-svg) {
        width: 12px !important;
        height: 12px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-thumb img {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        padding: 3px !important;
        border-radius: 9px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy,
    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy .ast-product-name {
        text-align: left !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy a {
        color: var(--adlr-cart-accent) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        overflow-wrap: break-word !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 76px !important;
        padding: 9px 8px !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty::before,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money::before {
        width: 100% !important;
        margin: 0 0 5px !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money .woocommerce-Price-amount {
        color: var(--adlr-cart-text) !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-ttc .woocommerce-Price-amount {
        font-weight: 900 !important;
    }


}

@media (max-width: 360px) {
    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-wrap {
        grid-template-columns: 20px 48px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-thumb img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy a {
        font-size: 13.5px !important;
    }

}

/* 1.2.17 TEST - mobile alignment refinement from real-site captures.
 * Product financial cells share the same label/value rhythm as view-order.
 * Cart-total money rows use one row-level separator so the line cannot be
 * interrupted by the responsive grid gap between label and amount. */
@media (max-width: 768px) {
    /* Financial product grid: identical vertical rhythm in all four cells.
     * The editable quantity control occupies the same value row as the static
     * HT / TVA / TTC amounts. */
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money {
        display: grid !important;
        grid-template-rows: 16px 34px !important;
        row-gap: 8px !important;
        align-content: center !important;
        align-items: center !important;
        justify-items: center !important;
        min-height: 84px !important;
        padding: 10px 8px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-qty::before,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money::before {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 16px !important;
        margin: 0 !important;
        line-height: 16px !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table tbody tr.adlr-panier-financial-row > td.adlr-panier-col-money .woocommerce-Price-amount {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 34px !important;
        line-height: 1.2 !important;
    }


    /* Total panier: separators belong to the complete row rather than each
     * individual cell. This removes the broken/misaligned line visible between
     * the left label cell and the right amount cell on narrow screens. */
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total {
        box-sizing: border-box !important;
        grid-template-columns: minmax(0, 1fr) minmax(76px, max-content) !important;
        column-gap: 18px !important;
        align-items: stretch !important;
        border: 0 !important;
        border-bottom: 1px solid var(--adlr-cart-border-soft) !important;
        background: #fff !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td {
        min-height: 51px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        border: 0 !important;
        border-bottom: 0 !important;
        background: transparent !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > th {
        padding-left: 14px !important;
        padding-right: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax > td,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total > td {
        padding-left: 0 !important;
        padding-right: 14px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total {
        column-gap: 18px !important;
        border-bottom: 0 !important;
        background: #f3f8fe !important;
    }
}

@media (max-width: 360px) {
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-discount,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.fee,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.tax-rate,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-ht,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.adlr-panier-total-tax,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total {
        grid-template-columns: minmax(0, 1fr) minmax(72px, max-content) !important;
        column-gap: 14px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.order-total {
        column-gap: 14px !important;
    }
}


/* 1.2.18 TEST - tablette Astra / view-order parity.
 * Compte client a déjà rencontré le même conflit avec un breakpoint tablette
 * Astra poussé jusqu'à 1279 px : entre 769 px et la largeur desktop, le thème
 * peut transformer un shop_table_responsive en cellules empilées alors que le
 * design ADLR attend encore un vrai tableau. Comme view-order, le Panier garde
 * donc ses cartes uniquement <= 768 px et verrouille les vraies sémantiques de
 * tableau à partir de 769 px. Aucune donnée ou action WooCommerce n'est déplacée. */
@media (min-width: 769px) {
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive thead {
        display: table-header-group !important;
        width: auto !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive tbody {
        display: table-row-group !important;
        width: auto !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive tr {
        display: table-row !important;
        width: auto !important;
        margin: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive th,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive td {
        display: table-cell !important;
        float: none !important;
        clear: none !important;
        position: static !important;
        transform: none !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive td::before {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive .adlr-panier-col-product {
        width: 44% !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive .adlr-panier-col-qty,
    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive .adlr-panier-col-money {
        width: 14% !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled table.adlr-panier-financial-table.shop_table_responsive tbody tr > td.actions {
        display: table-cell !important;
        float: none !important;
        clear: none !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Total panier: même protection que le tableau financier. Astra ne doit
     * pas injecter les pseudo-libellés responsive tant qu'on est > 768 px. */
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table.shop_table_responsive {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table.shop_table_responsive tbody {
        display: table-row-group !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table.shop_table_responsive tr {
        display: table-row !important;
        width: auto !important;
        margin: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table.shop_table_responsive th,
    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table.shop_table_responsive td {
        display: table-cell !important;
        float: none !important;
        clear: none !important;
        position: static !important;
        transform: none !important;
        width: 50% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table.shop_table_responsive td::before {
        content: none !important;
        display: none !important;
    }
}

/* Tablette 769-1279 px : compacter le contenu interne sans passer en cartes.
 * On reprend la philosophie de view-order : vrai tableau, Produit prioritaire,
 * colonnes financières régulières et contrôles qui restent dans leur cellule. */
@media (min-width: 769px) and (max-width: 1279px) {
    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents thead th,
    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents tbody tr.cart_item > td {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-wrap {
        grid-template-columns: 24px 54px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-thumb img {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        padding: 3px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-product-copy a {
        font-size: 13.5px !important;
        line-height: 1.32 !important;
        overflow-wrap: break-word !important;
    }


    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-3,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-4,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-5,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products.columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link {
        grid-template-rows: 160px 30px !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link > img,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap img {
        height: 160px !important;
        max-height: 160px !important;
    }
}


/* 1.2.19 TEST - finition tablette/desktop coupon + cartes ventes croisees.
 * Le coupon reste empile uniquement sur mobile. A partir de 769 px, le champ
 * et l'action forment une ligne compacte afin d'eviter le grand vide cree par
 * le responsive Astra sur la cellule actions. Les cartes ventes croisees
 * conservent le texte aligne a gauche (comme Compte client) mais centrent les
 * elements visuels secondaires sur tablette. */
@media (min-width: 769px) {
    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .coupon {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .coupon input#coupon_code {
        flex: 0 1 240px !important;
        width: 240px !important;
        min-width: 190px !important;
        max-width: 240px !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .woocommerce-cart-form__contents td.actions .coupon .button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 170px !important;
        min-height: 44px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap .grc-category-stars,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars > div,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars-content {
        justify-content: center !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap .grc-category-stars {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .price {
        align-self: center !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .button {
        align-self: center !important;
        text-align: center !important;
    }
}

/* 1.2.20 TEST - finition tablette des ventes croisees.
 * Sur tablette la carte adopte une seule logique visuelle : image, avis, titre,
 * prix et action sont tous centres. Le desktop conserve son alignement valide. */
@media (min-width: 769px) and (max-width: 1279px) {
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap {
        align-items: center !important;
        text-align: center !important;
    }

    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap > a.ast-loop-product__link,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .woocommerce-loop-product__title,
    body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap h2 {
        width: 100% !important;
        text-align: center !important;
    }
}


/* 1.2.21 TEST - alignement unique des cartes ventes croisees, tous formats.
 * La lecture reste naturellement alignee a gauche pour image/avis/titre/prix ;
 * seul le bouton d action est centre. Ces regles finales neutralisent les anciens
 * centrages mobile/tablette sans modifier le nombre de colonnes ni le contenu. */
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product {
    align-items: stretch !important;
    text-align: left !important;
}
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product > a.woocommerce-LoopProduct-link {
    text-align: left !important;
}
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link > img,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap img {
    object-position: left center !important;
}
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap .grc-category-stars {
    justify-content: flex-start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars > div,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .grc-widget-category-stars-content {
    justify-content: flex-start !important;
    text-align: left !important;
}
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap {
    align-items: stretch !important;
    text-align: left !important;
}
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap > a.ast-loop-product__link,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-summary-wrap h2,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .price {
    width: 100% !important;
    align-self: stretch !important;
    text-align: left !important;
}
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .button {
    align-self: center !important;
    text-align: center !important;
}


/* 1.2.22 TEST - finition cartes ventes croisees.
 * Regle finale : image centree, contenu textuel a gauche, bouton centre.
 * Le prix garde un espacement fixe avant l action afin que le rythme vertical
 * reste regulier sans perdre l alignement bas des cartes. */
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product a.woocommerce-LoopProduct-link > img,
body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .astra-shop-thumbnail-wrap img {
    object-position: center center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .price {
    margin-bottom: 14px !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .cross-sells ul.products li.product .button {
    align-self: center !important;
    text-align: center !important;
}


/* 1.2.23 TEST - finition typographique et premier affichage.
 * Les trois titres de section (Votre panier / Ventes croisees / Total panier)
 * conservent leur structure ADLR mais la taille/poids sont desormais laisses
 * a Astra. Les titres produit restent limites a 3 lignes, avec un rythme un
 * peu plus compact avant le prix. Le skin Quantite est centralise dans quantity.css. */

/* 1.2.27 TEST - typographie H2 rendue a Astra.
 * ADLR conserve la carte, le bandeau et les pictogrammes, mais ne force plus
 * font-size / font-weight / line-height sur les H2 de Ventes croisees et Total panier.
 * Le pictogramme s'adapte a la taille H2 Astra afin de rester proportionne. */
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cross-sells > h2::before,
body.woocommerce-cart.adlr-panier-style-enabled .cart-collaterals .cart_totals > h2::before {
    flex-basis: clamp(30px, 1.2em, 38px) !important;
    width: clamp(30px, 1.2em, 38px) !important;
    height: clamp(30px, 1.2em, 38px) !important;
    border-radius: 9px !important;
    background-size: clamp(17px, .68em, 22px) clamp(17px, .68em, 22px) !important;
}


/* The native-table and mobile-grid display rules use !important. A class with
 * matching priority is required; jQuery display:none alone cannot hide a row. */
body.woocommerce-cart.adlr-panier-style-enabled .cart_totals > table.shop_table tr.cart-subtotal.adlr-panier-subtotal-redundant {
    display: none !important;
}


/* 1.2.29 TEST - pictogramme du bandeau Votre panier.
 * Le H2 suit Astra ; l'icone panier adopte exactement la meme logique
 * proportionnelle que les pictogrammes Ventes croisees / Total panier. */
body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading-icon {
    flex-basis: clamp(30px, 1.2em, 38px) !important;
    width: clamp(30px, 1.2em, 38px) !important;
    height: clamp(30px, 1.2em, 38px) !important;
    border-radius: 9px !important;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading-icon svg {
    width: clamp(17px, .68em, 22px) !important;
    height: clamp(17px, .68em, 22px) !important;
}

/* 1.2.30 TEST - le pictogramme Votre panier doit mesurer ses em sur le H2 Astra.
 * Le span d'icone est maintenant enfant du H2 : les clamp() utilisent donc
 * la taille H2 calculee par Astra, comme les pseudo-elements des deux autres bandeaux. */
body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading h2 {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
}

body.woocommerce-cart.adlr-panier-style-enabled .adlr-panier-cart-heading-icon {
    font-size: inherit !important;
}

