/**
 * Product page styles (for Custom Cut + Bundle)
 * Author: Daiva Reinike
 * Palette: uses global :root tokens
 */

/* ==========================================================================
   1) General
   ========================================================================== */

.woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3,
.woocommerce-Tabs-panel--description h4,
.woocommerce-Tabs-panel--description h5 {
    color: var(--nh-forest);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.woocommerce-Tabs-panel--description h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--nh-mint);
}

.woocommerce-Tabs-panel--description h3 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin: 2.5rem 0 1rem;
}

.woocommerce-Tabs-panel--description h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin: 2rem 0 0.75rem;
}

.woocommerce-Tabs-panel--description h5 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nh-green);
    margin: 1.75rem 0 0.75rem;
}

.secondary-title {
  font-size: 13px;
  color: var(--ui-muted);
  margin-top: 4px;
}

/* -------------------------
   Attribute UI (selects/buttons)
   ------------------------- */

/* Wrapper for attribute buttons */
.variations_form .nh-attr-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Base button */
.variations_form .nh-attr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid var(--ui-border) !important;
  border-radius: 4px;
  background: var(--ui-bg-content, #fff);
  cursor: pointer;
  font-weight: 500;
  color: var(--nh-green);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .02s ease;
}

/* Hover for enabled, unselected buttons */
.variations_form .nh-attr-btn:not(.is-selected):not(.is-disabled):hover {
  background: var(--nh-cream) !important;
  border-color: var(--nh-green) !important;
  color: var(--nh-forest) !important;
  transform: translateY(-1px);
}

/* Selected (active) - keep !important to override inline JS styles */
.variations_form .nh-attr-btn.is-selected {
  background: var(--nh-green) !important;
  color: #fff !important;
  border-color: var(--nh-green) !important;
  transform: none !important;
}

/* Selected hover (pressed) */
.variations_form .nh-attr-btn.is-selected:hover {
  background: var(--nh-forest) !important;
  border-color: var(--nh-forest) !important;
  color: #fff !important;
  transform: none !important;
}

/* Disabled / impossible combinations (both class and attribute) */
.variations_form .nh-attr-btn.is-disabled,
.variations_form .nh-attr-btn[disabled],
.variations_form .nh-attr-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #9ca3af !important;
  pointer-events: none;
  transform: none !important;
  text-decoration: none;
}

/* If a disabled button ever becomes .is-selected, show disabled style not green */
.variations_form .nh-attr-btn.is-disabled.is-selected,
.variations_form .nh-attr-btn[disabled].is-selected {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #9ca3af !important;
  box-shadow: none !important;
}

/* Focus ring (keyboard) */
.variations_form .nh-attr-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Baseline border for unselected (keeps consistent look) */
.variations_form .nh-attr-btn:not(.is-selected) {
  border-color: var(--ui-border) !important;
}

/* Hide the “Custom” term option */
[data-attribute_name="attribute_pa_width"]  .nh-attr-btn[data-term="custom"],
[data-attribute_name="attribute_width"]     .nh-attr-btn[data-term="custom"],
[data-attribute_name="attribute_pa_length"] .nh-attr-btn[data-term="custom"],
[data-attribute_name="attribute_length"]    .nh-attr-btn[data-term="custom"] {
  display: none !important;
}

/* Selected combination is out of stock — keep red OOS visual (overrides inline/selected) */
.variations_form .nh-attr-btn.is-oos {
  background: #FDE8E8 !important;
  border-color: #F5A5A5 !important;
  color: #7A1F1F !important;
  transform: none !important;
}

/* Prevent hover effect for OOS */
.variations_form .nh-attr-btn.is-oos:hover,
.variations_form .nh-attr-btn.is-oos.is-selected {
  background: #FDE8E8 !important;
  border-color: #F5A5A5 !important;
  color: #7A1F1F !important;
  transform: none !important;
}

/* All-variations OOS message spacing */
.variations_form .nh-all-oos-msg {
  margin: 0.35rem 0 0.75rem;
}

/* ==========================================================================
   3) Custom cutting UI (mm inputs)
   ========================================================================== */

/* show custom W/L fields on custom-cutting products */
#nh-custom-size-wrap{
  display:block !important;
  margin:12px 0;
}

/* --- custom width/length control (Woo-like qty UI) --- */
.nh-size-ui .nh-mm-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-content, #fff);
  height: 40px;
  box-sizing: border-box;
  max-width: 320px;
}

.nh-size-ui .nh-mm-qty .minus,
.nh-size-ui .nh-mm-qty .plus {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 600;
  color: var(--nh-green);
  background: var(--ui-bg-content, #fff);
  border: none;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.nh-size-ui .nh-mm-qty .minus { border-right: 1px solid var(--ui-border); }
.nh-size-ui .nh-mm-qty .plus  { border-left: 1px solid var(--ui-border); }

.nh-size-ui .nh-mm-qty .nh-mm-input {
  flex: 1 1 0;
  min-width: 220px;
  height: 100%;
  border: none !important;
  outline: none;
  background: var(--ui-bg-content, #fff);
  box-sizing: border-box;
  padding: 0 16px !important;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ui-text);
  text-align: center !important;
  text-indent: 0 !important;
}

/* placeholder fully visible & centered */
.nh-size-ui .nh-mm-qty .nh-mm-input::placeholder {
  color: var(--ui-muted);
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* remove native number spinners */
.nh-size-ui .nh-mm-qty .nh-mm-input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.nh-size-ui .nh-mm-qty .nh-mm-input[type=number]::-webkit-outer-spin-button,
.nh-size-ui .nh-mm-qty .nh-mm-input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove the theme's bottom border/line under custom-cut size table */
.nh-has-custom-cut .entry-summary form.cart table.variations {
  border: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* If your theme adds a separator element after variations, hide it too */
.nh-has-custom-cut .entry-summary form.cart .reset_variations { display: none !important; }

/* Cutting step note */
.nh-cc-hint-single {
  margin: .25rem 0 0;
  font-size: .875em;
  color: #666;
}

/* Mobile: let control expand */
@media (max-width: 600px) {
  .nh-size-ui .variations .value { display: block; }
  .nh-size-ui .nh-mm-qty { max-width: 100%; width: 100%; }
}

/* ==========================================================================
   4) Price summary
   ========================================================================== */

.nh-price-summary {
  border: 1px solid var(--ui-border);
  border-radius: 0.25rem;
  background: var(--ui-bg-content, #fff);
  padding: 26px 16px 16px; /* extra top space for floated title */
  margin: 32px 0 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  position: relative;          /* for absolute title */
}
.nh-ps-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ui-text);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* sit on the border */
  padding: 0 12px;
  margin: 0;
  background: var(--ui-bg-content, #fff); /* mask the border under text */
  line-height: 1.1;
  white-space: nowrap;
}
.nh-ps-list { list-style: none; margin: 0; padding: 0; }
.nh-ps-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--ui-text); padding: .15rem 0; }
.nh-ps-val { font-variant-numeric: tabular-nums; }
.nh-ps-sep { border-top: 1px solid var(--ui-border); margin: .4rem 0; }
.nh-ps-total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ui-text); }
.nh-ps-total-val { font-size: 1.05rem; }

/* Hide Woo’s built-in variation price; we render our own summary */
.single-product .single_variation .woocommerce-variation-price,
.single-product .single_variation .price {
  display: none !important;
}

/* Sale-pair styling for ALL rows (perm2, unit, total) */
#nh-price-summary .nh-ps-val del,
#nh-price-summary .nh-ps-total-val del {
  color: var(--ui-muted);
  opacity: 1;
  font-weight: 400;      /* override the bold on the Total row */
  margin-right: .35em;
}

#nh-price-summary .nh-ps-val ins,
#nh-price-summary .nh-ps-total-val ins {
  color: var(--ui-text);
  font-weight: 700;
  text-decoration: none; /* no underline */
}

/* Hide Price per m² / Cutting fee by default */
.nh-price-summary .nh-ps-perm2,
.nh-price-summary .nh-ps-cutfee {
  display: none;
}

/* Show them only on SIMPLE custom-cut product pages */
.nh-has-custom-cut .nh-price-summary .nh-ps-perm2,
.nh-has-custom-cut .nh-price-summary .nh-ps-cutfee {
  display: flex;
}

/* ==========================================================================
   5) Bundle block
   ========================================================================== */

#nc-complete-set.nc-bundle,
#nc-complete-set.nc-bundle.card {
  --nc-gap: 14px;
  --nc-radius: 0.25rem;
  --nc-border: 1px solid var(--ui-border);
  --nc-bg: var(--ui-bg-content, #fff);
  --nc-muted: var(--ui-muted);
  --nc-head: var(--ui-text);
  --nc-row-hover: var(--nh-cream);
  --nc-qty-width: 106px;

  border: var(--nc-border);
  border-radius: var(--nc-radius);
  background: var(--nc-bg);
  padding: 34px 16px 16px;
  margin-top: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  position: relative;
  /* allow child elements (qty controls) to overflow slightly without being clipped */
  overflow: visible;
}

/* Title “floating” on the border */
.nc-bundle-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 12px;
  margin: 0;
  background: var(--nc-bg, #fff);
  display: block;
  line-height: 1.1;
  white-space: nowrap;
  z-index: 3;
}

#nc-bundle-title {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
  color: var(--nc-head);
  font-weight: 600;
}

.nc-bundle-form {
  width: 100%;
}

/* Layout: let the qty column grow to fit content when necessary */
.nc-bundle-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(var(--nc-qty-width), max-content) minmax(0, max-content);
  column-gap: var(--nc-gap);
  row-gap: 8px;
  align-items: center;
  padding: 12px 4px;
  border-top: var(--nc-border);
}

.nc-bundle-row:first-of-type {
  border-top: 0;
}

.nc-bundle-row:not(.nc-bundle-header):hover {
  background: var(--nc-row-hover);
}

.nc-bundle-header {
  font-weight: 600;
  color: #374151;
  padding: 10px 4px 12px;
  border-bottom: var(--nc-border);
  border-top: 0;
}

.nc-bundle-header .nc-col {
  font-size: .9rem;
}

.nc-col-title {
  min-width: 0;
}

/* Allow qty cell to show overflowing content and layer above siblings */
.nc-col-qty {
  min-width: 0;
  justify-self: end;
  overflow: visible;     /* very important to avoid clipping of +/- buttons */
  position: relative;    /* so we can use z-index for inner controls */
  z-index: 2;
}

.nc-col-price {
  min-width: 0;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.nc-col-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-content, #fff);
}

.nc-title {
  display: inline-block;
  font-weight: 600;
  color: var(--ui-text);
  text-decoration: none;
  line-height: 1.45;
  word-break: break-word;
}

.nc-title:hover {
  text-decoration: underline;
}

.nc-pill {
  display: inline-block;
  font-size: .75rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--nh-cream);
  color: var(--ui-text);
  white-space: nowrap;
}

.nc-pill--instock {
  background: var(--nh-mint);
  color: var(--nh-forest);
}

/* Starbucks-style alert (soft red-brown instead of harsh red) */
.nc-pill--oos {
  background: #F4E7E3;
  color: #7A3E2B;
}

.nc-meta-small {
  font-size: .80em;
  color: var(--ui-muted);
  margin-top: .25rem;
}

.nc-meta-small div {
  line-height: 1.3;
}

/* Price blocks */
.nc-price-desktop,
.nc-price-mobile {
  font-weight: 600;
  color: var(--ui-text);
}

/* Desktop price column */
.nc-price-desktop {
  white-space: normal;
  line-height: 1.35;
}

/* Mobile inline-under-title price */
.nc-price-mobile {
  display: none;
  margin-top: 6px;
  line-height: 1.35;
}

/* Sale layout: stack old and new price vertically */
.nc-price-desktop del,
.nc-price-desktop ins,
.nc-price-mobile del,
.nc-price-mobile ins {
  display: block;
}

/* Old price */
.nc-price-desktop del,
.nc-price-mobile del {
  color: var(--ui-muted);
  font-weight: 400;
  opacity: 1;
  margin: 0 0 2px;
}

/* New/current price — same emphasis as regular price */
.nc-price-desktop ins,
.nc-price-mobile ins {
  color: var(--ui-text);
  font-weight: 600;
  text-decoration: none;
  margin: 0;
}

/* Make Woo amount inside <ins> inherit strong weight cleanly */
.nc-price-desktop ins .amount,
.nc-price-mobile ins .amount {
  font-weight: inherit;
}

/* Regular non-sale prices stay bold and clean */
.nc-price-desktop > .woocommerce-Price-amount,
.nc-price-mobile > .woocommerce-Price-amount,
.nc-price-desktop .amount,
.nc-price-mobile .amount {
  line-height: inherit;
}

/* Bundle qty control — allow it to size to content but keep a sane minimum */
#nc-complete-set .quantity.buttons_added {
  display: inline-flex;
  align-items: center;
  justify-content: stretch;
  width: auto; /* let content define width when needed */
  min-width: var(--nc-qty-width);
  max-width: none;
  min-height: 40px;
  margin: 0;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-content, #fff);
  box-sizing: border-box;
  overflow: visible;
  vertical-align: middle;
  z-index: 3;
}

/* ensure consistent box-sizing for children */
#nc-complete-set .quantity.buttons_added .minus,
#nc-complete-set .quantity.buttons_added .plus,
#nc-complete-set .quantity.buttons_added .qty {
  box-sizing: border-box;
}

/* +/- buttons fixed size but non-clipping */
#nc-complete-set .quantity.buttons_added .minus,
#nc-complete-set .quantity.buttons_added .plus {
  flex: 0 0 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  min-width: 31px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ui-bg-content, #fff);
  color: var(--nh-green);
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
}

/* visual dividers between buttons and input remain */
#nc-complete-set .quantity.buttons_added .minus {
  border-right: 1px solid var(--ui-border);
}

#nc-complete-set .quantity.buttons_added .plus {
  border-left: 1px solid var(--ui-border);
}

/* number input: stable width but allowed to grow if needed */
#nc-complete-set .quantity.buttons_added .qty {
  flex: 1 1 auto;
  width: 44px;
  min-width: 44px;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0 4px !important;
  border: 0 !important;
  outline: none;
  box-shadow: none !important;
  background: var(--ui-bg-content, #fff);
  color: var(--ui-text);
  text-align: center !important;
  font-size: 16px;
  line-height: normal;
  border-radius: 0 !important;
  appearance: textfield;
  -moz-appearance: textfield;
  pointer-events: auto;
}

#nc-complete-set .quantity.buttons_added .qty::-webkit-outer-spin-button,
#nc-complete-set .quantity.buttons_added .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* disabled states */
#nc-complete-set .quantity.buttons_added .qty:disabled,
#nc-complete-set .quantity.buttons_added .minus[aria-disabled="true"],
#nc-complete-set .quantity.buttons_added .plus[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

/* Footer */
.nc-bundle-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: var(--nc-border);
  background: var(--ui-bg-content, #fff);
  backdrop-filter: blur(4px);
}

.nc-total {
  font-size: 1.05rem;
  color: var(--ui-text);
}

.nh-bundle-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 14px;
  text-decoration: none;
}

.single-product form.cart {
  flex-wrap: wrap;
}

.single-product form.cart .nh-bundle-back-link--below-cart {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 920px) {
  .nc-bundle-header {
    display: none;
  }

  .nc-bundle-row {
    grid-template-columns: 64px minmax(0, 1fr) minmax(var(--nc-qty-width), max-content);
    grid-template-areas:
      "img title qty"
      ".   price qty";
    padding: 12px 0;
  }

  .nc-col-image { grid-area: img; }
  .nc-col-title { grid-area: title; }
  .nc-col-qty {
    grid-area: qty;
    justify-self: end;
    align-self: start;
  }

  .nc-col-price { display: none; }
  .nc-price-mobile { display: block; color: var(--ui-text); }
  .nc-col-image img { max-width: 64px; }
  .nc-bundle-footer { padding-bottom: 6px; }
}

@media (max-width: 720px) {
  #nc-complete-set.nc-bundle,
  #nc-complete-set.nc-bundle.card {
    --nc-qty-width: 100px;
  }

  .nc-bundle-row {
    grid-template-columns: 64px minmax(0, 1fr) minmax(var(--nc-qty-width), max-content);
  }

  #nc-complete-set .quantity.buttons_added {
    min-width: var(--nc-qty-width);
    min-height: 38px;
  }

  #nc-complete-set .quantity.buttons_added .minus,
  #nc-complete-set .quantity.buttons_added .plus {
    flex-basis: 29px;
    min-width: 29px;
    width: 29px;
  }

  #nc-complete-set .quantity.buttons_added .qty {
    min-width: 42px;
    font-size: 15px;
  }

  .nc-bundle-footer {
    flex-wrap: wrap;
  }

  .nc-total {
    flex: 1 1 100%;
  }
}

/* If titles ever wrap on very small screens, keep the legend illusion */
@media (max-width: 420px) {
  .nh-ps-title,
  .nc-bundle-head {
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   Ask an expert (Accordion version – light style)
   ========================================================================== */

/* Wrapper */
.single-product .nh-help-accordion{
  display: block;
  width: 100%;
  clear: both;
  margin-top: 16px;
}

/* Trigger wrap — the soft card that makes the block stand out */
.single-product .nh-help-accordion__trigger-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f4faf7;
  border: 1px solid rgba(0, 112, 74, .18);
  border-radius: 4px;
  flex-wrap: wrap;
}

/* Chat icon */
.single-product .nh-help-accordion__icon{
  flex-shrink: 0;
  color: var(--nh-green, #00704A);
  opacity: .8;
}

/* Hint text */
.single-product .nh-help-accordion__hint{
  flex: 1 1 auto;
  font-size: 13.5px;
  color: #444;
  margin: 0;
  opacity: 1;
}

/* Ask an expert button — subtle pill */
.single-product .nh-help-accordion__btn,
.single-product .nh-help-accordion__btn.button,
.single-product form.cart button.nh-help-accordion__btn{
  background: transparent !important;
  background-color: transparent !important;
  border: 1.5px solid var(--nh-green, #00704A) !important;
  box-shadow: none !important;
  padding: 5px 14px !important;
  margin: 0 !important;
  border-radius: 4px !important;
  color: var(--nh-green, #00704A) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}

/* Chevron icon inside button */
.single-product .nh-help-accordion__chevron{
  transition: transform .25s ease;
}
.single-product .nh-help-accordion__btn[aria-expanded="true"] .nh-help-accordion__chevron{
  transform: rotate(180deg);
}

/* Hover: very light green tint fill */
.single-product .nh-help-accordion__btn:hover,
.single-product .nh-help-accordion__btn.button:hover,
.single-product form.cart button.nh-help-accordion__btn:hover{
  background: rgba(0, 112, 74, .07) !important;
  background-color: rgba(0, 112, 74, .07) !important;
  border: 1.5px solid var(--nh-green, #00704A) !important;
  box-shadow: none !important;
  color: var(--nh-green, #00704A) !important;
  opacity: 1;
}

/* Focus/active */
.single-product .nh-help-accordion__btn:focus,
.single-product .nh-help-accordion__btn:active{
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: 2px solid rgba(0, 112, 74, .35);
  outline-offset: 2px;
}

/* Form panel */
.single-product .nh-help-accordion__panel{
  margin-top: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 4px;
}

/* Hidden state */
.single-product .nh-help-accordion__panel[hidden]{
  display: none !important;
}

/* Status message */
.single-product .nh-help-accordion__status{
  margin-top: 8px;
  font-size: 14px;
  display: none;
}

.single-product .nh-help-accordion__status.is-visible{
  display: block;
}

/* ==========================================================================
   WPForms styling inside accordion
   ========================================================================== */

/* Keep WPForms wrapper clean (prevents surprise white cards from theme) */
.single-product .nh-help-accordion__panel .wpforms-container,
.single-product .nh-help-accordion__panel .wpforms-container-full,
.single-product .nh-help-accordion__panel .wpforms-form{
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Submit button — LIGHT style */
.single-product .nh-help-accordion__panel .wpforms-submit{
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--nh-green, #00704A) !important;
  border: 1px solid var(--nh-green, #00704A) !important;
  border-radius: 4px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  transition: all .2s ease !important;
  box-shadow: none !important;
}

/* Submit hover */
.single-product .nh-help-accordion__panel .wpforms-submit:hover{
  background: rgba(0,112,74,0.05) !important;
  background-color: rgba(0,112,74,0.05) !important;
  color: var(--nh-green, #00704A) !important;
}

/* Hide auto-filled fields (robust: wrapper OR input has the class) */
.wpforms-field.nh_wpf_product,
.wpforms-field.nh_wpf_url,
.wpforms-field-container .nh_wpf_product,
.wpforms-field-container .nh_wpf_url,
.wpforms-field input.nh_wpf_product,
.wpforms-field textarea.nh_wpf_product,
.wpforms-field input.nh_wpf_url,
.wpforms-field textarea.nh_wpf_url{
  display: none !important;
}

/* ==========================================================================
   6) Theme tweak
   ========================================================================== */

.single-product div.product .product_meta {
  border-top: 0 !important;
}

/* ==========================================================================
   7) Image gallery note
   ========================================================================== */

.single-product .woocommerce-product-gallery .nh-product-image-note{
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;

  font-size: 13px;
  line-height: 1.5;
  color: #6f7b76;
}

.single-product .woocommerce-product-gallery .nh-product-image-note p{
  margin: 0;
}

.single-product .woocommerce-product-gallery .nh-product-image-note p::before{
  content: "* ";
  color: #8a9691;
}

/* ==========================================================================
   8) Meta box table
   ========================================================================== */

/* Product extra block — Dashicons version */
.nh-mb-product-extra {
  background: linear-gradient(180deg, var(--ui-bg-soft) 0%, rgba(255,255,255,0.85) 100%);
  padding: 28px;
  border-radius: 4px;
  border: 1px solid var(--ui-border);
  box-shadow: 0 8px 20px rgba(30,57,50,0.04);
  margin-top: 1.5rem;
}

/* H2 title — matches Important Information heading style */
.nh-mb-product-extra > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--nh-forest, #1E3932) !important;
  letter-spacing: 0.07em !important;
  text-transform: none !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(195, 232, 198, 0.6) !important;
  line-height: 1 !important;
  background: none !important;
}

/* Kill any ::after pseudo added by theme H2 styles */
.nh-mb-product-extra > h2::after {
  display: none !important;
}

/* H2 dashicon — matches .nh-in-head-ico exactly */
.nh-mb-product-extra > h2 > .dashicons,
.nh-mb-product-extra > h2 .dashicons {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
  line-height: 15px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nh-green, #00704A);
  background: none;
  border-radius: 0;
  flex: 0 0 auto;
  opacity: 0.9;
}

/* Columns wrapper */
.nh-mb-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Card */
.nh-mb-column {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--ui-bg-content);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(30,57,50,0.04);
  box-shadow: 0 4px 12px rgba(16,24,20,0.03);
  box-sizing: border-box;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Hover / focus lift */
.nh-mb-column:hover,
.nh-mb-column:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(30,57,50,0.06);
  border-color: var(--nh-mint);
}

/* Column heading with inline Dashicon */
.nh-mb-col-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ui-bg-dark);
  font-size: 1.05rem;
}

/* Dashicon inside the column heading */
.nh-mb-col-title .dashicons {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 4px;
  flex: 0 0 36px;
  color: currentColor;
}

/* Per-column icon colours/backgrounds */
.nh-mb-columns .nh-mb-column:nth-child(1) .nh-mb-col-title .dashicons {
  color: var(--nh-green);
  background-color: rgba(0,112,74,0.06);
}
.nh-mb-columns .nh-mb-column:nth-child(2) .nh-mb-col-title .dashicons {
  color: var(--nh-gold);
  background-color: rgba(200,159,99,0.06);
}
.nh-mb-columns .nh-mb-column:nth-child(3) .nh-mb-col-title .dashicons {
  color: var(--nh-forest);
  background-color: rgba(30,57,50,0.06);
}

/* Column text */
.nh-mb-col-text {
  color: var(--ui-text);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-top: 6px;
  flex: 1 1 auto;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .nh-mb-columns { gap: 14px; }
  .nh-mb-column { flex-basis: 100%; min-width: 100%; }
  .nh-mb-product-extra { padding: 20px; }
  .nh-mb-product-extra > h2 { font-size: 16px !important; }
}

/* Ensure the gallery container clears properly */
.woocommerce-product-gallery--with-images .flex-control-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
}

/* Force 4 images per row (roughly 25% each minus spacing) */
.woocommerce-product-gallery--with-images .flex-control-nav li {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 5px;
    box-sizing: border-box;
}

/* Optional: Hide scrollbar but allow scrolling if more than 4 images exist */
.woocommerce-product-gallery--with-images .flex-control-nav::-webkit-scrollbar {
    display: none;
}
