/* NTV COMMERCE v7 — exclusively WooCommerce cart and checkout. */
:root { --ntv-green:#369e13; --ntv-orange:#f47d0b; --ntv-ink:#233047; --ntv-muted:#687487; --ntv-border:#e3e9e2; --ntv-bg:#f8faf8; }
body.woocommerce-cart #main,body.woocommerce-checkout:not(.woocommerce-order-received) #main{background:var(--ntv-bg)}
body.woocommerce-cart .page-wrapper,body.woocommerce-checkout:not(.woocommerce-order-received) .page-wrapper{padding-top:24px;padding-bottom:55px}
body.woocommerce-cart .woocommerce,body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce{color:var(--ntv-ink);font-size:15px}
/* Preserve semantic native tables and eliminate inherited global table min-width/scroll forcing. */
body.woocommerce-cart .woocommerce table.shop_table,body.woocommerce-checkout .woocommerce table.shop_table{display:table!important;table-layout:auto!important;overflow:visible!important;white-space:normal!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;background:transparent!important;border-collapse:collapse!important;box-shadow:none!important}
body.woocommerce-cart .woocommerce table.shop_table th,body.woocommerce-cart .woocommerce table.shop_table td,body.woocommerce-checkout .woocommerce table.shop_table th,body.woocommerce-checkout .woocommerce table.shop_table td{display:table-cell;min-width:0!important;width:auto;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;border:0!important;border-bottom:1px solid var(--ntv-border)!important;padding:14px 10px!important;vertical-align:middle!important;background:transparent!important;line-height:1.5!important;color:var(--ntv-ink)}
body.woocommerce-cart .woocommerce table.shop_table th,body.woocommerce-checkout .woocommerce table.shop_table th{font-size:13px;font-weight:750!important;letter-spacing:.02em;text-transform:uppercase}
body.woocommerce-cart .woocommerce table.shop_table td.product-price,body.woocommerce-cart .woocommerce table.shop_table td.product-subtotal,body.woocommerce-cart .woocommerce table.shop_table .amount,body.woocommerce-checkout .woocommerce table.shop_table .amount{color:#1655c3;font-weight:750}
/* Cart: natural page scroll, shorter column remains sticky; no nested scrollbars. */
@media(min-width:1024px){
 body.woocommerce-cart .woocommerce-cart-form{position:sticky!important;top:105px;max-height:calc(100vh - 125px);overflow:auto!important;align-self:start;scrollbar-width:thin}
 body.woocommerce-cart .cart-collaterals{position:sticky!important;top:105px;max-height:calc(100vh - 125px);overflow:auto!important;align-self:start;scrollbar-width:thin}
 body.woocommerce-cart .woocommerce .row,body.woocommerce-cart .woocommerce .cart-wrapper{align-items:start!important}
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column{align-items:start!important;overflow:visible!important}
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-column--left,
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-column--right{position:sticky!important;top:105px;max-height:calc(100vh - 125px);overflow:auto!important;align-self:start;scrollbar-width:thin;overscroll-behavior:contain}
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-order-sticky{position:static!important;top:auto!important}
}
body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,
body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-column{background:#fff!important;border:1px solid var(--ntv-border)!important;border-radius:14px!important;box-shadow:0 6px 24px rgba(20,53,24,.055)!important;padding:24px!important;min-width:0!important}
body.woocommerce-cart .cart-collaterals .cart_totals{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
body.woocommerce-cart .cart_totals>h2,body.woocommerce-checkout #order_review_heading,body.woocommerce-checkout .hvt-checkout-column h3{font-size:19px!important;font-weight:750!important;line-height:1.4!important;color:var(--ntv-ink)!important;margin:0 0 16px!important}
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img{width:72px!important;max-width:72px!important;height:auto;object-fit:contain}
body.woocommerce-cart .woocommerce-cart-form .product-name a{color:#1553b4!important;font-weight:600;line-height:1.55}
body.woocommerce-cart .woocommerce-cart-form td.product-remove a.remove{border:1px solid #d4dce1!important;color:#8996a2!important;border-radius:100%!important}
body.woocommerce-cart .quantity,body.woocommerce-checkout .quantity{max-width:165px;display:inline-flex;align-items:center;justify-content:center}
body.woocommerce-cart .quantity input.qty,body.woocommerce-checkout .quantity input.qty{height:38px!important;width:54px!important;max-width:54px!important;box-shadow:none!important;border:1px solid var(--ntv-border)!important;border-radius:7px!important;text-align:center}
body.woocommerce-cart .button.checkout-button,body.woocommerce-cart .wc-proceed-to-checkout .button,body.woocommerce-checkout #place_order{background:var(--ntv-orange)!important;border:none!important;color:#fff!important;border-radius:9px!important;font-weight:750!important;font-size:15px!important;min-height:48px!important;box-shadow:none!important;text-transform:uppercase}
body.woocommerce-cart .button.checkout-button:hover,body.woocommerce-checkout #place_order:hover{background:#dc6700!important}
body.woocommerce-cart .cart_totals .order-total th,body.woocommerce-cart .cart_totals .order-total td,body.woocommerce-checkout .order-total th,body.woocommerce-checkout .order-total td{font-weight:800!important;font-size:17px!important}
body.woocommerce-cart .woocommerce-shipping-destination,body.woocommerce-cart .shipping-calculator-button,body.woocommerce-checkout .woocommerce-shipping-destination{font-size:13px;line-height:1.65}
body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr)!important;gap:22px!important;align-items:start!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-column--left{border-right:1px solid var(--ntv-border)!important}
body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-column--right{background:#fff!important}
body.woocommerce-checkout .woocommerce-input-wrapper input.input-text,body.woocommerce-checkout .woocommerce-input-wrapper textarea,body.woocommerce-checkout .woocommerce-input-wrapper select{border:1px solid #dbe3dc!important;border-radius:8px!important;box-shadow:none!important;min-height:42px!important;padding:10px 12px!important}
body.woocommerce-checkout .woocommerce-input-wrapper input.input-text:focus,body.woocommerce-checkout .woocommerce-input-wrapper textarea:focus{border-color:var(--ntv-green)!important;outline:2px solid rgba(54,158,19,.12)}
body.woocommerce-checkout .form-row label{font-weight:650!important;font-size:14px;margin-bottom:5px}
body.woocommerce-checkout .wc_payment_methods{background:#f8faf8!important;border:1px solid var(--ntv-border)!important;border-radius:9px;padding:14px!important}
body.woocommerce-checkout .woocommerce-checkout-payment{background:transparent!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name{text-align:left!important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table td:last-child{text-align:right!important}
@media(max-width:1023px){
 body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,
 body.woocommerce-checkout .hvt-checkout-column--left,body.woocommerce-checkout .hvt-checkout-column--right{position:static!important;max-height:none!important;overflow:visible!important}
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column{display:block!important}
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-column{margin-bottom:18px!important}
}
@media(max-width:549px){
 body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,body.woocommerce-checkout .hvt-checkout-column{padding:14px!important;border-radius:10px!important}
 body.woocommerce-cart .woocommerce-cart-form{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table{min-width:550px!important}
 body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img{width:56px!important}
 body.woocommerce-cart .woocommerce table.shop_table td,body.woocommerce-checkout .woocommerce table.shop_table td{padding:10px 6px!important;font-size:13px}
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column{grid-template-columns:minmax(0,1fr)!important}
}

/* NTV v8: CART/CHECKOUT native page-scrolling sticky, based on real Flatsome DOM. */
@media (min-width:1024px) {
 body.woocommerce-cart .woocommerce.row.row-large.row-divided {align-items:flex-start!important;overflow:visible!important;}
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .col.large-7,
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .cart-collaterals.large-5 {
   position:sticky!important;top:110px!important;align-self:flex-start!important;
   max-height:none!important;overflow:visible!important;transform:none!important;
 }
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .col.large-7 .woocommerce-cart-form,
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .cart-collaterals,
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .cart-collaterals .cart-sidebar {
   position:static!important;top:auto!important;max-height:none!important;
   overflow:visible!important;overscroll-behavior:auto!important;
 }
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column {align-items:flex-start!important;overflow:visible!important;}
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column > .hvt-checkout-column--left,
 body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column > .hvt-checkout-column--right {
   position:sticky!important;top:110px!important;max-height:none!important;overflow:visible!important;
   overscroll-behavior:auto!important;align-self:flex-start!important;
 }
}
/* Single-layer surfaces: eliminate residual green outline, nested border and inset padding. */
body.woocommerce-cart .woocommerce.row.row-large.row-divided > .large-7.col,
body.woocommerce-cart .woocommerce.row.row-large.row-divided > .cart-collaterals.col {
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;padding-top:0!important;padding-bottom:0!important;
}
body.woocommerce-cart .woocommerce.row.row-large.row-divided > .large-7.col {padding-left:10px!important;padding-right:10px!important;}
body.woocommerce-cart .woocommerce.row.row-large.row-divided > .cart-collaterals.col {padding-left:10px!important;padding-right:10px!important;}
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals > .cart-sidebar.col-inner {
 margin:0!important;padding:24px!important;border:1px solid #e2e8e2!important;
 background:#fff!important;border-radius:12px!important;box-shadow:0 5px 22px rgba(15,46,28,.045)!important;
}
body.woocommerce-cart .cart-collaterals .cart_totals {margin:0!important;border:0!important;padding:0!important;box-shadow:none!important;}
body.woocommerce-cart .cart-wrapper,body.woocommerce-cart .sm-touch-scroll {border:0!important;box-shadow:none!important;overflow:visible!important;max-height:none!important;}
body.woocommerce-cart .cart_totals > table:first-child {display:none!important;}
body.woocommerce-cart .cart_totals > h2 {display:block!important;margin:0 0 12px!important;padding:0 0 14px!important;border-bottom:1px solid #e6ebe6!important;}
body.woocommerce-cart .woocommerce.row.row-large.row-divided::before,
body.woocommerce-cart .woocommerce.row.row-large.row-divided::after {box-shadow:none!important;}
body.woocommerce-cart .woocommerce.row.row-large.row-divided > .col::after {border:0!important;box-shadow:none!important;}
body.woocommerce-cart .cart_totals .shipping__inner {padding:10px 0!important;}
body.woocommerce-cart .cart_totals .shipping__table {width:100%!important;min-width:0!important;display:table!important;}
body.woocommerce-cart .cart_totals .shipping__table th {width:35%!important;text-align:left!important;}
body.woocommerce-cart .cart_totals .shipping__table td {text-align:right!important;}
body.woocommerce-checkout:not(.woocommerce-order-received) .hvt-checkout-two-column > .hvt-checkout-column {border:1px solid #e2e8e2!important;box-shadow:0 5px 22px rgba(15,46,28,.045)!important;}
@media(max-width:1023px){
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .col.large-7,
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .cart-collaterals.large-5 {position:static!important;top:auto!important;max-height:none!important;}
}
@media(max-width:549px){
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .col.large-7,
 body.woocommerce-cart .woocommerce.row.row-large.row-divided > .cart-collaterals.col {padding:0 6px 12px!important;}
 body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals > .cart-sidebar.col-inner {padding:12px!important;}
 body.woocommerce-cart .cart-wrapper.sm-touch-scroll {overflow-x:auto!important;}
}
