/* Cart only — keep original WooCommerce form, controls and shipping methods. */
body.ncs-compact-cart.woocommerce-cart {--ncs-cart-ink:#332d27;--ncs-cart-muted:#776f66;--ncs-cart-line:#e4ded6;--ncs-cart-green:#36724e;--ncs-cart-accent:#795638;}
body.ncs-compact-cart .cart_totals :is(.cart-three-sidebar-content,.cart-nk__left),body.ncs-compact-cart .cart-nk__left.cart_totals {background:#fff!important;border:1px solid var(--ncs-cart-line)!important;border-radius:12px!important;box-shadow:none!important;padding:20px!important;min-width:0;}
body.ncs-compact-cart .cart-three-sidebar-content > img {display:none!important;}
body.ncs-compact-cart .cart-three-sidebar-content::before,body.ncs-compact-cart .cart-three-sidebar-content::after {display:none!important;content:none!important;}
body.ncs-compact-cart .cart-three-sidebar-content .divider{border:0!important;border-top:1px solid var(--ncs-cart-line)!important;height:0!important;margin:14px 0!important;}
body.ncs-compact-cart .cart-three-sidebar-content .divider::before,body.ncs-compact-cart .cart-three-sidebar-content .divider::after{display:none!important;content:none!important;}
body.ncs-compact-cart .cart_totals .ncs-cart-row {display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;padding:11px 0;border-bottom:1px solid #f0ece7;font-size:13px;font-weight:500;color:var(--ncs-cart-ink);}
body.ncs-compact-cart .cart_totals .ncs-cart-row>span{min-width:0;overflow-wrap:anywhere;}
body.ncs-compact-cart .cart_totals .ncs-cart-saving {color:var(--ncs-cart-green);}
body.ncs-compact-cart .cart_totals .ncs-cart-savings{margin:0 0 10px;}
body.ncs-compact-cart .cart_totals .price,body.ncs-compact-cart .cart_totals .cart-nk__left__subtotal,body.ncs-compact-cart .cart_totals .cart-nk__left__total-price{font-size:13px!important;font-weight:500!important;color:var(--ncs-cart-ink)!important;gap:8px;flex-wrap:wrap;}
body.ncs-compact-cart :is(.woocommerce-cart-form,.cart_totals) :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi) {font-size:14px!important;font-weight:600!important;color:var(--ncs-cart-ink)!important;line-height:1.55!important;white-space:nowrap;unicode-bidi:isolate;font-variant-numeric:tabular-nums;}
body.ncs-compact-cart :is(.woocommerce-cart-form,.cart_totals) .woocommerce-Price-currencySymbol {font-size:11px!important;color:var(--ncs-cart-muted)!important;font-weight:400!important;}
body.ncs-compact-cart .woocommerce-cart-form :is(.ncs-cart-line,.ncs-cart-current,.ncs-cart-line-total,.ncs-cart-item-saving){display:block;font-size:12px!important;line-height:1.7!important;margin:0!important;}
body.ncs-compact-cart .woocommerce-cart-form .ncs-cart-line{display:flex;flex-direction:column;align-items:flex-start;gap:3px;}
body.ncs-compact-cart .woocommerce-cart-form :is(.ncs-cart-line del,.product-price del),body.ncs-compact-cart .woocommerce-cart-form :is(.ncs-cart-line del,.product-price del) * {font-size:12px!important;color:#79736d!important;font-weight:400!important;text-decoration:line-through!important;}
body.ncs-compact-cart :is(.ncs-cart-item-saving,.ncs-cart-saving),body.ncs-compact-cart :is(.ncs-cart-item-saving,.ncs-cart-saving) :is(.woocommerce-Price-amount,.woocommerce-Price-amount bdi,.woocommerce-Price-currencySymbol){color:var(--ncs-cart-green)!important;}
body.ncs-compact-cart .cart_totals :is(.total-price,.order-total){border-top:1px solid var(--ncs-cart-line);padding-top:12px!important;font-weight:700!important;}
body.ncs-compact-cart .cart_totals :is(.total-price,.order-total) .woocommerce-Price-amount bdi{font-size:16px!important;font-weight:700!important;}
body.ncs-compact-cart .wc-proceed-to-checkout a.checkout-button{background:var(--ncs-cart-accent)!important;color:#fff!important;border-radius:8px!important;min-height:44px;font-weight:700!important;box-shadow:none!important;}
body.ncs-compact-cart .cart-three-item .detail .bottom>div:first-child{min-width:0;flex-wrap:wrap;gap:8px;}
body.ncs-compact-cart .cart-three-item .detail .product-subtotal{align-items:flex-start!important;}
@media(max-width:767px){body.ncs-compact-cart .cart_totals :is(.cart-three-sidebar-content,.cart-nk__left),body.ncs-compact-cart .cart-nk__left.cart_totals{padding:14px!important;}body.ncs-compact-cart .cart-three-item .detail .bottom{flex-wrap:wrap;gap:10px;}body.ncs-compact-cart .cart_totals .ncs-cart-row{font-size:12px;}}

/* v1.3: mobile cart rows in normal flow; theme absolute bottom assumes one price. */
@media (max-width: 767px) {
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item {padding:14px!important;border-radius:12px!important;border:1px solid #e4ded6!important;box-shadow:none!important;min-width:0!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item::before,body.ncs-compact-cart .woocommerce-cart-form .cart-three-item::after{display:none!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item > .d-flex.position-relative {display:grid!important;grid-template-columns: minmax(0,84px) minmax(0,1fr);grid-template-rows:auto auto;align-items:start!important;gap:12px!important;padding:0!important;min-width:0!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .image{grid-column:1;grid-row:1;width:100%!important;max-width:84px!important;min-width:0!important;align-self:start;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .image img{width:100%!important;height:84px!important;object-fit:contain;display:block;margin:0!important;border-radius:8px;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail{display:contents!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail .title{grid-column:2;grid-row:1;min-width:0!important;max-height:none!important;height:auto!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.75!important;font-size:13px!important;font-weight:600!important;padding:0 0 0 30px!important;margin:0!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail .title a{white-space:normal!important;overflow-wrap:anywhere;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail > .remove{position:absolute!important;top:0!important;left:0!important;right:auto!important;width:26px;height:30px;z-index:1;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail .bottom{grid-column:1/-1;grid-row:2;position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;gap:10px!important;margin:0!important;padding-top:12px!important;border-top:1px solid #f0ece7;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail .bottom > div:first-child{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail .bottom :is(.product-subtotal,.product-price){position:static!important;display:flex!important;flex-direction:row-reverse!important;justify-content:space-between!important;align-items:flex-start!important;flex-wrap:wrap!important;gap:5px 12px!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;font-size:12px!important;line-height:1.7!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail .bottom :is(.product-subtotal,.product-price) > span {margin:0!important;max-width:100%;text-align:left;font-size:13px!important;line-height:1.65!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .ncs-cart-line {align-items:flex-end!important;gap:4px!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .detail .bottom > .quantity{align-self:flex-end!important;width:max-content!important;max-width:100%!important;margin:0!important;min-height:44px!important;height:auto!important;box-shadow:none!important;border:1px solid #e4ded6;border-radius:8px;padding:4px 10px!important;}
 body.ncs-compact-cart .woocommerce-cart-form .cart-three-item .quantity .qty{min-width:34px!important;min-height:34px!important;line-height:34px!important;}
 /* Style 2: no truncation of titles, and independent rows for price and quantity. */
 body.ncs-compact-cart .cart-nk__items > li.woocommerce-cart-form__cart-item{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px!important;min-width:0;padding:14px!important;}
 body.ncs-compact-cart .cart-nk__items > li .info{width:100%!important;min-width:0;white-space:normal!important;overflow:visible!important;}
 body.ncs-compact-cart .cart-nk__items > li .info .detail{min-width:0;white-space:normal!important;overflow:visible!important;}
 body.ncs-compact-cart .cart-nk__items > li .info .title{white-space:normal!important;overflow-wrap:anywhere;overflow:visible!important;}
 body.ncs-compact-cart .cart-nk__items > li > .product-price{grid-row:2;align-items:flex-start!important;min-width:0;width:100%!important;}
 body.ncs-compact-cart .cart-nk__items > li > .product-quantity{grid-row:3;justify-self:end;margin:0!important;width:max-content!important;max-width:100%;}
}
