.mx-cart tr.cart_item {
    display: grid !important;
    position: relative;
    width: 100% !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20) !important;
}
.mx-cart tr.cart_item:first-child {
    padding-top: 0;
}

.mx-cart tr.cart_item td.product-thumbnail {
    padding: 0 !important;
    grid-row: span 3 / span 3;
    border: 0 none !important;
}

.mx-cart tr.cart_item td.product-remove {
    grid-column-start: 3;
    grid-row-start: 3;
    border: 0 none !important;
    padding: 0;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.mx-cart tr.cart_item td.product-remove a {
    color: #fff !important;
    font-size: 18px;
    font-family: 'Special Gothic Condensed One';
    text-transform: uppercase;
    font-weight: normal;
    text-align: right;
}

.mx-cart table.shop_table.cart thead {display: none;}

.mx-cart tr.cart_item td.product-thumbnail img {
    width: 100% !important;
    border-radius: 16px;
}

.mx-cart tr.cart_item td.product-name {
    padding: 0 !important;
    border: 0 none !important;
}

.mx-cart tr.cart_item td.product-name * {
    font-size: 22px;
    color: #fff !important;
    font-family: 'Geist';
    line-height: 1.3;
    font-weight: 500;
    max-width: 300px !important;
    display: inline-block;
}

.mx-cart td.product-price {
    grid-column-start: 2;
    grid-row-start: 2;
    padding: 0 !important;
    font-family: 'Geist';
    border: 0 none !important;
}
.mx-cart td.product-price * {
    font-size: 14px;
}
.mx-cart td.product-quantity {
    grid-column-start: 2;
    grid-row-start: 3;
    border: 0 none !important;
    padding: 0;
    display: inline-flex;
    align-items: flex-end;
}

.mx-cart td.product-subtotal {
    grid-column-start: 3;
    grid-row-start: 1;
    text-align: right;
    padding: 0 !important;
    border: 0 none !important;
}
.mx-cart td.product-subtotal * {
    font-size: 22px !important;
    font-family: 'Special Gothic Condensed One';
    text-align: right !important;
}
.mx_cart_total_title {
    font-size: 28px;
    font-family: 'Oxide Solid';
    letter-spacing: -2.8px;
    font-weight: bold;
    color: #000;
    padding: 0 0 32px;
}
form.mx-coupon {
    display: flex;
    margin: 0 0 20px;
}
.mx-cart .cart-collaterals h2 {
    display: none;
}
form.mx-coupon .mx-coupon__input {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 16px 0 0 16px !important;
    border-right: 0 none !important;
    box-shadow: 0 0 transparent !important;
}
button.mx-coupon__btn {
    background: #ffdd00 !important;
    border: 0 none !important;
    color: #000 !important;
    text-transform: uppercase;
    font-family: 'Special Gothic Condensed One';
    font-weight: normal !important;
    border-radius: 0 !important;
}
.mx-cart .coupon.e-cart-section {
    display: none !important;
}
.mx-checkout .wc-block-components-checkout-step__heading, .mx-checkout .wc-block-components-checkout-step__heading * {
    color: #fff !important;
    font-size: 28px !important;
    font-family: var(--e-global-typography-primary-font-family);
    letter-spacing: -2.8px;
}
.mx-checkout .wp-block-woocommerce-checkout-order-summary-block {
    background: #fff !important;
    border: 0 none;
    border-radius: 16px;
}
.mx-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title, .mx-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title * {
    padding-top: 10px;
    text-transform: uppercase;
    font-size: 28px !important;
    font-family: var(--e-global-typography-primary-font-family);
    letter-spacing: -2.8px;
}
.mx-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
    font-size: 22px;
    font-family: var(--e-global-typography-accent-font-family);
}
.mx-checkout .wc-block-components-formatted-money-amount {
    font-size: 22px;
    font-family: var(--e-global-typography-accent-font-family);
}
.mx-checkout button.wc-block-components-button {
    background: #ffdd00;
    color: black;
    border: 0 none;
    font-family: var(--e-global-typography-accent-font-family);
    text-transform: uppercase;
}
.mx-checkout .wc-block-components-address-form__address_2-toggle,
.mx-checkout .wc-block-components-checkbox, 
.mx-checkout .wc-block-components-checkbox__label {
    color: #fff;
}

/* REMOVE THIS */
.mx-checkout .wp-block-woocommerce-checkout-shipping-method-block,
.mx-checkout .wp-block-woocommerce-checkout-pickup-options-block {
    display: none !important;
}


/* ==========================================================================
   MOBILE CART  (<= 767px)
   Must stay at the end of the file: several rules below beat the desktop
   !important declarations by source order, not by specificity.
   ========================================================================== */
@media (max-width: 767px) {

    /* 1. Undo WooCommerce's responsive-table mode.
       woocommerce.css turns every td into a right-aligned block and injects
       a data-title label via ::before ("PRODUIT:", "PRIX:", "QUANTITÉ:").
       Both have to go before the grid can be rebuilt. */
    .mx-cart table.shop_table_responsive tr.cart_item td,
    .mx-cart table.cart tr.cart_item td {
        display: block;
        text-align: left !important;
        clear: none;
        width: auto !important;
    }
    .mx-cart table.shop_table_responsive tr.cart_item td::before,
    .mx-cart table.cart tr.cart_item td::before {
        content: none !important;
        display: none !important;
    }

    /* 2. Row grid: thumb | content | action
       Rows: 1 name+remove, 2 unit price, 3 subtotal+quantity */
    .mx-cart tr.cart_item {
        grid-template-columns: 96px minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        column-gap: 14px;
        row-gap: 6px;
        align-items: start;
        padding: 18px 0 !important;
    }

    /* 3. Thumbnail. WooCommerce hides .product-thumbnail below 768px,
       so display has to be forced back on with !important. */
    .mx-cart tr.cart_item td.product-thumbnail {
        display: block !important;
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: start;
    }
    .mx-cart tr.cart_item td.product-thumbnail img {
        width: 96px !important;
        height: 96px;
        max-width: none;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

    /* 4. Product name + variation (Taille: M) */
    .mx-cart tr.cart_item td.product-name {
        grid-column: 2;
        grid-row: 1;
    }
    .mx-cart tr.cart_item td.product-name * {
        max-width: none !important;
        display: block;
    }
    .mx-cart tr.cart_item td.product-name a {
        font-size: 17px;
        line-height: 1.25;
        font-weight: 500;
    }
    .mx-cart tr.cart_item td.product-name .variation,
    .mx-cart tr.cart_item td.product-name .variation * {
        font-size: 14px !important;
        font-weight: 400;
        line-height: 1.3;
        color: rgba(255, 255, 255, 0.55) !important;
        margin: 2px 0 0;
    }
    .mx-cart tr.cart_item td.product-name .variation dt,
    .mx-cart tr.cart_item td.product-name .variation dd,
    .mx-cart tr.cart_item td.product-name .variation p {
        display: inline !important;
        margin: 0;
    }

    /* 5. Unit price, grey secondary line */
    .mx-cart tr.cart_item td.product-price {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
    .mx-cart tr.cart_item td.product-price,
    .mx-cart tr.cart_item td.product-price * {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.55) !important;
    }

    /* 6. Line subtotal, the large figure bottom-left */
    .mx-cart tr.cart_item td.product-subtotal {
        grid-column: 2;
        grid-row: 3;
        align-self: end;
        text-align: left !important;
    }
    .mx-cart tr.cart_item td.product-subtotal * {
        font-size: 26px !important;
        text-align: left !important;
        line-height: 1;
    }

    /* 7. Remove link becomes a trash icon, top-right.
       font-size:0 kills the "SUPPRIMER" text, the SVG is a mask so the icon
       inherits whatever colour is set on background-color. */
    .mx-cart tr.cart_item td.product-remove {
        grid-column: 3;
        grid-row: 1;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-end;
        padding-top: 2px;
    }
    .mx-cart tr.cart_item td.product-remove a {
        font-size: 0 !important;
        line-height: 0;
        width: 22px;
        height: 22px;
        display: block;
        background-color: rgba(255, 255, 255, 0.75);
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: 22px 22px;
        mask-size: 22px 22px;
    }

    /* 8. Quantity pill, bottom-right */
    .mx-cart tr.cart_item td.product-quantity {
        grid-column: 3;
        grid-row: 3;
        display: flex !important;
        align-items: flex-end;
        justify-content: flex-end;
        align-self: end;
    }
    .mx-cart tr.cart_item td.product-quantity .quantity {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 999px;
        padding: 5px 10px;
        background: transparent;
    }
    .mx-cart tr.cart_item td.product-quantity input.qty {
        background: transparent !important;
        border: 0 none !important;
        box-shadow: none !important;
        color: #fff !important;
        font-family: 'Geist';
        font-size: 16px;
        width: 30px;
        min-width: 0;
        padding: 0;
        text-align: center;
        -moz-appearance: textfield;
        appearance: textfield;
    }
    .mx-cart tr.cart_item td.product-quantity input.qty::-webkit-outer-spin-button,
    .mx-cart tr.cart_item td.product-quantity input.qty::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    /* Only applies if a plugin/theme renders +/- buttons in .quantity */
    .mx-cart tr.cart_item td.product-quantity .quantity .plus,
    .mx-cart tr.cart_item td.product-quantity .quantity .minus {
        background: transparent !important;
        border: 0 none !important;
        color: #fff !important;
        font-size: 20px;
        line-height: 1;
        width: 22px;
        height: 22px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 9. Coupon row: stop the input overflowing the viewport */
    form.mx-coupon {
        flex-wrap: nowrap;
    }
    form.mx-coupon .mx-coupon__input {
        flex: 1 1 auto;
        min-width: 0;
    }
    button.mx-coupon__btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .mx-checkout .wp-block-woocommerce-checkout-order-summary-block {
        padding: 0px 30px !important;
        margin: 0 0 30px;
    }
    .mx-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper {
        display: none;
    }
}

