/* ============================================================================
   Netserve Certified Refurbished Marketplace
   Inherits the Netserve theme tokens (--blue, --border, --text, --muted…) and
   only defines what the theme does not already provide.
   ========================================================================= */

/*
 * Tokens live on :root as well as the component scopes, because the WooCommerce
 * cart/checkout styling below runs on pages that have neither .nsr-main nor
 * .nsr-home-band — without this, var(--nsr-line) would resolve to nothing there.
 */
:root,
.nsr-main,
.nsr-home-band {
  --nsr-green: #0a7c42;
  --nsr-green-soft: #e6f6ed;
  --nsr-amber: #b45309;
  --nsr-amber-soft: #fef3c7;
  --nsr-red: #b42318;
  --nsr-ink: var(--text, #0d0f12);
  --nsr-line: var(--border, #e8eaed);
  --nsr-radius: 14px;
  /* Overwritten at runtime by nsr-front.js with the theme header's real height.
     The theme nav is position:sticky (~105px), so any sticky element of ours
     that offsets from 0 slides underneath it and disappears while scrolling. */
  --nsr-header-h: 108px;
}

.nsr-main *,
.nsr-drawer *,
.nsr-home-band * { box-sizing: border-box; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ── Shared buttons ─────────────────────────────────────────────────────── */

.nsr-cta,
.nsr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .15s, box-shadow .18s;
  font-family: inherit;
}

.nsr-cta--solid,
.nsr-btn--solid {
  background: var(--blue, #0052cc);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,82,204,.22);
}
.nsr-cta--solid:hover,
.nsr-btn--solid:hover {
  background: var(--blue-mid, #2563eb);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,82,204,.30);
}

.nsr-cta--ghost,
.nsr-btn--ghost {
  background: #fff;
  color: var(--nsr-ink);
  border-color: var(--nsr-line);
}
.nsr-cta--ghost:hover,
.nsr-btn--ghost:hover {
  border-color: var(--blue, #0052cc);
  color: var(--blue, #0052cc);
  transform: translateY(-1px);
}

.nsr-btn--light {
  background: #fff;
  color: var(--blue, #0052cc);
}
.nsr-btn--light:hover { background: #f1f5ff; }

.nsr-btn--lg { padding: 16px 26px; font-size: 15px; }
.nsr-cta--sm { padding: 10px 16px; font-size: 13px; }
.nsr-cta-arrow { transition: transform .18s; }
.nsr-cta:hover .nsr-cta-arrow { transform: translateX(3px); }

.nsr-btn:disabled,
.nsr-cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Navigation entry ───────────────────────────────────────────────────── */

/*
 * The theme's header carries `.nav-links > li > a { display: block }` in an
 * inline <style>. At (0,1,2) that beats the bare `.nsr-nav-link` class, so the
 * anchor was never a flex container — which left the dot at its initial
 * `display: inline`. Width and height do not apply to an inline box, so the
 * span measured 0px wide by the full line height, and its 3px box-shadow
 * painted that as a pale green vertical line immediately before the label.
 *
 * Two defences, because either one alone would have prevented it: win the
 * display override where the entry actually lives, and give the dot a display
 * value that cannot collapse.
 */
.nsr-nav-link { display: inline-flex; align-items: center; }

.nav-links a.nsr-nav-link,
.mobile-nav-links a.nsr-nav-link { display: inline-flex; align-items: center; }

.nsr-nav-dot {
  display: inline-block;
  vertical-align: middle;
  width: 7px; height: 7px; border-radius: 50%;
  /* Margin rather than the parent's `gap`, so spacing survives a theme that
     takes the anchor out of flex layout again. */
  margin-right: 7px;
  background: var(--nsr-green);
  box-shadow: 0 0 0 3px var(--nsr-green-soft);
  flex: none;
}

/* ── Homepage band ──────────────────────────────────────────────────────── */

.nsr-home-band {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border-top: 1px solid var(--nsr-line);
  border-bottom: 1px solid var(--nsr-line);
}

.nsr-home-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
}

.nsr-home-band-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.nsr-home-band-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--nsr-ink);
  font-weight: 500;
}

.nsr-tick {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--nsr-green-soft);
  color: var(--nsr-green);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  margin-top: 1px;
}

.nsr-home-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.nsr-home-band-count { font-size: 13px; color: var(--muted, #6b7280); }
.nsr-home-band-count strong { color: var(--nsr-ink); }

.nsr-home-band-visual { display: grid; gap: 12px; }

.nsr-mini-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nsr-mini-card:hover {
  border-color: var(--blue, #0052cc);
  box-shadow: var(--shadow-hover, 0 8px 32px rgba(0,82,204,.13));
  transform: translateY(-2px);
}
.nsr-mini-card-img {
  width: 74px; height: 58px;
  object-fit: contain;
  background: var(--off, #f7f8fa);
  border-radius: 8px;
  padding: 6px;
  flex: none;
}
.nsr-mini-card-body { display: grid; gap: 4px; min-width: 0; }
.nsr-mini-card-name { font-size: 13px; font-weight: 700; }
.nsr-mini-card-price { font-size: 14px; font-weight: 800; color: var(--blue, #0052cc); }
.nsr-mini-card-price em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--nsr-green);
  background: var(--nsr-green-soft);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
}

/* ── Marketplace hero ───────────────────────────────────────────────────── */

/*
 * The netserve theme's .page-hero is a DARK hero: it sets color:#fff and its
 * .page-hero-title / .page-hero-desc rules hard-code white. We reuse .page-hero
 * for layout but flip the background to light, so every inherited-white string
 * must be reset or it renders white-on-white. Selectors are deliberately three
 * classes deep to outrank the theme's two-class rules regardless of load order.
 */
.nsr-hero,
.nsr-single-hero {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
  color: var(--nsr-ink);
}

.nsr-main .nsr-hero .page-hero-title,
.nsr-main .nsr-single-hero .page-hero-title,
.nsr-main .nsr-hero .nsr-buybox-title,
.nsr-main .nsr-single-hero .nsr-buybox-title {
  color: var(--nsr-ink);
}

.nsr-main .nsr-hero .page-hero-desc,
.nsr-main .nsr-single-hero .page-hero-desc {
  color: var(--muted, #6b7280);
}

.nsr-main .nsr-hero .page-breadcrumbs,
.nsr-main .nsr-single-hero .page-breadcrumbs,
.nsr-main .nsr-hero .page-breadcrumbs a,
.nsr-main .nsr-single-hero .page-breadcrumbs a {
  color: var(--muted, #6b7280);
}
.nsr-main .nsr-hero .page-breadcrumbs a:hover,
.nsr-main .nsr-single-hero .page-breadcrumbs a:hover { color: var(--blue, #0052cc); }

.nsr-main .nsr-hero .section-label,
.nsr-main .nsr-single-hero .section-label { color: var(--blue, #0052cc); }

/*
 * Breadcrumb ("eyebrow") treatment.
 *
 * The theme styles its header with a bare element selector — `nav { background:
 * var(--white) }` — which also matches <nav class="page-breadcrumbs">, painting a
 * white block behind the breadcrumb. On the theme's dark navy hero that reads as
 * a stray white patch. A class selector (0,1,0) outranks the element selector
 * (0,0,1), so no !important is needed for the background.
 *
 * The colour DOES need !important: the theme's product-detail template sets
 * color inline on the element, and inline styles beat stylesheets.
 */
.page-breadcrumbs {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

/* Our own pages: light hero, so dark muted text. */
.nsr-main .page-breadcrumbs { color: var(--muted, #6b7280); }
.nsr-main .page-breadcrumbs a { color: var(--muted, #6b7280); text-decoration: none; }
.nsr-main .page-breadcrumbs a:hover { color: var(--blue, #0052cc); }

/* The theme's own product/category pages: dark hero, so light text. */
.page-main:not(.nsr-main) .page-hero .page-breadcrumbs {
  color: rgba(255, 255, 255, .58) !important;
}
.page-main:not(.nsr-main) .page-hero .page-breadcrumbs a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .16s;
}
.page-main:not(.nsr-main) .page-hero .page-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
 * Hero copy runs full width now that the trust points have moved out of a
 * side-by-side grid — but a headline is unreadable at 1200px, so the measure is
 * capped rather than left to the container.
 */
.nsr-hero-copy { max-width: 780px; }

.nsr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/*
 * Trust strip: one full-width row of four, below the pitch. Each card lays the
 * icon beside the text rather than above it, which is what keeps the strip
 * short — the whole band is roughly a third the height of the old 2x2 block.
 */
.nsr-trust-grid {
  list-style: none;
  margin: 34px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nsr-trust-card {
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.nsr-trust-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--blue-light, #e8f0ff);
  color: var(--blue, #0052cc);
  display: grid; place-items: center;
}
.nsr-trust-icon svg { width: 16px; height: 16px; }
.nsr-trust-text { display: block; min-width: 0; }
.nsr-trust-card strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--nsr-ink);
}
.nsr-trust-card em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted, #6b7280);
  line-height: 1.5;
}

/* Four across needs room. Two-up in the middle. */
@media (max-width: 1080px) {
  .nsr-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*
 * On a phone, four stacked cards with body copy pushed the product grid about
 * a full screen further down. The titles alone carry the claims; the supporting
 * line is detail that costs more than it earns at this width.
 */
@media (max-width: 640px) {
  .nsr-trust-grid { gap: 8px; margin-top: 26px; }
  .nsr-trust-card { padding: 11px 12px; align-items: center; gap: 9px; }
  .nsr-trust-card em { display: none; }
  .nsr-trust-icon { width: 24px; height: 24px; border-radius: 7px; }
  .nsr-trust-icon svg { width: 14px; height: 14px; }
  .nsr-trust-card strong { font-size: 12.5px; }
}

/* Anchor targets must clear the sticky header, or "Browse live stock" jumps
   the heading out of sight behind it. */
#nsr-results,
#nsr-faq,
#certified-refurbished { scroll-margin-top: calc(var(--nsr-header-h) + 16px); }

/* ── Toolbar ────────────────────────────────────────────────────────────── */

.nsr-listing { padding-top: 0; }

.nsr-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  box-shadow: var(--shadow, 0 2px 16px rgba(0,0,0,.07));
  margin-bottom: 28px;
  position: sticky;
  top: calc(var(--nsr-header-h) + 10px);
  z-index: 30;
}

.nsr-search { position: relative; flex: 1 1 320px; }
.nsr-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted, #6b7280);
  pointer-events: none;
}
.nsr-search-icon svg { width: 100%; height: 100%; }
.nsr-search input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--off, #f7f8fa);
  color: var(--nsr-ink);
}
.nsr-search input:focus {
  outline: none;
  border-color: var(--blue, #0052cc);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,82,204,.10);
}

.nsr-toolbar-right { display: flex; gap: 12px; align-items: center; }

.nsr-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted, #6b7280); }
.nsr-sort select {
  padding: 11px 12px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--nsr-ink);
  cursor: pointer;
}

.nsr-filter-toggle {
  display: none;
  padding: 12px 18px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.nsr-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.nsr-filters {
  position: sticky;
  top: calc(var(--nsr-header-h) + 96px);
  max-height: calc(100vh - var(--nsr-header-h) - 110px);
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  padding: 20px;
  display: grid;
  gap: 4px;
}

.nsr-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nsr-line);
  margin-bottom: 4px;
}
.nsr-filters-head strong { font-size: 14px; }
.nsr-reset {
  border: none;
  background: none;
  color: var(--blue, #0052cc);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.nsr-reset:hover { text-decoration: underline; }

.nsr-filter-group { border-bottom: 1px solid var(--nsr-line); padding: 14px 0; }
.nsr-filter-group:last-of-type { border-bottom: none; }

.nsr-filter-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--nsr-ink);
  cursor: pointer;
  font-family: inherit;
}
.nsr-filter-title::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted, #6b7280);
  border-bottom: 2px solid var(--muted, #6b7280);
  transform: rotate(45deg);
  transition: transform .2s;
  margin-bottom: 3px;
}
.nsr-filter-title[aria-expanded="false"]::after { transform: rotate(-45deg); }
.nsr-filter-title[aria-expanded="false"] + .nsr-filter-body { display: none; }

.nsr-filter-body { display: grid; gap: 9px; }
.nsr-scroll { max-height: 236px; overflow-y: auto; padding-right: 4px; }
.nsr-scroll::-webkit-scrollbar { width: 5px; }
.nsr-scroll::-webkit-scrollbar-thumb { background: var(--nsr-line); border-radius: 4px; }

.nsr-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--nsr-ink);
}
.nsr-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.nsr-check-box {
  flex: none;
  width: 17px; height: 17px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background .15s, border-color .15s;
}
.nsr-check input:checked + .nsr-check-box {
  background: var(--blue, #0052cc);
  border-color: var(--blue, #0052cc);
}
.nsr-check input:checked + .nsr-check-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 4px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.nsr-check input:focus-visible + .nsr-check-box { box-shadow: 0 0 0 3px rgba(0,82,204,.18); }
.nsr-check-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.nsr-check-label em {
  font-style: normal;
  color: var(--muted, #6b7280);
  font-size: 11px;
  flex: none;
}

.nsr-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nsr-price-inputs label { display: grid; gap: 4px; font-size: 11px; color: var(--muted, #6b7280); }
.nsr-price-inputs input {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}
.nsr-price-inputs input:focus { outline: none; border-color: var(--blue, #0052cc); }

.nsr-price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nsr-chip {
  border: 1.5px solid var(--nsr-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--nsr-ink);
  font-family: inherit;
}
.nsr-chip:hover { border-color: var(--blue, #0052cc); color: var(--blue, #0052cc); }
.nsr-chip.is-active { background: var(--blue-light, #e8f0ff); border-color: var(--blue, #0052cc); color: var(--blue, #0052cc); }

.nsr-filter-help {
  margin-top: 16px;
  padding: 16px;
  background: var(--off, #f7f8fa);
  border-radius: 12px;
  display: grid;
  gap: 8px;
}
.nsr-filter-help strong { font-size: 13px; }
.nsr-filter-help p { font-size: 12px; color: var(--muted, #6b7280); line-height: 1.55; margin: 0; }

/* ── Results ────────────────────────────────────────────────────────────── */

.nsr-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.nsr-results-count { font-size: 14px; font-weight: 600; color: var(--nsr-ink); }

.nsr-active-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nsr-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light, #e8f0ff);
  color: var(--blue, #0052cc);
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.nsr-active-chip::after { content: '×'; font-size: 14px; line-height: 1; }

.nsr-results-body[aria-busy="true"] { pointer-events: none; }

.nsr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */

.nsr-card {
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.nsr-card:hover {
  border-color: var(--blue, #0052cc);
  box-shadow: var(--shadow-hover, 0 8px 32px rgba(0,82,204,.13));
  transform: translateY(-3px);
}
.nsr-card.is-out { opacity: .72; }

.nsr-card-media {
  position: relative;
  display: block;
  background: var(--off, #f7f8fa);
  border-bottom: 1px solid var(--nsr-line);
  padding: 14px 14px 10px;
}
.nsr-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
}

.nsr-badge {
  position: absolute;
  top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1;
}
.nsr-badge--save { left: 12px; background: var(--nsr-green); color: #fff; }
.nsr-badge--grade { right: 12px; background: rgba(13,15,18,.86); color: #fff; }
.nsr-badge--lg { font-size: 12px; padding: 8px 14px; top: 16px; left: 16px; }

.nsr-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.nsr-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0; }
.nsr-card-title a { color: var(--nsr-ink); text-decoration: none; }
.nsr-card-title a:hover { color: var(--blue, #0052cc); }

.nsr-card-part {
  font-size: 11px;
  color: var(--muted, #6b7280);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
}

/* ── Price block ────────────────────────────────────────────────────────── */

.nsr-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.nsr-price-now { font-size: 20px; font-weight: 800; color: var(--nsr-ink); letter-spacing: -.01em; }
.nsr-price--detail .nsr-price-now { font-size: 32px; }
.nsr-price-mrp { font-size: 13px; color: var(--muted, #6b7280); display: inline-flex; gap: 4px; }
.nsr-price-mrp-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.nsr-price-off {
  font-size: 11px;
  font-weight: 800;
  color: var(--nsr-green);
  background: var(--nsr-green-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.nsr-price-tax { font-size: 11px; color: var(--muted, #6b7280); width: 100%; }
.nsr-price-quote { font-size: 17px; font-weight: 700; color: var(--blue, #0052cc); }

.nsr-saving-line { font-size: 13px; color: var(--nsr-green); margin-top: 8px; }
.nsr-saving-line strong { font-weight: 800; }

/* ── Stock + meta ───────────────────────────────────────────────────────── */

.nsr-card-meta {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted, #6b7280);
  margin-top: auto;
}

.nsr-stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nsr-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.nsr-stock--in { color: var(--nsr-green); }
.nsr-stock--in .nsr-dot { background: var(--nsr-green); box-shadow: 0 0 0 3px var(--nsr-green-soft); }
.nsr-stock--low { color: var(--nsr-amber); }
.nsr-stock--low .nsr-dot { background: var(--nsr-amber); box-shadow: 0 0 0 3px var(--nsr-amber-soft); }
.nsr-stock--out { color: var(--nsr-red); }
.nsr-stock--out .nsr-dot { background: var(--nsr-red); }

.nsr-card-bulk { color: var(--blue, #0052cc); font-weight: 600; }

.nsr-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 4px; }
.nsr-card-actions .nsr-btn { padding: 11px 14px; font-size: 13px; }

/* ── Empty state ────────────────────────────────────────────────────────── */

.nsr-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1.5px dashed var(--nsr-line);
  border-radius: var(--nsr-radius);
  background: var(--off, #f7f8fa);
}
.nsr-empty-icon { width: 42px; height: 42px; margin: 0 auto 16px; color: var(--muted, #6b7280); }
.nsr-empty-icon svg { width: 100%; height: 100%; }
.nsr-empty h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.nsr-empty p { color: var(--muted, #6b7280); max-width: 460px; margin: 0 auto 22px; line-height: 1.65; font-size: 14px; }
.nsr-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Pagination ─────────────────────────────────────────────────────────── */

.nsr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}
.nsr-page-btn {
  padding: 11px 20px;
  border: 1.5px solid var(--nsr-line);
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.nsr-page-btn:hover:not(:disabled) { border-color: var(--blue, #0052cc); color: var(--blue, #0052cc); }
.nsr-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.nsr-page-state { font-size: 13px; color: var(--muted, #6b7280); }

/* ── Grade explainer ────────────────────────────────────────────────────── */

.nsr-explainer { background: var(--off, #f7f8fa); }

.nsr-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.nsr-grade-card {
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.nsr-grade-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
  background: var(--blue-light, #e8f0ff);
  color: var(--blue, #0052cc);
}
.nsr-grade-card--a-plus .nsr-grade-badge { background: var(--nsr-green-soft); color: var(--nsr-green); }
.nsr-grade-card--c .nsr-grade-badge { background: var(--nsr-amber-soft); color: var(--nsr-amber); }
.nsr-grade-name { font-size: 15px; font-weight: 700; margin: 0; }
.nsr-grade-desc { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.65; margin: 0; }
.nsr-grade-link { font-size: 13px; font-weight: 600; color: var(--blue, #0052cc); text-decoration: none; }
.nsr-grade-link:hover { text-decoration: underline; }

/* ── FAQ accordion ──────────────────────────────────────────────────────── */

.nsr-faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.nsr-faq-item {
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.nsr-faq-item[open] {
  border-color: var(--blue, #0052cc);
  box-shadow: 0 4px 20px rgba(0,82,204,.08);
}

.nsr-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--nsr-ink);
  list-style: none;
}
.nsr-faq-q::-webkit-details-marker { display: none; }
.nsr-faq-q:hover { color: var(--blue, #0052cc); }
.nsr-faq-q:focus-visible {
  outline: 2px solid var(--blue, #0052cc);
  outline-offset: -2px;
  border-radius: 12px;
}

.nsr-faq-chevron {
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted, #6b7280);
  border-bottom: 2px solid var(--muted, #6b7280);
  transform: rotate(45deg);
  transition: transform .2s;
  margin-bottom: 4px;
}
.nsr-faq-item[open] .nsr-faq-chevron {
  transform: rotate(-135deg);
  margin-bottom: 0;
  border-color: var(--blue, #0052cc);
}

.nsr-faq-a { padding: 0 22px 20px; }
.nsr-faq-a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted, #6b7280);
  max-width: 72ch;
}

.nsr-faq-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted, #6b7280);
}

/* ── Results heading + skeleton ─────────────────────────────────────────── */

.nsr-results-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin: 0 0 12px;
}

/* Replaces a blunt opacity fade during AJAX: real placeholders keep the
   layout stable, so the page does not jump when results land. */
.nsr-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.nsr-skeleton-card {
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  overflow: hidden;
  background: #fff;
}
.nsr-skeleton-media { aspect-ratio: 16 / 9; }
.nsr-skeleton-body { padding: 18px; display: grid; gap: 10px; }
.nsr-skeleton-line { height: 12px; border-radius: 6px; }
.nsr-skeleton-line.w70 { width: 70%; }
.nsr-skeleton-line.w40 { width: 40%; }
.nsr-skeleton-line.tall { height: 22px; width: 55%; }

.nsr-skeleton-media,
.nsr-skeleton-line {
  background: linear-gradient(90deg, #eef1f5 25%, #f7f9fc 50%, #eef1f5 75%);
  background-size: 200% 100%;
  animation: nsr-shimmer 1.3s linear infinite;
}
@keyframes nsr-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Single product ─────────────────────────────────────────────────────── */

.nsr-section-tight { padding-top: 0; }

.nsr-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 44px;
  align-items: start;
}

.nsr-gallery-main {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: 16px;
  padding: 28px;
}
.nsr-gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; }

.nsr-gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.nsr-thumb {
  width: 68px; height: 68px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}
.nsr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.nsr-thumb.is-active,
.nsr-thumb:hover { border-color: var(--blue, #0052cc); }

.nsr-condition-panel {
  margin-top: 22px;
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: 14px;
  padding: 20px;
}
.nsr-condition-head { display: flex; gap: 14px; align-items: flex-start; }
.nsr-condition-head strong { font-size: 14px; display: block; margin-bottom: 4px; }
.nsr-condition-head p { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.6; margin: 0; }
.nsr-grade-badge--a-plus { background: var(--nsr-green-soft); color: var(--nsr-green); }
.nsr-grade-badge--c { background: var(--nsr-amber-soft); color: var(--nsr-amber); }

.nsr-condition-notes { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--nsr-line); }
.nsr-condition-notes-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue, #0052cc);
  display: block;
  margin-bottom: 6px;
}
.nsr-condition-notes p { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.65; margin: 0; }

/* Buy box */

.nsr-buybox {
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow, 0 2px 16px rgba(0,0,0,.07));
  position: sticky;
  top: calc(var(--nsr-header-h) + 20px);
}

.nsr-buybox-brand {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue, #0052cc);
  margin-bottom: 8px;
}
.nsr-buybox-title { font-size: clamp(22px, 2.4vw, 29px); font-weight: 800; line-height: 1.2; margin: 0 0 12px; }

.nsr-buybox-idents {
  list-style: none;
  margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 12px;
  color: var(--muted, #6b7280);
}
.nsr-buybox-idents strong { color: var(--nsr-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.nsr-buybox-summary { font-size: 14px; color: var(--muted, #6b7280); line-height: 1.7; margin-bottom: 18px; }
.nsr-buybox-summary p { margin: 0 0 8px; }

.nsr-buybox-price { padding: 18px 0; border-top: 1px solid var(--nsr-line); border-bottom: 1px solid var(--nsr-line); }

.nsr-buybox-assurance {
  list-style: none;
  margin: 16px 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted, #6b7280);
}

.nsr-qty-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

.nsr-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--nsr-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.nsr-step {
  width: 42px; height: 46px;
  border: none;
  background: var(--off, #f7f8fa);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--nsr-ink);
  font-family: inherit;
}
.nsr-step:hover { background: var(--blue-light, #e8f0ff); color: var(--blue, #0052cc); }
.nsr-stepper input {
  width: 68px;
  height: 46px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  -moz-appearance: textfield;
}
.nsr-stepper input::-webkit-outer-spin-button,
.nsr-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nsr-stepper input:focus { outline: none; }

.nsr-live-total { display: grid; gap: 1px; }
.nsr-live-unit { font-size: 19px; font-weight: 800; color: var(--nsr-ink); }
.nsr-live-label { font-size: 11px; color: var(--muted, #6b7280); }
.nsr-live-sum { font-size: 13px; font-weight: 600; color: var(--blue, #0052cc); }

.nsr-tier-hint {
  font-size: 12px;
  background: var(--nsr-green-soft);
  color: var(--nsr-green);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
  font-weight: 600;
}

.nsr-purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nsr-threshold-note { font-size: 12px; color: var(--muted, #6b7280); margin: 12px 0 0; line-height: 1.6; }
.nsr-quote-only-note { font-size: 14px; color: var(--muted, #6b7280); line-height: 1.7; margin: 0 0 16px; }

.nsr-buybox-contact {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--nsr-line);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--muted, #6b7280);
}
.nsr-buybox-contact a { color: var(--blue, #0052cc); font-weight: 600; text-decoration: none; }
.nsr-buybox-contact a:hover { text-decoration: underline; }

/* Tier table */

.nsr-tier-card {
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  overflow: hidden;
}
.nsr-tier-card-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--nsr-line);
  background: var(--off, #f7f8fa);
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.nsr-tier-card-title { font-size: 15px; font-weight: 700; }
.nsr-tier-card-note { font-size: 13px; color: var(--muted, #6b7280); }

.nsr-tier-table { width: 100%; border-collapse: collapse; }
.nsr-tier-table th,
.nsr-tier-table td { padding: 13px 22px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--nsr-line); }
.nsr-tier-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted, #6b7280);
  font-weight: 700;
}
.nsr-tier-table tbody tr:last-child th,
.nsr-tier-table tbody tr:last-child td { border-bottom: none; }
.nsr-tier-table tbody tr.is-active { background: var(--blue-light, #e8f0ff); }
.nsr-muted { color: var(--muted, #6b7280); }

/* Detail body */

.nsr-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.nsr-prose { font-size: 15px; color: var(--muted, #6b7280); line-height: 1.8; }
.nsr-prose p { margin: 0 0 14px; }
.nsr-subhead { font-size: 17px; font-weight: 700; margin: 28px 0 14px; }

.nsr-spec-table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--nsr-line); border-radius: 12px; overflow: hidden; }
.nsr-spec-table th,
.nsr-spec-table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--nsr-line); }
.nsr-spec-table th { width: 38%; background: var(--off, #f7f8fa); font-weight: 600; color: var(--nsr-ink); }
.nsr-spec-table td { color: var(--muted, #6b7280); }
.nsr-spec-table tr:last-child th,
.nsr-spec-table tr:last-child td { border-bottom: none; }

.nsr-side-card {
  background: #fff;
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  padding: 22px;
  margin-bottom: 18px;
}
.nsr-side-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.nsr-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13px; color: var(--muted, #6b7280); }
.nsr-side-list li { display: flex; gap: 9px; align-items: flex-start; }

.nsr-side-card--dark {
  background: linear-gradient(135deg, #0d1b3e 0%, #0052cc 100%);
  border-color: transparent;
  color: #fff;
}
.nsr-side-card--dark h3 { color: #fff; }
.nsr-side-card--dark p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.82); margin: 0 0 16px; }

/* ── Live stock band on theme family pages ──────────────────────────────── */

.nsr-family-stock { background: var(--off, #f7f8fa); border-top: 1px solid var(--nsr-line); }
.nsr-family-stock .section-title { color: var(--nsr-ink); }
.nsr-family-stock-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted, #6b7280);
}
.nsr-linkish {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--blue, #0052cc);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.nsr-linkish:hover { color: var(--blue-mid, #2563eb); }

/* ── Quote drawer ───────────────────────────────────────────────────────── */

.nsr-quote-fab {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  background: var(--nsr-ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  font-family: inherit;
}
.nsr-quote-fab[hidden] { display: none !important; }
.nsr-quote-fab:hover { background: var(--blue, #0052cc); }
.nsr-quote-fab-icon { width: 17px; height: 17px; }
.nsr-quote-fab-icon svg { width: 100%; height: 100%; }
.nsr-quote-fab-count {
  min-width: 21px; height: 21px;
  border-radius: 999px;
  background: var(--nsr-green);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  padding: 0 6px;
}

.nsr-drawer { position: fixed; inset: 0; z-index: 9999; }
.nsr-drawer[hidden] { display: none; }
.nsr-drawer-backdrop { position: absolute; inset: 0; background: rgba(13,15,18,.55); backdrop-filter: blur(2px); }

.nsr-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
  animation: nsr-slide-in .24s ease;
}
@keyframes nsr-slide-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.nsr-drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--nsr-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.nsr-drawer-head h2 { font-size: 19px; font-weight: 800; margin: 0 0 5px; }
.nsr-drawer-head p { font-size: 13px; color: var(--muted, #6b7280); margin: 0; line-height: 1.6; }
.nsr-drawer-close {
  border: none;
  background: var(--off, #f7f8fa);
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: none;
  color: var(--nsr-ink);
}
.nsr-drawer-close:hover { background: #eef1f6; }

.nsr-drawer-body { padding: 22px 24px 32px; overflow-y: auto; flex: 1; }

.nsr-quote-items { display: grid; gap: 10px; margin-bottom: 22px; }
.nsr-quote-empty { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.65; margin: 0; }

.nsr-quote-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 10px;
}
.nsr-quote-item-name { font-size: 13px; font-weight: 600; line-height: 1.4; }
.nsr-quote-item-price { font-size: 11px; color: var(--muted, #6b7280); }
.nsr-quote-item input {
  width: 66px;
  padding: 8px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
}
.nsr-quote-item-remove {
  border: none;
  background: none;
  color: var(--muted, #6b7280);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.nsr-quote-item-remove:hover { color: var(--nsr-red); }

.nsr-quote-form { display: grid; gap: 14px; }
.nsr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nsr-field { display: grid; gap: 5px; }
.nsr-field > span { font-size: 12px; font-weight: 600; color: var(--nsr-ink); }
.nsr-field > span b { color: var(--nsr-red); font-weight: 600; }
.nsr-field input,
.nsr-field select,
.nsr-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--nsr-line);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--nsr-ink);
}
.nsr-field input:focus,
.nsr-field select:focus,
.nsr-field textarea:focus {
  outline: none;
  border-color: var(--blue, #0052cc);
  box-shadow: 0 0 0 3px rgba(0,82,204,.10);
}
.nsr-field input.has-error,
.nsr-field textarea.has-error { border-color: var(--nsr-red); }

.nsr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nsr-quote-consent { font-size: 11px; color: var(--muted, #6b7280); line-height: 1.6; margin: 0; }
.nsr-quote-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.nsr-quote-status { font-size: 13px; line-height: 1.6; }
.nsr-quote-status.is-error { color: var(--nsr-red); }
.nsr-quote-status.is-success {
  color: var(--nsr-green);
  background: var(--nsr-green-soft);
  padding: 12px 14px;
  border-radius: 9px;
  font-weight: 600;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */

.nsr-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--nsr-ink);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
  display: flex;
  align-items: center;
  gap: 14px;
}
.nsr-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.nsr-toast a { color: #8ab6ff; text-decoration: underline; }

/* ── WooCommerce pages inside the Netserve theme ────────────────────────── */

/*
 * The netserve theme renders Cart / Checkout / My Account through page.php as
 * plain shortcode pages, so woocommerce_before_main_content never fires and
 * .nsr-woo-container does not exist there. Scope to .woocommerce — which Woo
 * puts on both its shortcode wrapper and its own templates — so the styling
 * applies either way. body classes cover the notice wrapper, which Woo prints
 * outside that div.
 */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.nsr-woo-container .woocommerce-message,
.nsr-woo-container .woocommerce-info {
  border-top-color: var(--blue, #0052cc);
  background: var(--off, #f7f8fa);
  border-radius: 10px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce .checkout-button,
.woocommerce #place_order,
.nsr-woo-container .button,
.nsr-woo-container button.button {
  background: var(--blue, #0052cc) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
  border: none !important;
  line-height: 1.2 !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce #place_order:hover { background: var(--blue-mid, #2563eb) !important; }

.woocommerce .button:disabled,
.woocommerce button.button:disabled { opacity: .55 !important; }

/* Keep Woo's secondary actions from competing with the primary CTA. */
.woocommerce .cart .button[name="update_cart"],
.woocommerce a.button.wc-backward {
  background: #fff !important;
  color: var(--nsr-ink) !important;
  border: 1.5px solid var(--nsr-line) !important;
}

.woocommerce table.shop_table,
.nsr-woo-container table.shop_table {
  border-radius: 12px;
  border-color: var(--nsr-line);
  overflow: hidden;
}
.woocommerce table.shop_table th { background: var(--off, #f7f8fa); }

.woocommerce .woocommerce-form__label input { margin-right: 8px; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  border: 1.5px solid var(--nsr-line) !important;
  border-radius: 9px !important;
  padding: 11px 12px !important;
  font-family: inherit !important;
  height: auto !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: none !important;
  border-color: var(--blue, #0052cc) !important;
  box-shadow: 0 0 0 3px rgba(0,82,204,.10) !important;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { font-weight: 800; }

/* The cart/checkout pages inherit the theme's page.php wrapper, which caps
   content width for prose. Commerce tables need the full container. */
.woocommerce-cart .section-desc,
.woocommerce-checkout .section-desc,
.woocommerce-account .section-desc { max-width: 100% !important; }

/* ── WooCommerce Cart / Checkout BLOCKS ─────────────────────────────────────
 * WooCommerce 8+ builds Cart and Checkout from blocks, not the classic
 * shortcodes. That markup carries none of the .woocommerce classes above and
 * styles its buttons through wc-block-components-*, so it needs its own pass.
 * ------------------------------------------------------------------------ */

.wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-element-button.wc-block-components-button {
  background-color: var(--blue, #0052cc) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  box-shadow: 0 4px 18px rgba(0,82,204,.22) !important;
  transition: background-color .18s !important;
}
.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background-color: var(--blue-mid, #2563eb) !important;
}

.wc-block-components-button.outlined {
  border-radius: 10px !important;
  border-color: var(--nsr-line) !important;
  color: var(--nsr-ink) !important;
  font-family: inherit !important;
}

.wc-block-cart-items__header,
.wc-block-components-sidebar .wc-block-components-totals-wrapper {
  font-family: inherit;
}

.wc-block-components-product-name {
  font-weight: 700 !important;
  color: var(--nsr-ink) !important;
  text-decoration: none !important;
}
.wc-block-components-product-name:hover { color: var(--blue, #0052cc) !important; }

/* Woo's block "Save" badge — align it with the marketplace discount pill. */
.wc-block-components-sale-badge {
  background: var(--nsr-green-soft) !important;
  color: var(--nsr-green) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  border: none !important;
}

.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-weight: 800 !important;
  color: var(--nsr-ink) !important;
}

.wc-block-components-sidebar-layout .wc-block-components-sidebar {
  border: 1.5px solid var(--nsr-line);
  border-radius: var(--nsr-radius);
  padding: 20px;
  background: #fff;
}

.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-select .wc-blocks-components-select__select {
  border: 1.5px solid var(--nsr-line) !important;
  border-radius: 9px !important;
  font-family: inherit !important;
}
.wc-block-components-text-input input:focus {
  border-color: var(--blue, #0052cc) !important;
  box-shadow: 0 0 0 3px rgba(0,82,204,.10) !important;
  outline: none !important;
}

.wc-block-components-quantity-selector {
  border-radius: 10px !important;
  border-color: var(--nsr-line) !important;
}

.wc-block-components-notice-banner {
  border-radius: 10px !important;
  font-family: inherit !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nsr-single-grid { grid-template-columns: 1fr; }
  .nsr-buybox { position: static; }
  .nsr-detail-grid { grid-template-columns: 1fr; }
  .nsr-home-band-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nsr-layout { grid-template-columns: 1fr; }
  .nsr-filter-toggle { display: inline-flex; }
  .nsr-filters {
    position: fixed;
    inset: 0;
    z-index: 9998;
    border-radius: 0;
    overflow-y: auto;
    display: none;
    padding: 22px;
  }
  .nsr-filters.is-open { display: block; }
  .nsr-toolbar { position: static; }
}

@media (max-width: 640px) {
  /* .nsr-trust-grid stays two-up on phones — see the trust-strip block above. */
  .nsr-grid { grid-template-columns: 1fr; }
  .nsr-field-row { grid-template-columns: 1fr; }
  .nsr-purchase-actions { grid-template-columns: 1fr; }
  .nsr-quote-actions { grid-template-columns: 1fr; }
  .nsr-buybox { padding: 20px; }
  .nsr-drawer-panel { width: 100%; }
  .nsr-quote-fab { right: 14px; bottom: 84px; padding: 11px 15px; font-size: 13px; }
  .nsr-buybox-assurance { grid-template-columns: 1fr; }
  .nsr-card-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .nsr-cta, .nsr-btn, .nsr-card, .nsr-mini-card, .nsr-toast, .nsr-drawer-panel,
  .nsr-faq-item, .nsr-faq-chevron {
    transition: none !important;
    animation: none !important;
  }
  .nsr-skeleton-media, .nsr-skeleton-line { animation: none !important; background: #eef1f5 !important; }
}

/* ---------------------------------------------------------------------------
   Enquiry flow — cart, checkout, confirmation.

   These render inside WooCommerce's classic templates, not the marketplace
   layout, so they are scoped to their own classes and avoid .nsr-main.
   --------------------------------------------------------------------------- */

.nsr-enquiry-notice {
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 1.5px solid var(--blue, #0052cc);
  border-left-width: 4px;
  border-radius: 10px;
  background: var(--blue-light, #e8f0ff);
}
.nsr-enquiry-notice strong {
  display: block;
  font-size: 15px;
  color: var(--nsr-ink, #0d0f12);
  margin-bottom: 4px;
}
.nsr-enquiry-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #33415c;
}

.nsr-freight-note td {
  padding: 12px 0 2px;
  border: 0;
}
.nsr-freight-note-text {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted, #6b7280);
}
.nsr-freight-note-text strong { color: var(--nsr-ink, #0d0f12); }

/* The freight placeholder reads as a status, not as a price of zero. */
.woocommerce-shipping-totals .woocommerce-Price-amount { display: none; }
.woocommerce-shipping-totals label,
.woocommerce-shipping-totals .shipping__list_item { font-weight: 600; }

/* ===========================================================================
   Checkout layout.

   WooCommerce's classic checkout floats .col-1/.col-2 and every .form-row,
   while also setting .form-row to display:grid. Against a theme with no
   WooCommerce styling the result was staggered columns: 128px inputs, labels
   drifting away from their fields, and the notes textarea stranded top-right.

   Everything below replaces that float layout with an explicit grid. Scoped to
   the WooCommerce body classes so none of it can reach the marketplace.
   ======================================================================== */

.woocommerce-checkout .woocommerce,
.woocommerce-cart .woocommerce { max-width: 1180px; margin-inline: auto; }

/* ── Page grid: form left, enquiry summary right ─────────────────────────── */

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  align-items: start;
}
.woocommerce-checkout form.checkout > .col2-set { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 14px; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }

/* Kill the floats. */
.woocommerce-checkout .col2-set,
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: 100%;
  padding: 0;
}
.woocommerce-checkout .col2-set::after { content: none; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 30px; }

/* ── Field grid ──────────────────────────────────────────────────────────── */

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.woocommerce-checkout .form-row {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 18px;
  grid-column: 1 / -1;
}
.woocommerce-checkout .form-row-first { grid-column: 1; }
.woocommerce-checkout .form-row-last  { grid-column: 2; }

/* ── Controls ────────────────────────────────────────────────────────────── */

.woocommerce-checkout .form-row label {
  display: block;
  width: auto;
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nsr-ink, #0d0f12);
}
.woocommerce-checkout .form-row label .required {
  color: var(--nsr-red, #b42318);
  text-decoration: none;
  margin-left: 2px;
}
.woocommerce-checkout .form-row .optional { color: var(--muted, #6b7280); font-weight: 500; }

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--nsr-ink, #0d0f12);
  background: #fff;
  border: 1.5px solid var(--nsr-line, #e8eaed);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .16s, box-shadow .16s;
}
.woocommerce-checkout .form-row textarea {
  min-height: 116px;
  line-height: 1.55;
  resize: vertical;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  outline: none;
  border-color: var(--blue, #0052cc);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, .14);
}
.woocommerce-checkout .form-row ::placeholder { color: #9aa3b2; }

.woocommerce-checkout .form-row .description {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #6b7280);
}

/* Native select needs its own chevron once the default appearance is dropped. */
.woocommerce-checkout .form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* Validation states. */
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid textarea {
  border-color: var(--nsr-red, #b42318);
}
.woocommerce-checkout .form-row.woocommerce-validated input.input-text {
  border-color: var(--nsr-green, #0a7c42);
}

/* ── Section headings inside the field list ──────────────────────────────── */

.woocommerce-checkout .nsr-checkout-heading {
  /* A grid item like any other row — without this it takes one column and the
     next heading lands beside it instead of below. */
  grid-column: 1 / -1;
  margin: 6px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--nsr-line, #e8eaed);
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .nsr-checkout-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.woocommerce-checkout .nsr-checkout-heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nsr-ink, #0d0f12);
}
.woocommerce-checkout .nsr-checkout-heading p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted, #6b7280);
}

/* The theme's own "Billing details" H3 is replaced by our headings. */
.woocommerce-checkout .woocommerce-billing-fields > h3 { display: none; }

/* ── Ship-to-different-address toggle ────────────────────────────────────── */

.woocommerce-checkout .woocommerce-shipping-fields > h3 {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  background: var(--off, #f7f8fa);
  border: 1.5px solid var(--nsr-line, #e8eaed);
  border-radius: 10px;
}
.woocommerce-checkout .woocommerce-shipping-fields > h3 label { cursor: pointer; }
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { margin-top: 18px; }

/* ── Enquiry summary card ────────────────────────────────────────────────── */

.woocommerce-checkout #order_review {
  background: #fff;
  border: 1.5px solid var(--nsr-line, #e8eaed);
  border-radius: var(--nsr-radius, 14px);
  padding: 22px;
  position: sticky;
  top: calc(var(--nsr-header-h, 108px) + 16px);
}

.woocommerce-checkout #order_review table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
}
.woocommerce-checkout #order_review table.shop_table thead th {
  padding: 0 0 10px;
  border-bottom: 1.5px solid var(--nsr-line, #e8eaed);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}
.woocommerce-checkout #order_review table.shop_table td,
.woocommerce-checkout #order_review table.shop_table th {
  padding: 13px 0;
  border-bottom: 1px solid var(--nsr-line, #e8eaed);
  vertical-align: top;
}
.woocommerce-checkout #order_review .cart_item td:last-child,
.woocommerce-checkout #order_review tfoot td { text-align: right; }
.woocommerce-checkout #order_review .product-name { font-weight: 600; line-height: 1.45; }
.woocommerce-checkout #order_review .product-quantity { font-weight: 700; color: var(--muted, #6b7280); }
.woocommerce-checkout #order_review .wc-item-meta,
.woocommerce-checkout #order_review .variation {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #6b7280);
}
.woocommerce-checkout #order_review .wc-item-meta p,
.woocommerce-checkout #order_review .wc-item-meta strong { display: inline; margin: 0; font-weight: 600; }

.woocommerce-checkout #order_review tfoot th { font-weight: 600; text-align: left; }
.woocommerce-checkout #order_review tfoot .order-total th,
.woocommerce-checkout #order_review tfoot .order-total td { border-bottom: 0; font-size: 17px; }
.woocommerce-checkout #order_review tfoot .order-total td .amount { font-weight: 800; }

/* ── Payment panel ───────────────────────────────────────────────────────── */

.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1.5px solid var(--nsr-line, #e8eaed);
  border-bottom: 1.5px solid var(--nsr-line, #e8eaed);
  border-radius: 10px;
  background: var(--off, #f7f8fa);
  list-style: none;
}
/* One method only, so the radio is noise. */
.woocommerce-checkout #payment ul.payment_methods input.input-radio { display: none; }
.woocommerce-checkout #payment ul.payment_methods label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--nsr-ink, #0d0f12);
}
.woocommerce-checkout #payment .payment_box {
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted, #6b7280);
}
.woocommerce-checkout #payment .payment_box::before { content: none; }
.woocommerce-checkout #payment .payment_box p:last-child { margin-bottom: 0; }

.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #6b7280);
}

.woocommerce-checkout #payment .form-row.place-order { margin: 16px 0 0; padding: 0; }
.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 52px;
  padding: 15px 24px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--blue, #0052cc);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 82, 204, .22);
  transition: background .18s, transform .15s, box-shadow .18s;
}
.woocommerce-checkout #place_order:hover {
  background: var(--blue-mid, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 82, 204, .30);
}

/* ── Notices ─────────────────────────────────────────────────────────────── */

.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
  border-radius: 10px;
  border-top-width: 1.5px;
  font-size: 14px;
}

/* ── Narrower screens ────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 8px;
  }
  .woocommerce-checkout form.checkout > .col2-set,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
  .woocommerce-checkout #order_review_heading { margin-top: 34px; }
  .woocommerce-checkout #order_review { position: static; }
}

@media (max-width: 560px) {
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last { grid-column: 1; }
  .woocommerce-checkout #order_review { padding: 18px; }
}

/* Summary table: neutralise the theme's th/td striping, which was painting grey
   bands behind the header and totals and clipping the "PRODUCT" label. */
.woocommerce-checkout #order_review table.shop_table,
.woocommerce-checkout #order_review table.shop_table thead,
.woocommerce-checkout #order_review table.shop_table tbody,
.woocommerce-checkout #order_review table.shop_table tfoot,
.woocommerce-checkout #order_review table.shop_table tr,
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  background: transparent;
  text-indent: 0;
}
.woocommerce-checkout #order_review table.shop_table thead th:first-child { padding-left: 0; }
.woocommerce-checkout #order_review table.shop_table thead th:last-child { padding-right: 0; }

/* The freight note spans the table, so it must not inherit the right alignment
   the totals column sets. */
.woocommerce-checkout #order_review .nsr-freight-note td,
.woocommerce-cart .nsr-freight-note td {
  text-align: left;
  padding: 14px 0 0;
  border: 0;
}

/* WooCommerce wraps every control in <span class="woocommerce-input-wrapper">,
   which is inline by default — so the input's width:100% resolved against a
   shrink-to-fit box and every half-width field came out ~168px. */
.woocommerce-checkout .woocommerce-input-wrapper,
.woocommerce-cart .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

/* Pair placement by id. The address-i18n script rewrites form-row-first /
   form-row-last classes per locale, so class-based column assignment is not
   stable; ids are. */
.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #shipping_first_name_field,
.woocommerce-checkout #shipping_city_field { grid-column: 1; }

.woocommerce-checkout #billing_last_name_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #shipping_last_name_field,
.woocommerce-checkout #shipping_postcode_field { grid-column: 2; }

/* Payment panel: WooCommerce paints .payment_box a lilac (#dfdcde) with a
   pointer triangle. Neither belongs here — there is one method and it is not a
   payment. */
.woocommerce-checkout #payment div.payment_box,
.woocommerce-checkout #payment .payment_box {
  background: transparent;
  color: var(--muted, #6b7280);
}
.woocommerce-checkout #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::after { display: none; content: none; }

.woocommerce-checkout .woocommerce-shipping-fields > h3 { display: block; }

@media (max-width: 560px) {
  .woocommerce-checkout #billing_first_name_field,
  .woocommerce-checkout #billing_last_name_field,
  .woocommerce-checkout #billing_city_field,
  .woocommerce-checkout #billing_postcode_field,
  .woocommerce-checkout #billing_phone_field,
  .woocommerce-checkout #billing_email_field,
  .woocommerce-checkout #shipping_first_name_field,
  .woocommerce-checkout #shipping_last_name_field,
  .woocommerce-checkout #shipping_city_field,
  .woocommerce-checkout #shipping_postcode_field { grid-column: 1; }
}

/* WooCommerce sets `.woocommerce form .form-row-first { width: 47% }` — three
   levels of specificity, which outranks a two-class selector. That 47% was of
   the grid column, not of the row, so every paired field came out at roughly
   half its cell. Match the specificity and let the grid own the widths. */
.woocommerce-checkout form.checkout .form-row,
.woocommerce-checkout form.checkout .form-row-first,
.woocommerce-checkout form.checkout .form-row-last,
.woocommerce-checkout form.checkout .form-row-wide,
.woocommerce-cart form .form-row {
  width: auto;
  float: none;
  padding: 0;
}

/* ── Partial availability ────────────────────────────────────────────────────
   Shown when an enquiry asks for more units than are on the shelf. Deliberately
   informational, not a warning: the customer has done nothing wrong and needs
   no action, so this is a quiet blue note rather than a red or amber alert. */

.nsr-partial-note {
  margin: 8px 0 0;
  padding: 9px 12px;
  border-left: 3px solid var(--blue, #0052cc);
  border-radius: 0 8px 8px 0;
  background: var(--blue-light, #e8f0ff);
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 400;
  color: #33415c;
  text-align: left;
}
.nsr-partial-note strong { color: var(--nsr-ink, #0d0f12); }

/* In the checkout summary the note sits in the right-aligned quantity column. */
.woocommerce-checkout #order_review .nsr-partial-note { text-align: left; }
