/* DELETED FOR 1.8.0: cart-page rules (shop_table.cart, tr.cart_item, ::before PRODUCT labels, cart_totals, cart coupon) stripped from nhc-v12.css. Cart styles live in css/nhc-cart.css only. */
/* ===== NHC Storefront v1.2.1 — greeting, notices, cart empty, checkout mobile, thankyou, tracking ===== */

/* DELETED FOR 1.9.0: header greeting moved to css/nhc-header.css */

/* --- B. WooCommerce notices (task 10) — themed cards, no blue icons --- */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
ul.woocommerce-error,
.wc-block-components-notice-banner,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error{
  background:#f8f3e9!important;
  border:1px solid #ddd4c4!important;
  border-left:4px solid #2f4a3c!important;
  border-radius:14px!important;
  padding:14px 16px 14px 18px!important;
  color:#24382e!important;
  list-style:none!important;
  font:600 14px Figtree,system-ui,sans-serif!important;
  box-shadow:0 2px 8px rgba(36,56,46,.06)!important;
  margin:0 0 14px!important;
}
.woocommerce-error,
ul.woocommerce-error,
.woocommerce .woocommerce-error{
  border-left-color:#a85c5c!important;
  background:#fbf0f0!important;
}
.woocommerce-message,
.woocommerce .woocommerce-message{
  border-left-color:#3d6b4f!important;
  background:#f1f6f1!important;
}
/* Kill broken ::before blue square / dashicons icons */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after,
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
ul.woocommerce-error li::before,
.wc-block-components-notice-banner__content::before{
  content:none!important;
  display:none!important;
  background:none!important;
  width:0!important;height:0!important;
  margin:0!important;padding:0!important;
  border:0!important;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  padding-left:18px!important;
}

/* --- C. Cart empty state (task 11) --- */
/* Hide default WC empty cart when custom block exists / visible */
body.woocommerce-cart:has(.nhc-empty-extra:not([hidden])):not(.nhc-has-items) .cart-empty.woocommerce-info,
body.woocommerce-cart:has(.nhc-empty-extra:not([hidden])):not(.nhc-has-items) .return-to-shop,
body.woocommerce-cart.nhc-cart-empty:has(.nhc-empty-extra) .wc-empty-cart-message,
body.woocommerce-cart.nhc-cart-empty:has([data-nhc-empty-extra]:not([hidden])) .cart-empty,
body.woocommerce-cart.nhc-cart-empty:has([data-nhc-empty-extra]:not([hidden])) p.cart-empty,
body.woocommerce-cart.nhc-cart-empty:has([data-nhc-empty-extra]:not([hidden])) .return-to-shop,
body.nhc-hide-default-empty .cart-empty,
body.nhc-hide-default-empty .return-to-shop,
body.nhc-hide-default-empty .wc-empty-cart-message{
  display:none!important;
  visibility:hidden!important;
  height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;
}

/* Product chips / suggest row — wrap, no horizontal overflow */
.nhc-suggest-row,
.nhc-product-chips,
.nhc-chip-row,
[data-nhc-chips],
.nhc-empty-extra .nhc-suggest-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  grid-template-columns:none!important;
}
.nhc-suggest-row > a,
.nhc-product-chips > a,
.nhc-chip-row > a,
.nhc-chip{
  flex:1 1 calc(50% - 10px)!important;
  min-width:140px!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
@media(min-width:700px){
  .nhc-suggest-row > a,
  .nhc-product-chips > a{flex:1 1 calc(25% - 10px)!important}
}

/* Kill large blank below footer on cart / pay-for-order */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-order-pay{
  min-height:0!important;
}
body.woocommerce-cart #page,
body.woocommerce-cart #content,
body.woocommerce-cart .site,
body.woocommerce-cart .elementor,
body.woocommerce-checkout #page,
body.woocommerce-order-pay #page{
  min-height:0!important;
}
body.woocommerce-cart .site-content,
body.woocommerce-cart #content,
body.woocommerce-cart .elementor-section:last-child,
body.woocommerce-cart .e-con:last-of-type{
  margin-bottom:0!important;
  padding-bottom:0!important;
}
body.woocommerce-cart .nhc-cart,
body:has(.nhc-cart) .nhc-cart{
  margin-bottom:0!important;
  padding-bottom:16px!important;
}
html body.woocommerce-cart,
html body.woocommerce-checkout{
  overflow-x:hidden!important;
}
/* Collapse leftover Elementor spacers after footer content */
body.woocommerce-cart .elementor-location-footer + *,
body.woocommerce-cart footer.site-footer + div:empty{
  display:none!important;
}

/* Free delivery note */
.nhc-free-ship-note{
  background:#fff!important;
  border:1px dashed #c6a048!important;
  border-radius:12px!important;
  padding:12px 14px!important;
  margin:0 0 12px!important;
  color:#24382e!important;
  font:600 13px Figtree,sans-serif!important;
}
.nhc-free-ship-note.nhc-free-ship-unlocked{
  border-style:solid!important;
  background:#f1f6f1!important;
  border-color:#8aa88a!important;
}

/* --- D. Checkout mobile <768 (task 12) --- */
@media(max-width:767px){
  body.woocommerce-checkout,
  body.single-cartflows_step,
  body.woocommerce-checkout .wcf-embed-checkout-form,
  body.single-cartflows_step .wcf-embed-checkout-form,
  .wcf-embed-checkout-form-modern-checkout,
  .wcf-modern-skin-two-column{
    overflow-x:hidden!important;
    max-width:100vw!important;
  }
  body.woocommerce-checkout form.checkout,
  body.single-cartflows_step form.checkout,
  .wcf-modern-skin-two-column,
  .wcf-embed-checkout-form-modern-checkout,
  body.single-cartflows_step .col2-set,
  body.woocommerce-checkout .col2-set,
  body.single-cartflows_step .e-con.e-flex,
  body.woocommerce-checkout .e-con.e-flex{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
  }
  /* Form first, order summary second */
  body.woocommerce-checkout #customer_details,
  body.single-cartflows_step #customer_details,
  .wcf-modern-skin-two-column #customer_details,
  body.woocommerce-checkout .col-1{
    order:1!important;
    width:100%!important;
    max-width:100%!important;
    float:none!important;
  }
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout #order_review_heading,
  body.single-cartflows_step #order_review,
  .wcf-modern-skin-two-column .wcf-order-wrap,
  body.woocommerce-checkout .col-2{
    order:2!important;
    width:100%!important;
    max-width:100%!important;
    float:none!important;
  }
  /* Remove nested stacked borders */
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout .col-1,
  body.woocommerce-checkout .col-2,
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout #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 .col-1,
  body.single-cartflows_step .wcf-embed-checkout-form .col-2,
  body.single-cartflows_step .e-con,
  body.single-cartflows_step .e-con-inner,
  body.single-cartflows_step .elementor-widget-container{
    border:0!important;
    box-shadow:none!important;
    outline:0!important;
    background:transparent!important;
  }
}

/* --- G. Thank-you --- */
.nhc-thankyou{max-width:640px;margin:16px auto 32px;padding:0 12px}
.nhc-thankyou-hero{text-align:center;margin:0 0 18px}
.nhc-thankyou-tick{
  width:56px;height:56px;border-radius:50%;margin:0 auto 12px;
  background:#2f4a3c;color:#f4efe4;font:700 28px/56px Figtree,sans-serif;
}
.nhc-thankyou-heading{margin:0 0 6px;color:#24382e;font-family:Fraunces,Georgia,serif;font-size:clamp(26px,5vw,34px)}
.nhc-thankyou-sub{margin:0;color:#5c655e;font:500 14px Figtree,sans-serif}
.nhc-thankyou-card{
  background:#fff;border:1px solid #ddd4c4;border-radius:18px;padding:20px;box-sizing:border-box
}
.nhc-thankyou-meta{display:flex;flex-wrap:wrap;gap:12px 18px;margin:0 0 12px}
.nhc-thankyou-meta .k{display:block;font:700 10px Figtree,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#c6a048}
.nhc-thankyou-pay{background:#f8f3e9;border-radius:12px;padding:12px;font:600 13px Figtree,sans-serif;color:#24382e}
.nhc-thankyou-items{list-style:none;margin:0;padding:0}
.nhc-thankyou-items li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eee6d7;font:600 14px Figtree,sans-serif}
.nhc-thankyou-address{font-style:normal;line-height:1.45;color:#514a42;margin:0 0 16px}
.nhc-thankyou-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.nhc-thankyou-wa{margin:8px 0 0;font:500 13px Figtree,sans-serif;color:#6f675c}
.nhc-thankyou-wa a{color:#2f4a3c;font-weight:700}
.nhc-btn-primary,.woocommerce a.button.nhc-btn-primary,a.nhc-btn-primary{
  display:inline-flex;align-items:center;justify-content:center;
  background:#2f4a3c!important;color:#f4efe4!important;border:0!important;
  border-radius:12px!important;padding:12px 16px!important;font:700 13px Figtree,sans-serif!important;
  text-decoration:none!important;
}
.nhc-btn-ghost,a.nhc-btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff!important;color:#24382e!important;border:1px solid #ddd4c4!important;
  border-radius:12px!important;padding:12px 16px!important;font:700 13px Figtree,sans-serif!important;
  text-decoration:none!important;
}

/* --- H. Tracking / status badges --- */
.nhc-status-badge{
  display:inline-block;padding:4px 10px;border-radius:999px;
  font:700 11px Figtree,sans-serif;background:#ebe4d4;color:#24382e;
}
.nhc-status-processing,.nhc-status-nhc-packed{background:#e8f0ea;color:#2f4a3c}
.nhc-status-nhc-shipped,.nhc-status-nhc-out-for-delivery{background:#f3ead0;color:#7a5c12}
.nhc-status-completed{background:#dceee0;color:#1e4d2b}
.nhc-status-cancelled,.nhc-status-failed{background:#f5e0e0;color:#7a2e2e}
.nhc-track-order{max-width:560px;margin:0 auto;padding:12px}
.nhc-track-form input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #ddd4c4;border-radius:10px;margin-top:4px}
.nhc-track-card{background:#fff;border:1px solid #ddd4c4;border-radius:16px;padding:18px;margin-top:16px}
.nhc-track-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.nhc-track-timeline{list-style:none;margin:0;padding:0}
.nhc-track-timeline li{display:flex;align-items:center;gap:10px;padding:8px 0;color:#9a9286;font:600 13px Figtree,sans-serif}
.nhc-track-timeline li .dot{width:12px;height:12px;border-radius:50%;background:#ddd4c4;flex:0 0 12px}
.nhc-track-timeline li.done{color:#24382e}
.nhc-track-timeline li.done .dot{background:#2f4a3c}
.nhc-track-timeline li.current{color:#2f4a3c;font-weight:800}
.nhc-track-timeline li.current .dot{background:#c6a048;box-shadow:0 0 0 3px rgba(198,160,72,.35)}
.nhc-copy-billing-wrap{margin:0 0 14px}
.nhc-copy-billing{background:#2f4a3c!important;color:#f4efe4!important;border:0!important;border-radius:10px!important}
