/* Accessible label visibility */
.vsc-surface .vsc-sr-only,
.vsc-surface.vsc-sr-only,
form.vsc-checkout .vsc-label-hidden > label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
form.vsc-checkout .vsc-no-marker > label .required,
form.vsc-checkout .vsc-no-marker > label .optional {
    display: none !important;
}

/* Shared appearance */
.vsc-surface {
    max-width: var(--vsc-max,1200px);
    margin-left: auto !important;
    margin-right: auto !important;
    min-width: 0;
}
.vsc-surface.vsc-styled,
.vsc-cart-styled {
    font-family: var(--vsc-font,inherit);
    color: var(--vsc-text,#06343a);
}
.vsc-surface input:focus-visible,
.vsc-surface select:focus-visible,
.vsc-surface textarea:focus-visible,
.vsc-surface button:focus-visible,
.vsc-surface a:focus-visible {
    outline: 2px solid var(--vsc-focus,#06343a) !important;
    outline-offset: 3px;
}
form.vsc-checkout.vsc-styled #place_order:hover,
.vsc-cart-styled .button:hover {
    background: var(--vsc-hover,#49270e) !important;
    filter: none !important;
}
.vsc-surface .description,
.vsc-surface #vsc-pin-status,
.vsc-surface .variation {
    color: var(--vsc-muted,#687472) !important;
}

/* Shared Cart and Checkout price summary */
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table,
.vsc-cart-styled .cart_totals table.shop_table {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: auto;
    margin: 0 !important;
    color: var(--vsc-summary-text,#172b35);
}
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table *,
.vsc-cart-styled .cart_totals table.shop_table,
.vsc-cart-styled .cart_totals table.shop_table * {
    box-shadow: none;
}
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table > thead,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table > tbody,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table > tfoot,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table tr,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table th,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table td,
.vsc-cart-styled .cart_totals table.shop_table,
.vsc-cart-styled .cart_totals table.shop_table tbody,
.vsc-cart-styled .cart_totals table.shop_table tr,
.vsc-cart-styled .cart_totals table.shop_table th,
.vsc-cart-styled .cart_totals table.shop_table td {
    border: 0 !important;
}
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table th,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table td,
.vsc-cart-styled .cart_totals table.shop_table th,
.vsc-cart-styled .cart_totals table.shop_table td {
    padding: 9px 0 !important;
    background: transparent !important;
    font-size: var(--vsc-summary-size,14px) !important;
    font-weight: 400 !important;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    color: var(--vsc-summary-text,#172b35);
}
.vsc-cart-styled .cart_totals table.shop_table th {
    width: 60%;
}
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table td:last-child,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table th:last-child,
.vsc-cart-styled .cart_totals table.shop_table td {
    padding-left: 12px !important;
    text-align: right !important;
}

/* Discount amount */
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table .cart-discount td,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table .cart-discount .amount,
.vsc-cart-styled .cart_totals .cart-discount td,
.vsc-cart-styled .cart_totals .cart-discount .amount {
    color: var(--vsc-discount,#008c45) !important;
}

/* Single divider above total */
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table .order-total > th,
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table .order-total > td,
.vsc-cart-styled .cart_totals table.shop_table .order-total > th,
.vsc-cart-styled .cart_totals table.shop_table .order-total > td {
    border-top: 1px solid var(--vsc-divider,#dedede) !important;
    padding-top: 14px !important;
    font-size: var(--vsc-total-size,15px) !important;
    font-weight: 600 !important;
}
.vsc-surface .order-total strong {
    font-size: inherit;
    font-weight: 600;
}

/* Savings message */
form.vsc-checkout.vsc-styled table.woocommerce-checkout-review-order-table .vsc-promo-row > td,
.vsc-cart-styled .cart_totals table.shop_table .vsc-promo-row > td {
    padding: 6px 0 0 !important;
    text-align: center !important;
    width: auto;
}
.vsc-surface.vsc-styled .vsc-promo,
.vsc-cart-styled .vsc-promo {
    background: var(--vsc-offer-bg,#dcfaf0);
    color: var(--vsc-offer-text,#008c45);
    border-radius: var(--vsc-radius,8px);
    padding: 9px 12px;
    font-size: var(--vsc-notice-size,13px);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

/* Keep totals as two aligned columns on mobile */
@media (max-width: 768px) {
    .vsc-cart-styled .cart_totals table {
        display: table !important;
    }
    .vsc-cart-styled .cart_totals tr {
        display: table-row !important;
    }
    .vsc-cart-styled .cart_totals th,
    .vsc-cart-styled .cart_totals td {
        display: table-cell !important;
    }
    .vsc-cart-styled .cart_totals td::before {
        display: none !important;
    }
}