/* NC Home Market 2.3.8 — coherent cart, checkout and single product actions. */
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .quantity:has(input.qty[type="number"]){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:130px!important;min-width:130px!important;max-width:130px!important;
 height:40px!important;margin:0!important;padding:0!important;
 overflow:hidden!important;border:1px solid #dae1e6!important;border-radius:10px!important;background:#fff!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .quantity input.qty[type="number"]{
 appearance:textfield!important;-moz-appearance:textfield!important;
 width:46px!important;min-width:0!important;flex:1!important;height:38px!important;min-height:38px!important;
 padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 font-size:14px!important;text-align:center!important;background:#fff!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .quantity input.qty::-webkit-inner-spin-button,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .quantity .nch-qty-step{
 display:grid!important;place-items:center!important;flex:0 0 37px!important;width:37px!important;height:38px!important;
 border:0!important;border-radius:0!important;background:#fff!important;color:#293742!important;
 padding:0!important;margin:0!important;font-size:21px!important;font-weight:400!important;line-height:1!important;
 cursor:pointer!important;box-shadow:none!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .quantity .nch-qty-step:hover{background:#fff4f4!important;color:var(--ncsm-primary,#c1121f)!important}

/* Compact outline actions. Exclude stepper and controls that are not purchase actions. */
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form button[name="apply_coupon"],
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form button[name="update_cart"],
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form .coupon .button,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .wc-proceed-to-checkout a.checkout-button,
body.ncsm-theme.woocommerce-checkout .ncsm-classic-transaction #payment #place_order,
body.ncsm-theme.single-product .ncas-cart-wrap .single_add_to_cart_button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:auto!important;max-width:100%!important;min-width:0!important;
 height:auto!important;min-height:40px!important;padding:9px 17px!important;
 border:2px solid var(--ncsm-primary,#c1121f)!important;border-radius:10px!important;background:#fff!important;
 color:var(--ncsm-primary,#c1121f)!important;font-size:13px!important;font-weight:600!important;line-height:1.25!important;
 text-decoration:none!important;white-space:normal!important;text-align:center!important;box-shadow:none!important;
 transition:background .2s ease,color .2s ease,border-color .2s ease!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form button[name="apply_coupon"]:hover,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form button[name="update_cart"]:hover,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form .coupon .button:hover,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .wc-proceed-to-checkout a.checkout-button:hover,
body.ncsm-theme.woocommerce-checkout .ncsm-classic-transaction #payment #place_order:hover,
body.ncsm-theme.single-product .ncas-cart-wrap .single_add_to_cart_button:hover{
 border-color:var(--ncsm-primary,#c1121f)!important;background:#fff4f5!important;color:var(--ncsm-primary,#c1121f)!important;
}
/* Disabled update still reads as a disabled action, not a filled rectangle. */
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form button[name="update_cart"]:disabled,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form button[name="update_cart"][disabled]{
 opacity:.48!important;border-color:#d4a3a7!important;color:#ae777b!important;background:#fff!important;cursor:not-allowed!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .wc-proceed-to-checkout a.checkout-button,
body.ncsm-theme.woocommerce-checkout .ncsm-classic-transaction #payment #place_order{width:100%!important;min-height:44px!important;}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form .actions{vertical-align:middle!important}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form .coupon{gap:10px!important}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form .coupon input{min-height:40px!important}
@media(max-width:680px){
 body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form .coupon button,
 body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .woocommerce-cart-form button[name="update_cart"]{
  padding:9px 12px!important;font-size:12px!important;
 }
 body.ncsm-theme.single-product .ncas-cart-wrap .single_add_to_cart_button{padding:9px 15px!important;font-size:13px!important}
}


/* 2.4.1 — three precisely scoped fixes; preserve everything else. */
/* Single-product CTA must match the adjacent 41px quantity stepper. */
body.ncsm-theme.single-product .ncas-cart-wrap form.cart button.single_add_to_cart_button,
body.ncsm-theme.single-product .ncss-purchase-box form.cart button.single_add_to_cart_button,
body.ncsm-theme.single-product .summary form.cart button.single_add_to_cart_button{
  box-sizing:border-box!important;height:41px!important;min-height:41px!important;max-height:41px!important;
  width:auto!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0 20px!important;flex:0 0 auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:2px solid var(--ncsm-primary,#c1121f)!important;border-radius:9px!important;
  background:#fff!important;background-image:none!important;
  color:var(--ncsm-primary,#c1121f)!important;-webkit-text-fill-color:var(--ncsm-primary,#c1121f)!important;
  font-size:13px!important;font-weight:600!important;line-height:1!important;
  box-shadow:none!important;text-align:center!important;
}
/* Checkout CTA: full card width, centered label, compact 41px height. */
body.ncsm-theme.woocommerce-checkout .ncsm-classic-transaction #payment .place-order{
  display:block!important;width:100%!important;max-width:100%!important;
  padding:16px 0 0!important;margin:16px 0 0!important;
  box-sizing:border-box!important;
}
body.ncsm-theme.woocommerce-checkout .ncsm-classic-transaction #payment #place_order{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:100%!important;max-width:100%!important;
  height:41px!important;min-height:41px!important;max-height:41px!important;
  margin:0!important;padding:0 15px!important;
  border:2px solid var(--ncsm-primary,#c1121f)!important;border-radius:9px!important;
  background:#fff!important;background-image:none!important;
  color:var(--ncsm-primary,#c1121f)!important;-webkit-text-fill-color:var(--ncsm-primary,#c1121f)!important;
  text-align:center!important;font-size:13px!important;font-weight:600!important;line-height:1!important;
  float:none!important;box-shadow:none!important;opacity:1!important;
}
/* Cart checkout CTA: full width of the right-hand totals card. */
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .wc-proceed-to-checkout{
  width:100%!important;display:block!important;padding:0!important;margin:16px 0 0!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .wc-proceed-to-checkout a.checkout-button{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:100%!important;max-width:100%!important;
  height:41px!important;min-height:41px!important;max-height:41px!important;
  padding:0 12px!important;margin:0!important;
  border:2px solid var(--ncsm-primary,#c1121f)!important;border-radius:9px!important;
  background:#fff!important;background-image:none!important;
  color:var(--ncsm-primary,#c1121f)!important;-webkit-text-fill-color:var(--ncsm-primary,#c1121f)!important;
  font-size:13px!important;line-height:1!important;font-weight:600!important;text-align:center!important;
  box-shadow:none!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .wc-proceed-to-checkout a.checkout-button:hover,
body.ncsm-theme.woocommerce-checkout .ncsm-classic-transaction #payment #place_order:hover,
body.ncsm-theme.single-product .summary form.cart button.single_add_to_cart_button:hover{
  background:#fff4f5!important;color:var(--ncsm-primary,#c1121f)!important;-webkit-text-fill-color:var(--ncsm-primary,#c1121f)!important;
}


/* 2.4.2 - single product: restore original 170px width; only quantity-matched height. */
body.ncsm-theme.single-product .ncas-cart-wrap form.cart button.single_add_to_cart_button,
body.ncsm-theme.single-product .ncss-purchase-box form.cart button.single_add_to_cart_button,
body.ncsm-theme.single-product .summary form.cart button.single_add_to_cart_button{
  width:170px!important;min-width:170px!important;max-width:170px!important;
  flex:0 0 170px!important;
  height:41px!important;min-height:41px!important;max-height:41px!important;
  padding:0 16px!important;
}
/* 2.4.2 - fix cart coupon/update text even when Woo forces WebKit white fill. */
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions .coupon button[name="apply_coupon"],
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions .coupon .button,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions button[name="update_cart"]{
  color:var(--ncsm-primary,#c1121f)!important;-webkit-text-fill-color:var(--ncsm-primary,#c1121f)!important;
  background:#fff!important;background-image:none!important;
  border:2px solid var(--ncsm-primary,#c1121f)!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions .coupon button[name="apply_coupon"] *,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions .coupon .button *,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions button[name="update_cart"] *{
  color:inherit!important;-webkit-text-fill-color:inherit!important;
}
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions button[name="update_cart"]:disabled,
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction table.shop_table.cart td.actions button[name="update_cart"][disabled]{
  color:#a8666c!important;-webkit-text-fill-color:#a8666c!important;
  background:#fff!important;border-color:#ddb7ba!important;
  opacity:.7!important;cursor:not-allowed!important;
}
@media(max-width:600px){
 body.ncsm-theme.single-product .ncas-cart-wrap form.cart button.single_add_to_cart_button,
 body.ncsm-theme.single-product .ncss-purchase-box form.cart button.single_add_to_cart_button,
 body.ncsm-theme.single-product .summary form.cart button.single_add_to_cart_button{
   width:170px!important;min-width:0!important;max-width:calc(100% - 135px)!important;
   flex:0 1 170px!important;
 }
}
