.woocommerce-cart-form {
    --lmb-cart-accent: var(--e-global-color-primary, var(--wp--preset--color--primary, #2271b1));
    --lmb-cart-border: #ddd8d6;
    --lmb-cart-muted: #646970;
    --lmb-cart-surface: #fbfbfc;
}

.woocommerce-cart-form table.shop_table tbody tr.lmb-cart-bundle-member--representative > td {
    background: var(--lmb-cart-surface);
    border-block-end: 1px solid var(--lmb-cart-border);
    border-block-start: 1px solid var(--lmb-cart-border);
    vertical-align: middle;
}

.woocommerce-cart-form tr.lmb-cart-bundle-member--representative > td.product-name {
    padding-block: 1rem !important;
}

.lmb-cart-bundle {
    color: inherit;
    display: grid;
    gap: .7rem;
    margin-inline: 0;
}

.lmb-cart-bundle__heading {
    align-items: center;
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    line-height: 1.35;
    min-inline-size: 0;
}

.lmb-cart-bundle__heading strong {
    color: inherit;
    font-size: 1.02em;
}

.lmb-cart-bundle__items {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    margin-inline: 0;
    padding: 0;
}

.lmb-cart-bundle__item {
    align-items: center;
    border-block-start: 1px solid var(--lmb-cart-border);
    display: grid;
    gap: .7rem;
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    min-width: 0;
    padding-block: .6rem;
}

.lmb-cart-bundle__item-image {
    align-items: center;
    display: flex;
    justify-content: center;
}

.lmb-cart-bundle__item-image img {
    border-radius: 4px;
    display: block;
    height: 40px;
    object-fit: contain;
    width: 40px;
}

.lmb-cart-bundle__item-content {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.lmb-cart-bundle__item-name {
    font-weight: 650;
    line-height: 1.35;
}

.lmb-cart-bundle__item-variation {
    color: var(--lmb-cart-muted);
    font-size: .86em;
    line-height: 1.4;
}

.lmb-cart-bundle__item-price {
    font-size: .92em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lmb-cart-bundle__quantity {
    align-items: center;
    border: 1px solid var(--lmb-cart-border);
    display: inline-flex;
    justify-content: center;
    min-block-size: 38px;
    min-inline-size: 38px;
}

.woocommerce-cart-form table.shop_table th.product-remove,
.woocommerce-cart-form table.shop_table td.product-remove {
    inline-size: 4.5rem;
    max-inline-size: 4.5rem;
    padding-inline: .35rem !important;
    text-align: center;
    width: 4.5rem;
}

.woocommerce-cart-form table.shop_table th.product-thumbnail,
.woocommerce-cart-form table.shop_table td.product-thumbnail {
    inline-size: 4rem;
    max-inline-size: 4rem;
    padding-inline: .35rem !important;
    width: 4rem;
}

.woocommerce-cart-form table.shop_table td.product-thumbnail img {
    block-size: auto;
    inline-size: 3.25rem;
    max-inline-size: 100%;
}

.lmb-cart-remove-control {
    align-items: center;
    display: inline-grid;
    gap: .3rem;
    inline-size: 4.5rem;
    justify-items: center;
    max-inline-size: 100%;
}

.lmb-cart-remove-control--inline {
    flex: 0 0 3.25rem;
    inline-size: 3.25rem;
}

.lmb-cart-remove-control--mobile {
    display: none;
}

.woocommerce-cart-form a.remove.lmb-cart-remove__icon {
    margin: 0;
}

.woocommerce-cart-form a.remove.lmb-cart-remove__icon:hover {
    color: var(--lmb-cart-accent) !important;
}

.woocommerce-cart-form a.remove.lmb-cart-remove__icon:focus-visible {
    outline: 3px solid var(--lmb-cart-accent);
    outline-offset: 3px;
}

.lmb-cart-remove__label {
    color: var(--lmb-cart-muted);
    font-size: .75rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: center;
}

.woocommerce-cart-form table.shop_table tbody tr.lmb-cart-bundle-member--expanded > td.product-remove,
.woocommerce-cart-form table.shop_table tbody tr.lmb-cart-bundle-member--expanded > td.product-thumbnail {
    display: none !important;
}

.woocommerce-cart-form table.shop_table tbody tr.lmb-cart-bundle-member--expanded > td.product-name {
    box-sizing: border-box;
    inline-size: auto;
    width: auto;
}

@media (max-width: 768px) {
    .woocommerce-cart-form table.shop_table tbody tr.cart_item {
        border: 1px solid var(--lmb-cart-border);
        border-radius: 8px;
        box-sizing: border-box;
        display: grid !important;
        grid-template-columns: 3.75rem minmax(0, 1fr);
        inline-size: 100%;
        margin-block-end: .85rem;
        padding: .75rem;
        position: relative;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td {
        background: transparent;
        border: 0;
        box-sizing: border-box;
        grid-column: 1 / -1;
        inline-size: 100% !important;
        margin: 0 !important;
        max-inline-size: none;
        text-align: initial !important;
        width: 100% !important;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-remove {
        display: none !important;
        padding: 0 !important;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-thumbnail {
        align-items: flex-start;
        display: flex !important;
        grid-column: 1;
        grid-row: 1;
        inline-size: auto !important;
        justify-content: center;
        max-inline-size: none;
        padding: .25rem 0 .75rem !important;
        width: auto !important;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-thumbnail img {
        inline-size: 3rem;
        max-inline-size: 3rem;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-name {
        display: block !important;
        grid-column: 2;
        grid-row: 1;
        min-block-size: 3.75rem;
        min-inline-size: 0;
        overflow-wrap: anywhere;
        padding-block: .25rem .75rem !important;
        padding-inline: .75rem !important;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-remove::before,
    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-thumbnail::before,
    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-name::before {
        content: none !important;
        display: none !important;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-price,
    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-quantity,
    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-subtotal {
        align-items: center;
        border-block-start: 1px solid var(--lmb-cart-border);
        display: flex !important;
        justify-content: space-between;
        min-block-size: 3rem;
        padding: .6rem 0 !important;
    }

    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-price::before,
    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-quantity::before,
    .woocommerce-cart-form table.shop_table tbody tr.cart_item > td.product-subtotal::before {
        float: none;
        margin: 0;
    }

    .woocommerce-cart-form table.shop_table tbody tr.lmb-cart-bundle-member--representative {
        background: var(--lmb-cart-surface);
    }

    .woocommerce-cart-form table.shop_table tbody tr.lmb-cart-bundle-member--representative > td.product-thumbnail {
        display: none !important;
    }

    .woocommerce-cart-form table.shop_table tbody tr.lmb-cart-bundle-member--representative > td.product-name {
        grid-column: 1 / -1;
        padding-block: .25rem .85rem !important;
        padding-inline: 0 !important;
    }

    .lmb-cart-product-heading {
        align-items: flex-start;
        display: flex;
        gap: .75rem;
        justify-content: space-between;
        min-inline-size: 0;
    }

    .lmb-cart-product-heading__name {
        min-inline-size: 0;
    }

    .lmb-cart-remove-control--mobile {
        display: inline-grid;
        flex: 0 0 3.25rem;
        inline-size: 3.25rem;
    }

    .lmb-cart-bundle__item {
        align-items: start;
        grid-template-areas:
            "image content"
            "image price";
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .lmb-cart-bundle__item-image {
        grid-area: image;
    }

    .lmb-cart-bundle__item-image img {
        height: 36px;
        width: 36px;
    }

    .lmb-cart-bundle__item-content {
        grid-area: content;
    }

    .lmb-cart-bundle__item-price {
        grid-area: price;
    }

    .woocommerce-cart-form table.shop_table th.product-remove,
    .lmb-cart-remove-control {
        inline-size: 4rem;
        width: 4rem;
    }

    .woocommerce-cart-form table.shop_table th.product-thumbnail {
        inline-size: 3.5rem;
        width: 3.5rem;
    }
}
