/* ==========================================================================
   ECF Catalog Finder.

   Uses the theme's design tokens where they exist and falls back to its own
   values where they do not, so the plugin still looks deliberate if it is ever
   activated on a site without the East Coast Filters child theme.
   ========================================================================== */

.ecf-finder{
  --ecf-f-ink:var(--ink,#17201b);
  --ecf-f-muted:var(--muted,#606a63);
  --ecf-f-line:var(--line,#dde3de);
  --ecf-f-accent:var(--green-700,#22503a);
  --ecf-f-accent-soft:var(--green-100,#e4f0e9);
  --ecf-f-radius:var(--radius-sm,4px);
  --ecf-f-head:var(--font-head,system-ui,sans-serif);
  --ecf-f-body:var(--font-body,system-ui,sans-serif);
  margin:0 0 var(--sp-8,48px);
}

/* ---- Chips -------------------------------------------------------------- */
/* The chip row is chips plus whatever attaches at its end. The chips take the
   space they need and wrap; anything after them is pushed right and stays on
   the first line, so it does not drift down as chips wrap. */
.ecf-finder__chiprow{
  display:flex;align-items:flex-start;gap:12px;margin:0 0 18px;
}
.ecf-finder__chips{display:flex;flex-wrap:wrap;gap:10px;flex:1 1 auto;min-width:0}
.ecf-chip{
  padding:10px 20px;min-height:44px;cursor:pointer;
  font-family:var(--ecf-f-head);font-size:var(--fs-sm,15px);font-weight:700;
  color:var(--ecf-f-ink);background:#fff;
  border:1.5px solid var(--ecf-f-line);border-radius:999px;
  transition:border-color .15s,background .15s,color .15s;
}
.ecf-chip:hover{border-color:var(--ecf-f-accent);color:var(--ecf-f-accent)}
.ecf-chip.is-on{
  background:var(--ecf-f-accent-soft);border-color:var(--ecf-f-accent);color:var(--ecf-f-accent);
}
.ecf-chip:focus-visible{outline:2px solid var(--ecf-f-accent);outline-offset:2px}

/* Not a filter — a way back out of one. Reads as a direction, and is set apart
   so it cannot be mistaken for the category it sits beside. */
.ecf-chip--back{
  border-style:dashed;color:var(--ecf-f-muted);
  margin-right:4px;
}
.ecf-chip--back:hover{border-style:solid}

/* ---- Search ------------------------------------------------------------- */
.ecf-finder__search{position:relative;margin:0 0 10px}
.ecf-finder__input{
  width:100%;min-height:60px;padding:16px 18px;
  font-family:var(--ecf-f-body);font-size:var(--fs-lg,18px);line-height:1.4;color:var(--ecf-f-ink);
  background:#fff;border:1.5px solid var(--ecf-f-line);border-radius:var(--ecf-f-radius);
  transition:border-color .15s,box-shadow .15s;
}
.ecf-finder__input::placeholder{color:var(--ecf-f-muted)}
.ecf-finder__input:focus{
  outline:none;border-color:var(--green-500,#3b7a5a);box-shadow:0 0 0 3px rgba(59,122,90,.15);
}

.ecf-finder__suggest{
  position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);
  margin:0;padding:6px;list-style:none;max-height:340px;overflow-y:auto;
  background:#fff;border:1.5px solid var(--ecf-f-line);border-radius:var(--ecf-f-radius);
  box-shadow:var(--shadow,0 10px 30px rgba(20,30,25,.12));
}
.ecf-suggest__item{
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  padding:11px 12px;cursor:pointer;border-radius:var(--ecf-f-radius);
}
.ecf-suggest__item:hover,
.ecf-suggest__item.is-active{background:var(--ecf-f-accent-soft)}
.ecf-suggest__name{font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);color:var(--ecf-f-ink)}
.ecf-suggest__sku{font-family:var(--font-mono,ui-monospace,monospace);font-size:var(--fs-xs,13px);color:var(--ecf-f-muted)}

/* ---- Count -------------------------------------------------------------- */
.ecf-finder__count{
  margin:0 0 26px;font-size:var(--fs-sm,15px);color:var(--ecf-f-muted);
}

/* ---- Groups and rows ---------------------------------------------------- */
.ecf-finder__group{
  margin:26px 0 0;padding:0 0 10px;
  font-family:var(--ecf-f-head);font-size:var(--fs-base,17px);font-weight:800;
  color:var(--ecf-f-ink);border-bottom:1px solid var(--ecf-f-line);
}
.ecf-finder__group:first-child{margin-top:0}
.ecf-finder__rows{margin:0;padding:0;list-style:none}

/* 949 rows is a paint and layout problem before it is a node-count problem, so
   this comes before any virtualisation. Offscreen rows are skipped entirely
   while staying findable by Ctrl+F and present in the accessibility tree, which
   is what a JS-virtualised list gives up. The intrinsic size is the desktop row
   height, so the scrollbar is about right before anything is measured. */
.ecf-row{
  content-visibility:auto;
  contain-intrinsic-size:auto 61px;
}

.ecf-row{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:12px 10px;border-bottom:1px solid var(--line-2,#eef2ef);
  border-radius:var(--ecf-f-radius);
}
/* A row with a quantity on it is part of the pending order — worth seeing at a
   glance when scrolling a list of several hundred. */
.ecf-row.is-selected{background:var(--ecf-f-accent-soft)}

.ecf-row__info{display:flex;flex-direction:column;gap:2px;min-width:0}
.ecf-row__name{
  font-family:var(--ecf-f-head);font-size:var(--fs-base,17px);font-weight:700;
  color:var(--ecf-f-ink);
}
.ecf-row__sku{
  font-family:var(--font-mono,ui-monospace,monospace);
  font-size:var(--fs-xs,13px);color:var(--ecf-f-muted);
}
/* Only the mobile card lays the stepper out as a labelled field. */
.ecf-row__qtylabel{display:none}

/* ---- Row stepper -------------------------------------------------------- */
.ecf-row .ecf-qty{
  display:inline-flex;align-items:stretch;flex:0 0 auto;
  border:1.5px solid var(--ecf-f-line);border-radius:var(--ecf-f-radius);
  overflow:hidden;background:#fff;
}
.ecf-qty__btn{
  width:44px;min-height:44px;padding:0;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:var(--fs-lg,18px);line-height:1;color:var(--ecf-f-ink);
  background:none;border:0;transition:background .15s,color .15s;
}
.ecf-qty__btn:hover:not(:disabled){background:var(--ecf-f-accent-soft);color:var(--ecf-f-accent)}
.ecf-qty__btn:disabled{opacity:.35;cursor:default}
.ecf-qty__input{
  width:62px;min-height:44px;padding:0;text-align:center;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:var(--ecf-f-ink);background:none;
  border:0;border-inline:1.5px solid var(--ecf-f-line);
  -moz-appearance:textfield;
}
.ecf-qty__input::-webkit-outer-spin-button,
.ecf-qty__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ecf-qty__input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--green-300,#8fd0ae)}

/* ---- Empty state -------------------------------------------------------- */
.ecf-finder__empty{
  display:flex;flex-direction:column;align-items:flex-start;gap:12px;
  margin:28px 0 0;padding:20px;
  font-size:var(--fs-sm,15px);color:var(--ecf-f-muted);
  background:var(--surface,#f5f3ee);border:1.5px dashed var(--ecf-f-line);border-radius:var(--ecf-f-radius);
}

/* The payoff for loading the whole catalogue: a search that found nothing in
   this category can say how many it would find everywhere, and go there. */
.ecf-finder__widen{
  padding:10px 18px;min-height:44px;cursor:pointer;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:#fff;background:var(--ecf-f-accent);
  border:1.5px solid var(--ecf-f-accent);border-radius:var(--ecf-f-radius);
}
.ecf-finder__widen:hover{filter:brightness(1.08)}
.ecf-finder__widen:focus-visible{outline:2px solid var(--ecf-f-ink);outline-offset:2px}

/* ---- Signed out --------------------------------------------------------- */
/* The catalogue is public; ordering is not. Stated once, above the list. */
.ecf-finder__signin{
  display:flex;flex-wrap:wrap;align-items:center;gap:14px;
  margin:0 0 20px;padding:16px 20px;
  background:var(--ecf-f-accent-soft);
  border:1.5px solid var(--ecf-f-accent);border-radius:var(--ecf-f-radius);
}
.ecf-finder__signin-hint{margin:0;flex:1 1 320px;font-size:var(--fs-sm,15px);color:var(--ecf-f-ink)}
.ecf-finder__signin-cta{
  flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:11px 22px;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:#fff;background:var(--ecf-f-accent);text-decoration:none;
  border-radius:var(--ecf-f-radius);
}
.ecf-finder__signin-cta:hover{filter:brightness(1.08)}

/* ---- Without JavaScript ------------------------------------------------- */
/* Navigation and a telephone number, not a catalogue. See the note in
   inc/catalog-finder.php for why this is not a list of 949 part numbers. */
.ecf-finder__noscript{
  padding:20px;margin:16px 0 0;
  background:var(--surface,#f5f3ee);
  border:1.5px solid var(--ecf-f-line);border-radius:var(--ecf-f-radius);
}
.ecf-finder__noscript ul{margin:12px 0;padding-left:20px}
.ecf-finder__noscript li{margin:4px 0}

/* ---- Narrow screens ----------------------------------------------------- */
/* ==========================================================================
   Mobile: each row becomes a card.

   A dense table row does not survive 375px — a part number and a three-part
   control cannot share a line without truncating the name, and the name is what
   people scan for. So the row is restated as a card: an identity header of name
   and SKU, a rule, then the quantity as a labelled field.

   Structure follows the client's comp. Its ACTUAL SIZE / UNIT PRICE / TOTAL
   PRICE rows have no counterpart here — there is no actual-size field, and
   prices are suppressed — so those rows are simply absent rather than faked.
   ========================================================================== */
@media (max-width:600px){
  .ecf-finder__rows{display:flex;flex-direction:column;gap:12px}

  .ecf-row{
    display:grid;grid-template-columns:1fr auto;align-items:center;
    gap:0;padding:0;
    background:#fff;border:1px solid var(--ecf-f-line);
    border-radius:10px;overflow:hidden;
  }
  .ecf-row.is-selected{
    background:#fff;border-color:var(--ecf-f-accent);
    box-shadow:0 0 0 1px var(--ecf-f-accent);
  }

  /* Identity header spans the card and is separated by a rule, as in the comp. */
  .ecf-row__info{
    grid-column:1/-1;gap:3px;
    padding:14px 16px;border-bottom:1px solid var(--ecf-f-line);
  }
  .ecf-row__name{font-size:var(--fs-lg,18px);font-weight:800;color:var(--ecf-f-accent)}
  .ecf-row.is-selected .ecf-row__name{color:var(--ecf-f-accent)}

  .ecf-row__qtylabel{
    display:block;padding:14px 0 14px 16px;
    font-family:var(--ecf-f-head);font-size:var(--fs-xs,13px);font-weight:700;
    letter-spacing:.08em;text-transform:uppercase;color:var(--ecf-f-muted);
  }

  /* Round buttons either side of a pill input, per the comp. The wrapper's
     border is dropped so the controls read as separate elements. */
  .ecf-row .ecf-qty{
    justify-self:end;gap:10px;padding:10px 16px 10px 0;
    border:0;background:none;align-items:center;
  }
  /* 52px to match the input, which the theme's site-wide form min-height
     lifts to that height — circles and pill would otherwise sit a few pixels
     apart on the same line. */
  .ecf-qty__btn{
    width:52px;height:52px;min-height:52px;border-radius:50%;
    font-size:var(--fs-lg,18px);
    color:#fff;background:var(--ecf-f-accent);
  }
  .ecf-qty__btn:hover:not(:disabled){background:var(--green-600,#2c6349);color:#fff}
  .ecf-qty__btn:disabled{background:var(--ecf-f-accent-soft);color:var(--ecf-f-accent);opacity:1}
  .ecf-qty__input{
    width:78px;height:52px;min-height:52px;
    border:1.5px solid var(--ecf-f-line);border-radius:999px;
    font-size:var(--fs-base,17px);
  }

  .ecf-finder__input{font-size:var(--fs-base,17px);min-height:54px}
  .ecf-finder__group{margin-top:20px}
}

/* ==========================================================================
   Archive shell.

   The theme lays the archive out as a fixed sidebar rail plus a fluid column,
   and the finder used to collapse it — the rail held the attribute filters the
   chips replaced, so it was reserved and empty. It is not empty any more: job
   lists and categories live there. So the two-column layout stands, and only
   the toolbar wrapper goes.

   The theme prints that wrapper around the loop-region hook, so it survives
   even though everything inside it is discarded — an empty bordered row below
   the finder.
   ========================================================================== */
.ecf-finder-active .ecf-shop__toolbar{
  display:none;
}


/* ==========================================================================
   Summary bar.

   Quantities are set per row and committed in one action, so the bar is the
   only add control on the page. It is fixed rather than sticky so it stays
   reachable anywhere in a list of several hundred rows, and the body gets
   bottom padding while it is open so it can never cover the last row.
   ========================================================================== */
.ecf-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  padding:12px var(--gutter,20px);
  /* Clears the home indicator on iOS, and the theme's mobile call bar. */
  padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  background:var(--green-900,#13241b);
  box-shadow:0 -8px 30px rgba(20,30,25,.22);
}
.ecf-bar[hidden]{display:none}
.ecf-bar__inner{
  /* Lines the bar's contents up with the rows above it. The archive shell is
     --shell wide INCLUDING its gutter, while this sits inside the bar's own
     padding of the same gutter — so matching it means subtracting that gutter
     twice, not repeating the shell width. Without it the bar's add button hung
     a gutter past the right edge of every row. --container is the fallback for
     a theme that sets no --shell. */
  max-width:calc(var(--shell,var(--container,1200px)) - (var(--gutter,20px) * 2));
  margin-inline:auto;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.ecf-bar__summary{display:flex;flex-direction:column;gap:2px;min-width:0}
.ecf-bar__actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.ecf-bar__title{
  font-family:var(--ecf-f-head);font-size:var(--fs-xs,13px);font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--green-300,#8fd0ae);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ecf-bar__count{
  font-family:var(--ecf-f-head);font-size:var(--fs-lg,18px);font-weight:800;color:#fff;
}
.ecf-bar__add{
  flex:0 0 auto;min-height:52px;padding:14px 30px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-base,17px);line-height:1;
  color:#fff;background:var(--amber-500,#e6631b);
  border:2px solid var(--amber-500,#e6631b);border-radius:var(--ecf-f-radius);
  transition:background .15s,border-color .15s;
}
.ecf-bar__add:hover:not(:disabled){background:var(--amber-600,#c8530f);border-color:var(--amber-600,#c8530f)}
.ecf-bar__add:disabled{opacity:.75;cursor:wait}

/* Room for the bar, so the last row is never hidden behind it.

   The height comes from the script, which measures the bar each time it opens:
   it stacks on a phone, and the job list picker and a wrapped count both change
   how tall it is. The literal is only a fallback for the moment before the
   first measurement. */
body.ecf-finder-bar-open{padding-bottom:calc(var(--ecf-bar-h, 96px) + 16px)}

@media (max-width:600px){
  /* Stacked and centred, with a full-width action — the comp's treatment. */
  .ecf-bar{padding:14px var(--gutter,20px);border-radius:12px 12px 0 0}
  .ecf-bar__inner{flex-direction:column;align-items:stretch;gap:10px;text-align:center}
  .ecf-bar__summary{align-items:center}
  .ecf-bar__count{font-size:var(--fs-h3,22px)}
  .ecf-bar__actions{flex-direction:column;align-items:stretch;width:100%}
  .ecf-bar__add{width:100%;border-radius:999px;padding:15px 18px}
  /* The theme pins a tap-to-call bar to the bottom on mobile. Stacking the two
     took roughly 190px of an 812px screen. Someone part-way through building an
     order is not looking for the phone number, and the header keeps it a tap
     away — so it yields to the summary bar and returns the moment the order is
     cleared or submitted. */
  body.ecf-finder-bar-open .mobile-callbar{display:none}
}


/* ==========================================================================
   Category rail.

   Sits under the job list rail in the theme's aside, sharing its .ecf-filter
   shell so the two read as one column rather than two widgets that happen to
   be stacked.

   Every item is a real link to a real archive URL. The script intercepts the
   click and swaps the view in place, but the markup works without it — which
   is what makes a category deep-linkable rather than a piece of client state.
   ========================================================================== */
.ecf-finder-rail__list{margin:0;padding:0;list-style:none}

/* Photo then name, left to right. The row was space-between while a count sat
   at the far end; with the count gone that would push the two apart. */
.ecf-finder-rail__item a{
  display:flex;align-items:center;gap:10px;
  padding:9px 12px;min-height:44px;text-decoration:none;
  border-radius:var(--ecf-f-radius);
  color:var(--ecf-f-ink);
}
.ecf-finder-rail__item a:hover{background:var(--ecf-f-accent-soft);color:var(--ecf-f-accent)}

.ecf-finder-rail__item.is-active a{
  background:var(--ecf-f-accent-soft);color:var(--ecf-f-accent);font-weight:700;
}

/* contain, not cover: these are product shots on white, and cropping a belt
   or a filter to fill a square loses the shape that identifies it. */
.ecf-finder-rail__img{
  flex:0 0 auto;width:40px;height:40px;
  object-fit:contain;background:var(--white,#fff);
  border:1px solid var(--ecf-f-line,#dde3de);border-radius:var(--ecf-f-radius);
}

.ecf-finder-rail__name{font-family:var(--ecf-f-head);font-size:var(--fs-sm,15px);font-weight:600}

/* A category we stock but do not itemise — Final & HEPA Filters, Related
   Supplies. Shown rather than hidden: hiding it would hide the fact that the
   company sells it, and the note below the list says what to do about it. */
.ecf-finder-rail__item.is-empty .ecf-finder-rail__name{color:var(--ecf-f-muted)}

.ecf-finder-rail__note{
  margin:12px 0 0;
  font-size:var(--fs-xs,13px);line-height:1.5;color:var(--ecf-f-muted);
}


/* ==========================================================================
   Made to order.

   The row that lets a customer describe what the catalogue does not list. Sits
   below the results, because it is what you reach for when the list did not
   have what you came for — and on the two categories with no products at all it
   is the first thing under the empty state.

   Laid out as one line on a desktop and stacked fields on a phone, which is the
   same treatment the rows above it get and for the same reason: a filter size
   is four short values, and four short values on four lines is a form rather
   than a line item.
   ========================================================================== */
.ecf-cl{
  margin:32px 0 0;padding:24px;
  background:var(--card,#fff);
  border:1.5px solid var(--ecf-f-line);border-radius:var(--ecf-f-radius);
}

.ecf-cl__title{
  margin:0 0 6px;
  font-family:var(--ecf-f-head);font-size:var(--fs-lg,18px);font-weight:800;
  color:var(--ecf-f-ink);
}

.ecf-cl__intro{
  margin:0 0 18px;max-width:64ch;
  font-size:var(--fs-sm,15px);line-height:1.5;color:var(--ecf-f-muted);
}

.ecf-cl__row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}

.ecf-cl__field{display:flex;flex-direction:column;gap:5px;flex:1 1 150px;min-width:0}
/* display:flex above beats the [hidden] attribute's own display:none, so the
   fields a category does not ask for would stay on screen. */
.ecf-cl__field[hidden]{display:none}
.ecf-cl__field--job,
.ecf-cl__field--category{flex:1 1 200px}
/* Three dimensions and a quantity are two or three characters each. */
.ecf-cl__field--size,
.ecf-cl__field--qty{flex:0 1 92px}
.ecf-cl__field--description{flex:2 1 260px}
.ecf-cl__field--add{flex:0 0 auto}

.ecf-cl__field label{
  font-family:var(--font-mono,ui-monospace,monospace);
  font-size:var(--fs-xs,13px);font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ecf-f-muted);
}

.ecf-cl__input{
  width:100%;min-height:48px;padding:11px 14px;
  font-family:inherit;font-size:var(--fs-sm,15px);color:var(--ecf-f-ink);
  background:#fff;
  border:1.5px solid var(--ecf-f-line);border-radius:var(--ecf-f-radius);
}
.ecf-cl__input:focus{
  outline:none;border-color:var(--ecf-f-accent);
  box-shadow:0 0 0 3px var(--ecf-f-accent-soft);
}

.ecf-cl__add{
  min-height:48px;padding:12px 26px;cursor:pointer;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:#fff;background:var(--ecf-f-accent);
  border:1.5px solid var(--ecf-f-accent);border-radius:var(--ecf-f-radius);
}
.ecf-cl__add:hover:not(:disabled){filter:brightness(1.08)}
.ecf-cl__add:disabled{opacity:.6;cursor:default}
.ecf-cl__add:focus-visible{outline:2px solid var(--ecf-f-ink);outline-offset:2px}

.ecf-cl__status{
  margin:14px 0 0;min-height:1.4em;
  font-size:var(--fs-sm,15px);color:var(--green-700,#2c6349);
}
.ecf-cl__status.is-error{color:var(--ecf-danger,#b3261e)}

/* What has gone in so far, without leaving the form. */
.ecf-cl__added{margin:10px 0 0;padding:0;list-style:none}
.ecf-cl__added-item{
  padding:7px 0;
  font-size:var(--fs-sm,15px);color:var(--ecf-f-ink);
  border-top:1px solid var(--ecf-f-line);
}

@media (max-width:600px){
  .ecf-cl{padding:18px}

  /* Job, category and description get the width; they hold sentences. */
  .ecf-cl__field,
  .ecf-cl__field--description{flex:1 1 100%}

  /* Width, length, depth and quantity share one line, because that is how a
     filter size is written and read — "20 x 25 x 2", not four questions.
     Stacking them cost 200px of scroll to ask for eight characters.

     min-width is the guard: with a bare `flex: 1 1 0` the Add button crept
     onto the same line and squeezed all four to 36px, which is narrower than
     the word "Width" above it. */
  .ecf-cl__field--size{flex:1 1 0;min-width:68px}
  .ecf-cl__field--qty{flex:0 0 76px}

  /* Its own line. It is the commit, and it should not compete for width with
     the fields it commits. */
  .ecf-cl__field--add{flex:1 1 100%}
  .ecf-cl__add{width:100%}
}


/* ---- "Need a custom part?" ----------------------------------------------
   Sits at the end of the chip row and jumps to the made-to-order form at the
   foot of the page. Amber rather than green: it is not another filter, and it
   should not read as one sitting next to nine chips that are.
   ------------------------------------------------------------------------- */
.ecf-cl-jump{
  flex:0 0 auto;align-self:flex-start;
  display:inline-flex;align-items:center;gap:6px;
  min-height:44px;padding:10px 18px;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:var(--amber-600,#c8530f);text-decoration:none;white-space:nowrap;
  background:var(--white,#fff);
  border:1.5px dashed var(--amber-500,#e6631b);border-radius:999px;
}
.ecf-cl-jump::after{content:"↓";font-weight:700}
.ecf-cl-jump:hover{
  background:var(--amber-100,#fbe7d6);border-style:solid;color:var(--amber-600,#c8530f);
}
.ecf-cl-jump:focus-visible{outline:2px solid var(--ecf-f-ink);outline-offset:2px}

/* A brief confirmation that the jump landed somewhere, since the form is a
   long way down and the page can otherwise look unchanged mid-scroll. */
.ecf-cl.is-called{
  border-color:var(--amber-500,#e6631b);
  box-shadow:0 0 0 4px var(--amber-100,#fbe7d6);
}
.ecf-cl{transition:border-color .3s ease,box-shadow .3s ease}

@media (max-width:600px){
  .ecf-finder__chiprow{flex-wrap:wrap}
  .ecf-cl-jump{width:100%;justify-content:center}
}


/* ==========================================================================
   Signed out.

   The catalogue is for trade customers, so a signed-out visitor gets this
   instead of the finder — not a hidden finder. No payload is printed, so there
   is nothing here to reveal with devtools.
   ========================================================================== */
.ecf-finder__gate{
  max-width:60ch;margin:8px 0 0;padding:28px;
  background:var(--card,#fff);
  border:1.5px solid var(--ecf-f-line);border-radius:var(--ecf-f-radius);
}

.ecf-finder__gate-title{
  margin:0 0 10px;
  font-family:var(--ecf-f-head);font-size:var(--fs-h3,22px);font-weight:800;
  color:var(--ecf-f-ink);
}

.ecf-finder__gate-copy{
  margin:0 0 20px;
  font-size:var(--fs-base,17px);line-height:1.55;color:var(--ecf-f-muted);
}

.ecf-finder__gate-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px}

.ecf-finder__gate-cta{
  display:inline-flex;align-items:center;min-height:48px;padding:13px 26px;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:#fff;background:var(--ecf-f-accent);text-decoration:none;
  border-radius:var(--ecf-f-radius);
}
.ecf-finder__gate-cta:hover{filter:brightness(1.08)}
.ecf-finder__gate-cta:focus-visible{outline:2px solid var(--ecf-f-ink);outline-offset:2px}

.ecf-finder__gate-link{
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:var(--green-700,#2c6349);
}

.ecf-finder__gate-call{
  margin:20px 0 0;padding-top:16px;
  border-top:1px solid var(--ecf-f-line);
  font-size:var(--fs-sm,15px);color:var(--ecf-f-muted);
}

@media (max-width:600px){
  .ecf-finder__gate{padding:20px}
  .ecf-finder__gate-actions{flex-direction:column;align-items:stretch}
  .ecf-finder__gate-cta{justify-content:center}
}

/* ==========================================================================
   Back to top, and the category blurb
   ==========================================================================

   The list runs to 949 rows with the custom-part form under it, so the way
   back to the search box is a long scroll. A plain anchor rather than a
   floating button: it needs no scroll listener and works without JavaScript.
   ========================================================================== */
.ecf-finder__totop{margin:var(--sp-5,24px) 0 0;text-align:center}

.ecf-finder__totop-link{
  display:inline-block;padding:10px 18px;min-height:44px;line-height:24px;
  font-family:var(--ecf-f-head);font-size:var(--fs-sm,15px);font-weight:600;
  color:var(--ecf-f-accent);text-decoration:none;
  border:1px solid var(--ecf-f-line,#dde3de);border-radius:var(--ecf-f-radius);
}
.ecf-finder__totop-link:hover{background:var(--ecf-f-accent-soft);}

/* The rail's copy sits under the custom-size card, full width like its button. */
.ecf-finder__totop--rail{margin:0}
.ecf-finder__totop--rail .ecf-finder__totop-link{display:block;background:var(--white,#fff)}

/* Final & HEPA and Related Supplies have no rows to search, so the box goes.
   display:block above would otherwise beat the attribute. */
.ecf-finder__search[hidden]{display:none}

/* ---- The rail scrolls on its own ----------------------------------------
   The rail is sticky, and once it is taller than the window a sticky box
   cannot show its own foot: scrolling up from the bottom of the page, it
   stuck halfway and only finished when the page itself reached the top.
   Capping it at the window and letting it scroll inside means the whole rail
   is always reachable. Desktop only — below 900px it is static.

   It sticks BELOW the site header, whose height finder.js measures into
   --ecf-header-offset. Sticking a fixed 24px from the top put the start of the
   rail behind the header mid-page.

   No overscroll-behavior:contain. It stopped a scroll that reached the rail's
   top from carrying on into the page, so at the foot of the page — where the
   rail is no longer stuck and its top is above the window — scrolling up over
   the rail stopped dead before Job Lists came back into view. */
@media (min-width:901px){
  .ecf-finder-active .ecf-shop__sidebar{
    top:calc(var(--ecf-header-offset, var(--header-h, 76px)) + var(--sp-5,24px));
    max-height:calc(100vh - var(--ecf-header-offset, var(--header-h, 76px)) - (var(--sp-5,24px) * 2));
    overflow-y:auto;
    scrollbar-width:thin;
    /* Room for focus rings, which overflow clips. */
    padding:2px 6px 2px 2px;margin:-2px -6px -2px -2px;
  }
}

/* Sits under the page title. Hidden rather than empty on All Products and
   search, so it does not reserve a blank line above the chips. */
.ecf-shop__blurb{
  margin:6px 0 0;max-width:62ch;
  font-size:var(--fs-sm,15px);line-height:1.55;color:var(--ecf-f-muted);
}
.ecf-shop__blurb[hidden]{display:none}

/* The other way out of the list: the bulk order form, beside the custom-part
   jump. Both answer "this list is not what I want", so they sit together. */
.ecf-bo-jump{
  flex:0 0 auto;align-self:flex-start;
  display:inline-flex;align-items:center;gap:6px;
  min-height:44px;padding:10px 18px;
  font-family:var(--ecf-f-head);font-weight:700;font-size:var(--fs-sm,15px);
  color:var(--ecf-f-accent);text-decoration:none;white-space:nowrap;
  background:var(--white,#fff);
  border:1.5px dashed var(--ecf-f-line);border-radius:var(--ecf-f-radius);
}
.ecf-bo-jump:hover{background:var(--ecf-f-accent-soft);border-style:solid}
.ecf-bo-jump:focus-visible{outline:2px solid var(--ecf-f-ink);outline-offset:2px}
