/* DELETED FOR 1.8.0: cart-page rules (shop_table.cart, tr.cart_item, ::before PRODUCT labels, cart_totals, cart coupon) stripped from nhc-v16.css. Cart styles live in css/nhc-cart.css only. */
/* ===== NHC Storefront v1.6.0 — ship-same, checkout flatten, footer, cart, thumbs, thank-you ===== */

/* --- 1. Ship-same inverted checkbox UI --- */
.nhc-hide-native-ship-diff,
#ship-to-different-address.nhc-hide-native-ship-diff,
.woocommerce-shipping-fields > h3#ship-to-different-address,
.woocommerce-shipping-fields .woocommerce-form__label-for-checkbox.nhc-hide-native-ship-diff,
.wcf-embed-checkout-form .woocommerce-shipping-fields > h3#ship-to-different-address,
.wcf-embed-checkout-form #ship-to-different-address .woocommerce-form__label-for-checkbox{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
/* Keep Woo checkbox in DOM but invisible (WC still reads it) */
.nhc-woo-ship-diff-cb{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.nhc-ship-same-row{
  margin:8px 0 14px!important;
  padding:0!important;
}
.nhc-ship-same-label{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  font:600 14px/1.4 Figtree,system-ui,sans-serif!important;
  color:#24382e!important;
  cursor:pointer!important;
}
.nhc-ship-same-label input{
  margin-top:3px!important;
  flex:0 0 auto!important;
}
.nhc-ship-mirror{
  background:#f8f3e9!important;
  border:1px solid #ddd4c4!important;
  border-radius:14px!important;
  padding:14px 16px!important;
  margin:0 0 16px!important;
  color:#514a42!important;
  font:500 14px/1.45 Figtree,system-ui,sans-serif!important;
}
.nhc-ship-mirror-note{
  margin:0 0 8px!important;
  font:700 12px Figtree,sans-serif!important;
  letter-spacing:.4px!important;
  text-transform:uppercase!important;
  color:#c6a048!important;
}
.nhc-ship-mirror-body > div{margin:0 0 2px}
.nhc-ship-mirror-empty{margin:0;color:#6f675c;font-style:italic}
.nhc-ship-fields-hidden{display:none!important}

/* My Account addresses: side-by-side desktop, stack mobile; copy billing */
body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.u-columns,
body.woocommerce-account .woocommerce-Addresses.col2-set{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
  width:100%!important;
  float:none!important;
}
body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .woocommerce-Address.col-1,
body.woocommerce-account .woocommerce-Address.col-2,
body.woocommerce-account .u-column1.woocommerce-Address,
body.woocommerce-account .u-column2.woocommerce-Address{
  width:100%!important;
  max-width:none!important;
  float:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.nhc-copy-billing-wrap{margin:0 0 14px!important}
.nhc-copy-billing-wrap .nhc-copy-billing,
button.nhc-copy-billing{
  background:#2f4a3c!important;
  color:#f4efe4!important;
  border:0!important;
  border-radius:12px!important;
  font:700 13px Figtree,sans-serif!important;
  padding:10px 14px!important;
  cursor:pointer!important;
}
@media (max-width:767px){
  body.woocommerce-account .woocommerce-Addresses,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.u-columns,
  body.woocommerce-account .woocommerce-Addresses.col2-set{
    grid-template-columns:1fr!important;
  }
}

/* --- 3. Checkout nesting flatten + 60/40 desktop --- */
body.woocommerce-checkout .wcf-embed-checkout-form,
body.single-cartflows_step .wcf-embed-checkout-form,
body.woocommerce-checkout form.checkout,
.wcf-embed-checkout-form-modern-checkout{
  background:#fff!important;
  border:1px solid #ddd4c4!important;
  border-radius:16px!important;
  box-sizing:border-box!important;
}
body.woocommerce-checkout .wcf-embed-checkout-form .woocommerce,
body.woocommerce-checkout .wcf-embed-checkout-form #customer_details,
body.woocommerce-checkout .wcf-embed-checkout-form .col2-set,
body.woocommerce-checkout .wcf-embed-checkout-form .col-1,
body.woocommerce-checkout .wcf-embed-checkout-form .col-2,
body.woocommerce-checkout .wcf-embed-checkout-form .woocommerce-billing-fields,
body.woocommerce-checkout .wcf-embed-checkout-form .woocommerce-shipping-fields,
body.woocommerce-checkout .wcf-embed-checkout-form .woocommerce-additional-fields,
body.woocommerce-checkout .wcf-embed-checkout-form #order_review,
body.woocommerce-checkout .wcf-embed-checkout-form #payment,
body.single-cartflows_step .wcf-embed-checkout-form .woocommerce,
body.single-cartflows_step .wcf-embed-checkout-form #customer_details,
body.single-cartflows_step .wcf-embed-checkout-form .col2-set,
body.single-cartflows_step .wcf-embed-checkout-form .col-1,
body.single-cartflows_step .wcf-embed-checkout-form .col-2,
body.single-cartflows_step .wcf-embed-checkout-form .woocommerce-billing-fields,
body.single-cartflows_step .wcf-embed-checkout-form .woocommerce-shipping-fields,
body.single-cartflows_step .wcf-embed-checkout-form #order_review,
body.single-cartflows_step .wcf-embed-checkout-form #payment,
body.single-cartflows_step .e-con:has(.wcf-embed-checkout-form),
body.single-cartflows_step .e-con-inner:has(.wcf-embed-checkout-form),
body.single-cartflows_step .elementor-widget-container:has(.wcf-embed-checkout-form){
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  background:transparent!important;
}

@media (min-width:768px){
  body.woocommerce-checkout .wcf-embed-checkout-form-modern-checkout,
  body.single-cartflows_step .wcf-modern-skin-two-column,
  body.woocommerce-checkout .col2-set,
  body.woocommerce-checkout #customer_details{
    display:grid!important;
    grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important; /* ~60/40 */
    gap:24px!important;
    align-items:start!important;
  }
  body.woocommerce-checkout #customer_details .col-1,
  body.woocommerce-checkout .wcf-customer-info-wrapper{
    width:100%!important;
    max-width:none!important;
    float:none!important;
  }
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .wcf-order-wrap{
    width:100%!important;
    max-width:none!important;
    float:none!important;
  }
}
@media (max-width:767px){
  body.woocommerce-checkout .form-row,
  body.single-cartflows_step .form-row,
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last,
  body.woocommerce-checkout .form-row-wide{
    width:100%!important;
    float:none!important;
    max-width:100%!important;
  }
  body.woocommerce-checkout .form-row input.input-text,
  body.woocommerce-checkout .form-row select,
  body.woocommerce-checkout .form-row textarea,
  body.single-cartflows_step .form-row input.input-text{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}

/* Create-account password hidden when unchecked */
.nhc-create-pw-hidden{
  display:none!important;
}

/* --- 4. Footer: 4 / 2 / 1 + email wrap + copyright --- */
.foot .fg,
footer.foot .fg,
.nhc-account .foot .fg,
.nhc-cart .foot .fg,
.nhc-shop .foot .fg,
.nhc-home .foot .fg,
body .foot .fg,
.nhc-shop .fg{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
@media (max-width:900px){
  .foot .fg, footer.foot .fg, .nhc-account .foot .fg, .nhc-shop .foot .fg,
  .nhc-home .foot .fg, body .foot .fg, .nhc-shop .fg{
    grid-template-columns:1fr 1fr!important;
  }
}
@media (max-width:520px){
  .foot .fg, footer.foot .fg, .nhc-account .foot .fg, .nhc-shop .foot .fg,
  .nhc-home .foot .fg, body .foot .fg, .nhc-shop .fg{
    grid-template-columns:1fr!important;
  }
}
.foot a[href^="mailto:"],
footer.foot a[href^="mailto:"],
.foot .fg a[href^="mailto:"],
.nhc-shop .foot a[href^="mailto:"],
.nhc-account .foot a[href^="mailto:"]{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
}
.foot .copy,
footer.foot .copy,
.nhc-account .foot .copy,
.nhc-shop .foot .copy,
.nhc-cart .foot .copy{
  text-align:center!important;
  width:100%!important;
  display:block!important;
}


/* DELETED FOR 1.8.0: cart selectors stripped from this rule */


/* --- 5. Cart item layout: flex row,
thumb left{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  gap:12px 16px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
/* DELETED FOR 1.8.0: cart rule removed
body.woocommerce-cart td.product-thumbnail,
body:has(.nhc-cart) td.product-thumbnail
*/
/* DELETED FOR 1.8.0: cart rule removed
body.woocommerce-cart td.product-name,
body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-quantity,
body.woocommerce-cart td.product-subtotal,
body:has(.nhc-c
*/
/* DELETED FOR 1.8.0: cart rule removed
body.woocommerce-cart td.product-name,
body:has(.nhc-cart) td.product-name
*/
/* DELETED FOR 1.8.0: cart rule removed
body.woocommerce-cart td.product-name a,
body:has(.nhc-cart) td.product-name a
*/


/* DELETED FOR 1.8.0: .nhc-cart item cards */

/* DELETED FOR 1.8.0: .nhc-cart cart-thumb */

/* DELETED FOR 1.8.0: .nhc-cart item content */


/* DELETED FOR 1.8.0: cart selectors stripped from this rule */


#fkcart-modal .fkcart-item-image,
#fkcart-modal .fkcart-image,
#fkcart-modal .fkcart-item .fkcart-item-image,
.woocommerce-checkout-review-order-table .product-thumbnail,
.woocommerce-checkout-review-order-table td.product-name img,
.wcf-embed-checkout-form .woocommerce-checkout-review-order-table img,
.nhc-also-like-media{
  aspect-ratio:3/4!important;
  overflow:hidden!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
}
/* DELETED FOR 1.8.0: cart rule removed
body.woocommerce-cart td.product-thumbnail a,
body:has(.nhc-cart) td.product-thumbnail a
*/

/* DELETED FOR 1.8.0: cart selectors stripped from this rule */

#fkcart-modal .fkcart-item-image img,
#fkcart-modal .fkcart-image img,
#fkcart-modal .fkcart-item img,
.woocommerce-checkout-review-order-table img,
.wcf-embed-checkout-form .woocommerce-checkout-review-order-table img,
.nhc-also-like-media img,
.nhc-also-like-img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
#fkcart-modal .fkcart-item-image,
#fkcart-modal .fkcart-image{
  width:72px!important;
  flex:0 0 72px!important;
  background:#fff!important;
  border:1px solid #ddd4c4!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:4px!important;
}
.nhc-also-like-media{
  width:100%!important;
  background:#f8f3e9!important;
  border:1px solid #eee6d7!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* DELETED FOR 1.8.0: .nhc-cart cart-thumb aspect */

/* --- 7. Thank-you: hide chrome leftovers --- */
body.nhc-ty-clean img[alt="Logo"],
body.nhc-ty-clean img[alt="logo"],
body.nhc-ty-clean .cartflows-store-checkout-logo,
body.nhc-ty-clean .cartflows-store-checkout-logo-field,
body.woocommerce-order-received .cartflows-store-checkout-logo-field,
body.single-cartflows_step .wcf-thankyou-wrapper img[alt="Logo"],
body.single-cartflows_step .cartflows-container img[alt="Logo"]{
  display:none!important;
}
body.nhc-ty-clean .woocommerce-notice:not(.nhc-thankyou *),
body.nhc-ty-clean .woocommerce-info:not(.nhc-thankyou *),
body.nhc-ty-clean p.woocommerce-thankyou-order-received,
body.nhc-ty-clean .nhc-hide-ty-chrome{
  display:none!important;
}


/* Thank-you: kill Elementor/CartFlows placeholder logo + duplicate copy */
body.woocommerce-order-received .elementor-element-5642184,
body.woocommerce-order-received .elementor-element-b7fc687,
.wcf-thankyou-wrap .elementor-element-5642184,
.wcf-thankyou-wrap .elementor-element-b7fc687,
body.woocommerce-order-received img[src*="global-checkout-template-logo"],
body.woocommerce-order-received img[alt="Logo"]{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  max-height:0!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
}
