/* Cart layout */
.vsc-cart-styled .vsc-cart-grid {
    display: grid;
    grid-template-columns:
        minmax(0,var(--vsc-cart-left,65fr))
        minmax(0,var(--vsc-cart-right,35fr));
    gap: var(--vsc-section-gap,24px);
    align-items: start;
}
.vsc-cart-styled.vsc-cart-one .vsc-cart-grid {
    grid-template-columns: minmax(0,1fr);
}
.vsc-cart-styled .vsc-cart-grid > :not(.woocommerce-cart-form):not(.cart-collaterals) {
    grid-column: 1 / -1;
}
.vsc-cart-styled .woocommerce-cart-form,
.vsc-cart-styled .cart-collaterals {
    padding: var(--vsc-pad,24px);
    background: var(--vsc-card,#fff);
    border: 1px solid var(--vsc-border,#ae8a53);
    border-radius: var(--vsc-radius,8px);
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    float: none !important;
}
.vsc-cart-styled .cart_totals {
    width: 100% !important;
    float: none !important;
    margin: 0;
}
.vsc-cart-styled h2 {
    font-size: var(--vsc-heading-size,24px) !important;
    font-weight: 600;
    color: var(--vsc-text,#06343a);
    line-height: 1.3;
    margin: 0 0 var(--vsc-gap,16px);
}

/* Product table */
.vsc-cart-styled .woocommerce-cart-form table.shop_table {
    border: 0 !important;
    border-collapse: collapse;
    width: 100%;
    margin: 0 !important;
    font-size: var(--vsc-summary-size,14px);
}
.vsc-cart-styled .woocommerce-cart-form th,
.vsc-cart-styled .woocommerce-cart-form td {
    border: 0;
    border-bottom: 1px solid var(--vsc-divider,#dedede);
    padding: 16px 8px;
    vertical-align: middle;
    background: transparent !important;
    color: var(--vsc-text,#06343a);
    overflow-wrap: anywhere;
}
.vsc-cart-styled .woocommerce-cart-form th {
    font-size: var(--vsc-meta-size,12px);
    font-weight: 600;
    color: var(--vsc-muted,#687472);
    text-align: left;
}
.vsc-cart-styled .woocommerce-cart-form th:first-child,
.vsc-cart-styled .woocommerce-cart-form td:first-child {
    padding-left: 0;
}
.vsc-cart-styled .woocommerce-cart-form th:last-child,
.vsc-cart-styled .woocommerce-cart-form td:last-child {
    padding-right: 0;
    text-align: right;
}
.vsc-cart-styled .product-thumbnail {
    width: var(--vsc-thumb,72px);
    min-width: 40px;
}
.vsc-cart-styled .product-thumbnail img {
    width: var(--vsc-thumb,72px) !important;
    max-width: 100% !important;
    height: var(--vsc-thumb,72px) !important;
    object-fit: contain;
    border-radius: 6px;
}
.vsc-cart-styled .product-name,
.vsc-cart-styled .product-name a {
    font-size: var(--vsc-product-size,16px);
    font-weight: 500;
    color: var(--vsc-text,#06343a);
    text-decoration: none;
}
.vsc-cart-styled .variation {
    font-size: var(--vsc-meta-size,12px);
    margin: 6px 0 0 !important;
}

/* Remove icon */
.vsc-cart-styled td.product-remove {
    width: 40px;
    text-align: right !important;
}
.vsc-cart-styled td.product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 44px !important;
    padding: 0;
    color: var(--vsc-muted,#687472) !important;
    background: transparent !important;
    text-decoration: none !important;
}
.vsc-cart-styled td.product-remove a.remove:hover {
    color: #a12525 !important;
}
.vsc-cart-styled td.product-remove svg {
    display: block;
    flex-shrink: 0;
}

/* Quantity and coupon */
.vsc-cart-styled .qty,
.vsc-cart-styled #coupon_code {
    min-height: var(--vsc-height,48px);
    padding: var(--vsc-input-py,10px) var(--vsc-input-px,12px) !important;
    font-size: var(--vsc-input-size,14px) !important;
    color: var(--vsc-input-text,#06343a);
    border: 1px solid var(--vsc-border,#ae8a53) !important;
    border-radius: var(--vsc-radius,8px);
    background: var(--vsc-input,#fff);
    box-sizing: border-box;
}
.vsc-cart-styled .qty {
    width: 66px !important;
    text-align: center;
}
.vsc-cart-styled .actions {
    padding-top: 20px !important;
    border: 0 !important;
}
.vsc-cart-styled .coupon {
    float: none !important;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.vsc-cart-styled #coupon_code {
    float: none !important;
    flex: 1;
    min-width: 90px;
    width: 140px !important;
    max-width: 100%;
    margin: 0 !important;
}
.vsc-cart-styled .vsc-coupon-label {
    flex-basis: 100%;
    font-size: var(--vsc-label-size,14px);
    font-weight: var(--vsc-label-weight,600);
    color: var(--vsc-label-colour,#6b7280);
    text-align: left;
}
.vsc-cart-styled .coupon .coupon-error-notice {
    flex-basis: 100%;
    text-align: left;
}

/* Buttons */
.vsc-cart-styled .button {
    background: var(--vsc-accent,#633817) !important;
    color: var(--vsc-button-text,#fff) !important;
    border: 0 !important;
    border-radius: var(--vsc-radius,8px) !important;
    padding: 12px 16px !important;
    font-size: var(--vsc-button-size,16px) !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    min-height: 44px;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    white-space: normal;
}
.vsc-cart-styled .button:disabled {
    opacity: .5 !important;
    cursor: default;
}
.vsc-cart-styled button[name=update_cart] {
    float: none !important;
    width: auto !important;
    background: transparent !important;
    color: var(--vsc-text,#06343a) !important;
    border: 1px solid var(--vsc-border,#ae8a53) !important;
}
.vsc-cart-styled .wc-proceed-to-checkout {
    padding: 20px 0 0 !important;
}
.vsc-cart-styled .checkout-button {
    display: block;
    width: 100%;
    margin: 0 !important;
}

/* Shipping and supporting links */
.vsc-cart-styled .cart_totals ul#shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
}
.vsc-cart-styled .shipping-calculator-form {
    max-width: 100%;
    text-align: left;
}
.vsc-cart-styled .shipping-calculator-form input,
.vsc-cart-styled .shipping-calculator-form select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: var(--vsc-input-size,14px);
}
.vsc-cart-styled .woocommerce-remove-coupon {
    font-size: var(--vsc-meta-size,12px);
    color: var(--vsc-muted,#687472);
    margin-left: 4px;
}
.vsc-cart .vsc-continue {
    display: inline-block;
    margin-top: 20px;
    color: var(--vsc-text,#06343a);
    font-size: var(--vsc-summary-size,14px);
    text-underline-offset: 4px;
}
.vsc-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--vsc-card,#fff);
    border: 1px solid var(--vsc-border,#ae8a53);
    border-radius: var(--vsc-radius,8px);
}

/* Responsive layout */
@media (min-width: 1001px) {
    .vsc-cart-styled.vsc-cart-sticky:not(.vsc-cart-one) .cart-collaterals {
        position: sticky;
        top: 24px;
    }
}
@media (max-width: 1000px) {
    .vsc-cart-styled .vsc-cart-grid {
        grid-template-columns: minmax(0,1fr);
    }
}
@media (max-width: 768px) {
    .vsc-cart-styled .woocommerce-cart-form table,
    .vsc-cart-styled .woocommerce-cart-form tbody,
    .vsc-cart-styled .woocommerce-cart-form tr,
    .vsc-cart-styled .woocommerce-cart-form .actions {
        display: block !important;
        width: 100%;
    }
    .vsc-cart-styled .woocommerce-cart-form thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
    }
    .vsc-cart-styled .woocommerce-cart-form tr.cart_item {
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr)) 40px;
        gap: 12px 8px;
        margin-bottom: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--vsc-divider,#dedede);
        align-items: center;
    }
    .vsc-cart-styled .woocommerce-cart-form tr.cart_item td {
        display: block !important;
        width: auto;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }
    .vsc-cart-styled .woocommerce-cart-form .product-thumbnail {
        grid-column: 1;
        grid-row: 1;
    }
    .vsc-cart-styled .woocommerce-cart-form .product-name {
        grid-column: 2 / -1;
        grid-row: 1;
    }
    .vsc-cart-styled .woocommerce-cart-form .product-price {
        grid-column: 1;
        grid-row: 2;
    }
    .vsc-cart-styled .woocommerce-cart-form .product-quantity {
        grid-column: 2;
        grid-row: 2;
    }
    .vsc-cart-styled .woocommerce-cart-form .product-subtotal {
        grid-column: 3;
        grid-row: 2;
    }
    .vsc-cart-styled .woocommerce-cart-form tr.cart_item .product-remove {
        grid-column: 4;
        grid-row: 2;
        justify-self: end;
    }
    .vsc-cart-styled .woocommerce-cart-form td::before {
        display: none !important;
    }
    .vsc-cart-styled .woocommerce-cart-form .product-price::before,
    .vsc-cart-styled .woocommerce-cart-form .product-quantity::before,
    .vsc-cart-styled .woocommerce-cart-form .product-subtotal::before {
        content: attr(data-title);
        display: block !important;
        float: none !important;
        font-size: var(--vsc-meta-size,12px);
        font-weight: 500;
        color: var(--vsc-muted,#687472);
        margin-bottom: 7px;
    }
    .vsc-cart-styled .woocommerce-cart-form .qty {
        width: 100% !important;
        max-width: 66px;
    }
    .vsc-cart.vsc-no-thumbnails .woocommerce-cart-form .product-name {
        grid-column: 1 / -1;
    }
    .vsc-cart.vsc-no-label-price .woocommerce-cart-form .product-price::before,
    .vsc-cart.vsc-no-label-quantity .woocommerce-cart-form .product-quantity::before,
    .vsc-cart.vsc-no-label-line_subtotal .woocommerce-cart-form .product-subtotal::before {
        display: none !important;
    }
}
.vsc-cart.vsc-no-thumbnails .woocommerce-cart-form .product-thumbnail,
.vsc-cart.vsc-no-unit-price .woocommerce-cart-form .product-price,
.vsc-cart.vsc-no-remove .woocommerce-cart-form .product-remove {
    display: none !important;
}