/**
 * NosJardinsEco Child V6 — Cart styles
 * Chargé uniquement sur la page panier.
 */

body.woocommerce-cart .entry-content,
body.woocommerce-cart .site-main,
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .nje-cart-shell,
body.woocommerce-cart .nje-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.woocommerce-cart .entry-content,
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .nje-cart-shell,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals {
    overflow-x: clip;
}

body.woocommerce-cart .nje-cart-shell {
    max-width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

body.woocommerce-cart .nje-cart-form {
    margin-bottom: 18px;
}

body.woocommerce-cart .nje-cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
    table-layout: fixed;
}

body.woocommerce-cart .nje-cart-table thead th {
    padding: 0 16px 10px;
    border: 0;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(32, 48, 34, 0.62);
}

body.woocommerce-cart .nje-cart-table thead .product-remove {
    width: 32px;
}

body.woocommerce-cart .nje-cart-table thead .product-thumbnail {
    width: 96px;
}

body.woocommerce-cart .nje-cart-table thead .product-price,
body.woocommerce-cart .nje-cart-table thead .product-quantity,
body.woocommerce-cart .nje-cart-table thead .product-subtotal {
    width: 15%;
}

body.woocommerce-cart .shop_table_responsive td::before {
    display: none !important;
    content: none !important;
}

body.woocommerce-cart .nje-cart-row td {
    padding: 18px 16px;
    vertical-align: top;
    background: #fff;
    border-top: 1px solid rgba(31, 111, 43, 0.08);
    border-bottom: 1px solid rgba(31, 111, 43, 0.08);
    box-sizing: border-box;
}

body.woocommerce-cart .nje-cart-row td:first-child {
    border-left: 1px solid rgba(31, 111, 43, 0.08);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

body.woocommerce-cart .nje-cart-row td:last-child {
    border-right: 1px solid rgba(31, 111, 43, 0.08);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

body.woocommerce-cart .nje-cart-row td.product-remove {
    padding-right: 0;
}

body.woocommerce-cart .nje-cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

body.woocommerce-cart .nje-cart-item__remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(31, 111, 43, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #eef4e8 100%);
    color: #295c33 !important;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(24, 43, 24, 0.075);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.woocommerce-cart .nje-cart-item__remove a.remove svg {
    display: block;
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

body.woocommerce-cart .nje-cart-item__remove a.remove:hover {
    background: linear-gradient(180deg, #fff4f1 0%, #fde9e4 100%);
    color: #b14b35 !important;
    border-color: rgba(177, 75, 53, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(177, 75, 53, 0.12);
}

body.woocommerce-cart .nje-cart-item__thumb a,
body.woocommerce-cart .nje-cart-item__thumb img {
    display: block;
}

body.woocommerce-cart .nje-cart-item__thumb img {
    width: 72px;
    max-width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: #f4f6ef;
}

body.woocommerce-cart .nje-cart-item__name-wrap {
    min-width: 0;
}

body.woocommerce-cart .nje-cart-item__title,
body.woocommerce-cart .nje-cart-item__title a {
    display: block;
    color: #203022;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.woocommerce-cart .nje-cart-item__meta,
body.woocommerce-cart .nje-cart-item__meta p,
body.woocommerce-cart .nje-cart-item__meta dl {
    margin: 8px 0 0;
    color: rgba(32, 48, 34, 0.68);
    font-size: 0.8rem;
    line-height: 1.42;
}

body.woocommerce-cart .nje-cart-item__metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

body.woocommerce-cart .nje-cart-item__metric-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(32, 48, 34, 0.55);
}

body.woocommerce-cart .nje-cart-item__metric-value {
    display: inline-flex;
    align-items: center;
    color: #203022;
    font-size: 0.98rem;
    line-height: 1.2;
}

body.woocommerce-cart .nje-cart-row td.product-subtotal .nje-cart-item__metric-value {
    font-weight: 700;
}

body.woocommerce-cart .nje-cart-row td.product-price,
body.woocommerce-cart .nje-cart-row td.product-quantity,
body.woocommerce-cart .nje-cart-row td.product-subtotal {
    text-align: left;
}

body.woocommerce-cart .nje-cart-row td.product-quantity .nje-cart-item__metric-value {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

body.woocommerce-cart .nje-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
    height: 36px;
    border: 1px solid rgba(31, 111, 43, 0.16);
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf5 100%);
    overflow: hidden;
    vertical-align: middle;
    box-shadow: 0 8px 18px rgba(24, 43, 24, 0.06);
}

body.woocommerce-cart .nje-qty.is-locked {
    display: inline-flex;
}

body.woocommerce-cart .nje-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 36px;
    border: 0;
    padding: 0;
    background: linear-gradient(180deg, #f0f7ec 0%, #e6f0e0 100%);
    color: #1f6f2b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.woocommerce-cart .nje-qty__btn > span {
    display: block;
    width: 100%;
    line-height: 1;
    transform: translateY(-0.5px);
}

body.woocommerce-cart .nje-qty__btn:hover {
    background: linear-gradient(180deg, #e8f2e2 0%, #dcebd4 100%);
}

body.woocommerce-cart .nje-qty__btn:disabled {
    opacity: 0.42;
    cursor: default;
}

body.woocommerce-cart .nje-qty__field {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    padding: 0;
    background: #fff;
    border-left: 1px solid rgba(31, 111, 43, 0.12);
    border-right: 1px solid rgba(31, 111, 43, 0.12);
    overflow: hidden;
}

body.woocommerce-cart .nje-qty .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    margin: 0;
    height: 100%;
    overflow: hidden;
}

body.woocommerce-cart .nje-qty input.qty {
    display: block;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 36px;
    padding: 0;
    border: 0;
    background: #fff;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 36px;
    color: #203022;
    box-shadow: none;
    border-radius: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

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

body.woocommerce-cart .nje-cart-table td.actions {
    padding: 16px 0 0;
    background: transparent;
    border: 0;
}

body.woocommerce-cart .nje-cart-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(31, 111, 43, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfcf8 0%, #f5f7f1 100%);
}

body.woocommerce-cart .nje-cart-actions__coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

body.woocommerce-cart .nje-cart-actions__coupon .input-text {
    flex: 1 1 240px;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(31, 111, 43, 0.16);
    border-radius: 14px;
    background: #fff;
}

body.woocommerce-cart .nje-cart-actions__buttons {
    flex: 0 0 auto;
}

body.woocommerce-cart .nje-cart-actions button {
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
}

body.woocommerce-cart .nje-cart-reassurance {
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid rgba(31, 111, 43, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfcf8 0%, #f7f8f3 100%);
}

body.woocommerce-cart .nje-cart-reassurance__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.woocommerce-cart .nje-cart-reassurance__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 96px;
    padding: 14px 11px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
    box-shadow: inset 0 0 0 1px rgba(31, 111, 43, 0.05);
    text-align: center;
}

body.woocommerce-cart .nje-cart-reassurance__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #1f6f2b;
    box-shadow: inset 0 0 0 1px rgba(31, 111, 43, 0.08);
    flex: 0 0 38px;
    line-height: 0;
}

body.woocommerce-cart .nje-cart-reassurance__icon svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

body.woocommerce-cart .nje-cart-reassurance__icon--returns svg {
    transform: translateY(-0.5px);
}

body.woocommerce-cart .nje-cart-reassurance__label {
    display: block;
    min-height: 2.2em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #203022;
    line-height: 1.3;
}

body.woocommerce-cart .nje-cart-reassurance__icon--secure {
    background: linear-gradient(180deg, #e9f4ef 0%, #ddf0e7 100%);
    color: #15724f;
}

body.woocommerce-cart .nje-cart-reassurance__icon--delivery {
    background: linear-gradient(180deg, #eaf2fd 0%, #dce9fb 100%);
    color: #2d65c7;
}

body.woocommerce-cart .nje-cart-reassurance__icon--returns {
    background: linear-gradient(180deg, #fdf3e7 0%, #fbe8d1 100%);
    color: #bf7b18;
}

body.woocommerce-cart .nje-cart-reassurance__icon--satisfied {
    background: linear-gradient(180deg, #fff4d8 0%, #fceabb 100%);
    color: #c89210;
}

body.woocommerce-cart .cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

body.woocommerce-cart .cart_totals {
    float: none;
    width: min(100%, 398px);
    padding: 22px;
    border: 1px solid rgba(31, 111, 43, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(24, 43, 24, 0.06);
}

body.woocommerce-cart .cart_totals > h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #203022;
}

body.woocommerce-cart .cart_totals table {
    width: 100%;
    margin: 0 0 18px;
    border-collapse: collapse;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
    padding: 11px 0;
    border-color: rgba(31, 111, 43, 0.08);
}

body.woocommerce-cart .cart_totals th {
    color: rgba(32, 48, 34, 0.7);
    font-size: 0.83rem;
    font-weight: 600;
}

body.woocommerce-cart .cart_totals td {
    text-align: right;
    color: #203022;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
    font-size: 1rem;
    font-weight: 700;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    margin: 0;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 18px;
    border-radius: 16px;
    text-align: center;
    white-space: normal;
}

body.woocommerce-cart .cart-empty.woocommerce-info,
body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info {
    max-width: min(100%, 760px);
    margin: 14px auto 8px;
    padding: 16px 20px 16px 56px;
    border: 1px solid rgba(31, 111, 43, 0.09);
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcf8 0%, #f6f8f2 100%);
    box-shadow: 0 10px 20px rgba(24, 43, 24, 0.045);
    color: #203022;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    position: relative;
}

body.woocommerce-cart .woocommerce-notices-wrapper + .cart-empty.woocommerce-info,
body.woocommerce-cart .woocommerce .woocommerce-notices-wrapper + .cart-empty.woocommerce-info {
    margin-top: 14px;
}

body.woocommerce-cart .cart-empty.woocommerce-info::before,
body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info::before {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(180deg, #eef6ea 0%, #e4f1df 100%);
    color: #1f6f2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
}

body.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 8px;
}

body.woocommerce-cart .return-to-shop .button.wc-backward,
body.woocommerce-cart .return-to-shop .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 14px;
    gap: 0;
    vertical-align: middle;
    line-height: 1;
    text-align: center;
    white-space: normal;
    box-shadow: 0 10px 18px rgba(31, 111, 43, 0.12);
}

@media (max-width: 980px) {
    body.woocommerce-cart .nje-cart-shell {
        max-width: calc(100vw - 28px);
    }

    body.woocommerce-cart .nje-cart-table {
        border-spacing: 0 10px;
    }

    body.woocommerce-cart .nje-cart-table thead {
        display: none;
    }

    body.woocommerce-cart .nje-cart-row {
        display: block;
        position: relative;
        padding: 10px 10px 8px;
        border: 1px solid rgba(31, 111, 43, 0.08);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(24, 43, 24, 0.05);
    }

    body.woocommerce-cart .nje-cart-row td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.woocommerce-cart .nje-cart-row td.product-remove {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 48px !important;
    }

    body.woocommerce-cart .nje-cart-item__remove {
        justify-content: flex-end;
    }

    body.woocommerce-cart .nje-cart-row td.product-thumbnail {
        float: left;
        width: 48px !important;
        margin-right: 8px !important;
    }

    body.woocommerce-cart .nje-cart-item__thumb img {
        width: 48px;
        max-width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    body.woocommerce-cart .nje-cart-row td.product-name {
        min-height: 48px;
        margin: 0 28px 4px 56px !important;
    }

    body.woocommerce-cart .nje-cart-item__title,
    body.woocommerce-cart .nje-cart-item__title a {
        font-size: 0.84rem;
        line-height: 1.24;
    }

    body.woocommerce-cart .nje-cart-item__meta,
    body.woocommerce-cart .nje-cart-item__meta p,
    body.woocommerce-cart .nje-cart-item__meta dl {
        margin-top: 5px;
        font-size: 0.71rem;
    }

    body.woocommerce-cart .nje-cart-row td.product-price,
    body.woocommerce-cart .nje-cart-row td.product-quantity,
    body.woocommerce-cart .nje-cart-row td.product-subtotal {
        margin: 0 0 0 56px !important;
    }

    body.woocommerce-cart .nje-cart-item__metric {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 2px 0;
    }

    body.woocommerce-cart .nje-cart-item__metric-label {
        flex: 0 0 auto;
        font-size: 0.64rem;
    }

    body.woocommerce-cart .nje-cart-item__metric-value {
        justify-content: flex-end;
        text-align: right;
        min-width: 0;
        font-size: 0.79rem;
    }

    body.woocommerce-cart .nje-qty {
        height: 32px;
    }

    body.woocommerce-cart .nje-qty__btn {
        flex-basis: 28px;
        width: 28px;
        min-width: 28px;
        height: 32px;
        font-size: 0.72rem;
    }

    body.woocommerce-cart .nje-qty__field {
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
    }

    body.woocommerce-cart .nje-qty input.qty {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        height: 32px;
        line-height: 32px;
        font-size: 0.74rem;
    }

    body.woocommerce-cart .nje-cart-table td.actions {
        display: block;
        width: 100%;
        padding-top: 10px;
    }

    body.woocommerce-cart .nje-cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
    }

    body.woocommerce-cart .nje-cart-actions__coupon {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.woocommerce-cart .nje-cart-actions__coupon .input-text,
    body.woocommerce-cart .nje-cart-actions button {
        width: 100%;
        max-width: 100%;
    }

    body.woocommerce-cart .nje-cart-reassurance {
        padding: 14px;
        border-radius: 18px;
    }

    body.woocommerce-cart .nje-cart-reassurance__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.woocommerce-cart .nje-cart-reassurance__item {
        min-height: 84px;
        padding: 11px 8px;
        border-radius: 14px;
    }

    body.woocommerce-cart .nje-cart-reassurance__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    body.woocommerce-cart .nje-cart-reassurance__icon svg {
        width: 17px;
        height: 17px;
    }

    body.woocommerce-cart .cart-collaterals {
        display: block;
    }

    body.woocommerce-cart .cart_totals {
        width: 100%;
        padding: 16px;
        border-radius: 18px;
        box-shadow: none;
    }

    body.woocommerce-cart .cart-empty.woocommerce-info,
    body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info {
        padding: 14px 16px 14px 48px;
        border-radius: 16px;
        font-size: 0.86rem;
    }

    body.woocommerce-cart .cart-empty.woocommerce-info::before,
    body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info::before {
        left: 16px;
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 560px) {
    body.woocommerce-cart .nje-cart-shell {
        max-width: calc(100vw - 20px);
    }

    body.woocommerce-cart .nje-cart-row {
        padding: 8px 8px 7px;
        border-radius: 16px;
    }

    body.woocommerce-cart .nje-cart-item__remove a.remove {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    body.woocommerce-cart .nje-cart-item__remove a.remove svg {
        width: 19px;
        height: 19px;
    }

    body.woocommerce-cart .nje-cart-row td.product-thumbnail {
        width: 42px !important;
        margin-right: 8px !important;
    }

    body.woocommerce-cart .nje-cart-item__thumb img {
        width: 42px;
        max-width: 42px;
        height: 42px;
        border-radius: 9px;
    }

    body.woocommerce-cart .nje-cart-row td.product-name {
        min-height: 42px;
        margin-left: 50px !important;
    }

    body.woocommerce-cart .nje-cart-row td.product-price,
    body.woocommerce-cart .nje-cart-row td.product-quantity,
    body.woocommerce-cart .nje-cart-row td.product-subtotal {
        margin-left: 50px !important;
    }

    body.woocommerce-cart .nje-cart-item__title,
    body.woocommerce-cart .nje-cart-item__title a {
        font-size: 0.82rem;
    }

    body.woocommerce-cart .nje-cart-item__metric {
        gap: 8px;
    }

    body.woocommerce-cart .nje-cart-item__metric-label {
        font-size: 0.63rem;
    }

    body.woocommerce-cart .nje-cart-item__metric-value {
        font-size: 0.78rem;
    }

    body.woocommerce-cart .nje-cart-reassurance__label {
        min-height: 2.1em;
        font-size: 0.74rem;
    }

    body.woocommerce-cart .return-to-shop .button.wc-backward,
    body.woocommerce-cart .return-to-shop .button {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    body.woocommerce-cart .nje-cart-shell {
        max-width: calc(100vw - 14px);
    }

    body.woocommerce-cart .nje-cart-row {
        padding: 8px 7px 7px;
        border-radius: 14px;
    }

    body.woocommerce-cart .nje-cart-row td.product-remove {
        top: 7px;
        right: 7px;
    }

    body.woocommerce-cart .nje-cart-row td.product-thumbnail {
        float: none;
        width: 36px !important;
        margin: 0 0 8px !important;
    }

    body.woocommerce-cart .nje-cart-item__thumb img {
        width: 36px;
        max-width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    body.woocommerce-cart .nje-cart-row td.product-name,
    body.woocommerce-cart .nje-cart-row td.product-price,
    body.woocommerce-cart .nje-cart-row td.product-quantity,
    body.woocommerce-cart .nje-cart-row td.product-subtotal {
        margin-left: 0 !important;
    }

    body.woocommerce-cart .nje-cart-row td.product-name {
        min-height: 0;
        margin-right: 24px !important;
        margin-bottom: 6px !important;
    }

    body.woocommerce-cart .nje-cart-row td.product-name .nje-cart-item__name-wrap {
        min-width: 0;
    }

    body.woocommerce-cart .nje-cart-item__title,
    body.woocommerce-cart .nje-cart-item__title a {
        font-size: 0.8rem;
        line-height: 1.22;
    }

    body.woocommerce-cart .nje-cart-item__meta,
    body.woocommerce-cart .nje-cart-item__meta p,
    body.woocommerce-cart .nje-cart-item__meta dl {
        font-size: 0.69rem;
        line-height: 1.28;
    }

    body.woocommerce-cart .nje-cart-row td.product-price,
    body.woocommerce-cart .nje-cart-row td.product-quantity,
    body.woocommerce-cart .nje-cart-row td.product-subtotal {
        padding-top: 4px !important;
    }

    body.woocommerce-cart .nje-cart-item__metric {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 4px;
        justify-items: stretch;
    }

    body.woocommerce-cart .nje-cart-item__metric-label {
        font-size: 0.62rem;
        line-height: 1.1;
    }

    body.woocommerce-cart .nje-cart-item__metric-value {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.woocommerce-cart .nje-cart-row td.product-quantity .nje-cart-item__metric-value {
        justify-content: flex-start;
    }

    body.woocommerce-cart .nje-qty {
        height: 30px;
        max-width: 100%;
    }

    body.woocommerce-cart .nje-qty.is-locked {
        display: inline-flex;
    }

    body.woocommerce-cart .nje-qty__btn {
        flex-basis: 26px;
        width: 26px;
        min-width: 26px;
        height: 30px;
        font-size: 0.66rem;
    }

    body.woocommerce-cart .nje-qty__field {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
    }

    body.woocommerce-cart .nje-qty input.qty {
        width: 34px;
        min-width: 34px;
        max-width: 34px;
        height: 30px;
        line-height: 30px;
        font-size: 0.66rem;
    }

    body.woocommerce-cart .nje-cart-actions {
        padding: 12px;
        border-radius: 16px;
    }

    body.woocommerce-cart .cart_totals {
        padding: 14px;
        border-radius: 16px;
    }

    body.woocommerce-cart .cart-empty.woocommerce-info,
    body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info {
        padding: 13px 12px 12px;
        text-align: center;
        font-size: 0.84rem;
    }

    body.woocommerce-cart .cart-empty.woocommerce-info::before,
    body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info::before {
        position: static;
        transform: none;
        margin: 0 auto 8px;
    }
}


/* ============================================
   PATCH V1 PANIER - NosJardinsEco
   Date : 13 avril 2026
   Corrections : corbeille + quantite +/- + panier vide
   ============================================ */

body.woocommerce-cart .nje-cart-table thead .product-remove {
    width: 64px;
}

body.woocommerce-cart .nje-cart-row td.product-remove {
    width: 64px;
    padding: 18px 8px !important;
}

body.woocommerce-cart .nje-cart-item__remove a.remove {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
}

body.woocommerce-cart .nje-cart-item__remove a.remove svg {
    width: 24px !important;
    height: 24px !important;
}

body.woocommerce-cart .nje-qty > p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 980px) {
    body.woocommerce-cart .nje-cart-row td.product-remove {
        width: 48px !important;
        padding: 8px !important;
    }
    body.woocommerce-cart .nje-cart-item__remove a.remove {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 12px !important;
    }
    body.woocommerce-cart .nje-cart-item__remove a.remove svg {
        width: 22px !important;
        height: 22px !important;
    }
}

body.woocommerce-cart .wc-empty-cart-message,
body.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.05rem;
    color: #3C3C3C;
}

body.woocommerce-cart .return-to-shop .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 2rem;
    background: #34A42E;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.18s ease;
}

body.woocommerce-cart .return-to-shop .button:hover {
    background: #1F6F2B;
}


/* ============================================
   PATCH V2 PANIER - NosJardinsEco
   Date : 13 avril 2026
   Notices auto-disparition + bouton fermer
   ============================================ */

@keyframes njeco-notice-fadeout {
    0%   { opacity: 1; transform: translateY(0); max-height: 200px; margin-bottom: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
    80%  { opacity: 1; transform: translateY(0); max-height: 200px; margin-bottom: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
    100% { opacity: 0; transform: translateY(-10px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info {
    position: relative;
    animation: njeco-notice-fadeout 6s ease-in-out forwards;
}

body.woocommerce-cart .woocommerce-message .njeco-notice-close,
body.woocommerce-cart .woocommerce-info .njeco-notice-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #1F6F2B;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
    line-height: 1;
    padding: 0;
}

body.woocommerce-cart .woocommerce-message .njeco-notice-close:hover,
body.woocommerce-cart .woocommerce-info .njeco-notice-close:hover {
    background: rgba(31, 111, 43, 0.1);
}

body.woocommerce-cart .woocommerce-message.njeco-dismissed,
body.woocommerce-cart .woocommerce-info.njeco-dismissed {
    animation: none !important;
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info {
    border: 1px solid rgba(31, 111, 43, 0.2) !important;
    border-top: 3px solid #34A42E !important;
    border-radius: 8px;
}


/* ============================================
   PATCH V3 CHECKOUT - NosJardinsEco
   Date : 13 avril 2026
   1. Contenir la largeur de la page commande
   2. Masquer image parasite dans le resume
   ============================================ */

.wp-block-woocommerce-checkout.alignwide {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.wc-block-components-product-metadata__description img {
    display: none !important;
}

.wc-block-components-product-metadata__description:empty {
    display: none !important;
}

@media (max-width: 980px) {
    .wp-block-woocommerce-checkout.alignwide {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* ============================================
   PATCH V1 FIX — bouton + coupé (Android/Chrome)
   Date : 17 avril 2026
   Cause : .nje-qty avait min-width:0 + overflow:hidden
   → le flex container se compressait en dessous de son
     contenu (32+46+32px) et clipait le bouton +
   ============================================ */

body.woocommerce-cart .nje-qty {
    min-width: 110px !important; /* 32 + 46 + 32 */
}

@media (max-width: 768px) {
    body.woocommerce-cart .nje-qty {
        min-width: 96px !important; /* 28 + 40 + 28 */
    }
}

@media (max-width: 480px) {
    body.woocommerce-cart .nje-qty {
        min-width: 86px !important; /* 26 + 34 + 26 */
    }
}
