/* wholesale-search.css: search v2 (Ivan 2026-11-08, mock #search), behind wholesale_search_v2_enabled.
 * The typeahead panel, the phone sheet, the results head, the no-results door and the results foot.
 * Loaded only when the flag is on (index.php puts it in the head; _search_v2.php prints it otherwise).
 * Tokens are the mock's storefront tokens, scoped to the search classes so nothing else moves. */
.wss-pan, .wss-sheet, .wss-head, .wss-none, .wss-foot, .wss-form {
  --wss-brand: #3f2a9c; --wss-ink: #17142b; --wss-muted: #6a6580; --wss-line: #e9e6f0;
  --wss-sand: #f6f3ee; --wss-soft: #f4f1fb; --wss-bg: #fff;
}
.wss-pan [hidden], .wss-sheet [hidden], .wss-none [hidden] { display: none !important; }

/* -- the header field: the clear X --------------------------------------- */
.wss-form { position: relative; }
.wss-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.wss-x {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #e6e3ea; color: var(--wss-ink, #17142b); display: grid; place-items: center;
}
.wss-x:hover { background: #dcd8e2; }
.wss-x[hidden] { display: none; }
.wss-form.is-on { background: #fff; border-color: #452B90; box-shadow: 0 0 0 3px rgba(69,43,144,.12); }

/* -- the drop-down panel ------------------------------------------------- */
.wss-scrim { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 1190; background: rgba(23,20,43,.38); }
.wss-scrim[hidden] { display: none; }
.wss-pan {
  position: fixed; z-index: 1200; background: var(--wss-bg); color: var(--wss-ink);
  border-radius: 28px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 22px 0 10px;
  max-height: min(600px, calc(100vh - 120px)); overflow: auto; overscroll-behavior: contain;
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, sans-serif; text-align: left;
}
.wss-pan[hidden] { display: none; }
.wss-pan button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wss-pan:focus-visible, .wss-pan button:focus-visible { outline: 2px solid var(--wss-brand); outline-offset: -2px; }

.wss-cap {
  font: 600 11.5px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase;
  color: var(--wss-muted); padding: 6px 24px 10px; display: flex; justify-content: space-between; align-items: baseline;
}
.wss-pan .wss-clear {
  text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--wss-ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.wss-pan .wss-clear.hi { outline: 2px solid var(--wss-brand); outline-offset: 2px; border-radius: 4px; }
.wss-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 24px; text-align: left; font-size: 14.5px; }
.wss-row:hover, .wss-row.hi { background: var(--wss-sand); }
.wss-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--wss-soft); display: grid; place-items: center; flex: none; color: var(--wss-ink); }
.wss-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--wss-sand); }
.wss-row .tx { display: grid; line-height: 1.3; min-width: 0; }
.wss-row .tx > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wss-row small { color: var(--wss-muted); font-size: 12.5px; }
.wss-row mark { background: none; color: inherit; font-weight: 700; }
.wss-row .rm { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--wss-muted); flex: none; }
.wss-row .rm:hover { background: var(--wss-line); color: var(--wss-ink); }

.wss-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 12px; }
.wss-chips > button, .wss-chips > a {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--wss-line); border-radius: 999px;
  padding: 8px 13px; font-size: 13.5px; color: var(--wss-ink); text-decoration: none; background: var(--wss-bg);
}
.wss-chips > button:hover, .wss-chips > button.hi, .wss-chips > a:hover { border-color: var(--wss-ink); }

.wss-covs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0 24px 14px; }
.wss-covs > button, .wss-covs > a {
  display: grid; gap: 6px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--wss-ink);
  text-decoration: none; border-radius: 12px;
}
.wss-covs img, .wss-covs i { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; background: var(--wss-sand); }
.wss-covs > button.hi img, .wss-covs > button.hi i { outline: 2px solid var(--wss-ink); outline-offset: 2px; }
.wss-covs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wss-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; }
.wss-cols.is-one { grid-template-columns: minmax(0, 1fr); }
.wss-cols > div + div { border-left: 1px solid var(--wss-line); }
.wss-pan .wss-foot {
  display: flex; align-items: center; gap: 10px; margin: 8px 16px 4px; padding: 12px 14px; border-radius: 14px;
  font-weight: 600; width: calc(100% - 32px); text-align: left;
}
.wss-pan .wss-foot:hover, .wss-pan .wss-foot.hi { background: var(--wss-sand); }
.wss-pan .wss-foot svg { flex: none; }
.wss-pan .wss-foot em { margin-left: auto; font-style: normal; color: var(--wss-muted); font-weight: 500; font-size: 13px; }
.wss-empty { padding: 4px 24px 14px; color: var(--wss-muted); }

/* -- the phone sheet ----------------------------------------------------- */
.wss-sheet {
  position: fixed; inset: 0; z-index: 1300; background: var(--wss-bg); color: var(--wss-ink);
  display: flex; flex-direction: column; font: 15px/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}
.wss-sheet[hidden] { display: none; }
.wss-sheet button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wss-sheet-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--wss-line); margin: 0; }
.wss-sheet-back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.wss-sheet-in {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--wss-ink);
  border-radius: 999px; padding: 9px 12px; color: var(--wss-muted);
}
.wss-sheet-in input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; color: var(--wss-ink);
  font: 16px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}
.wss-sheet-in input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.wss-sheet-in .wss-x { width: 22px; height: 22px; background: #e6e3ea; }
.wss-sheet-cancel { font-weight: 600; font-size: 14px; flex: none; }
.wss-sheet-body { flex: 1; overflow: auto; overscroll-behavior: contain; }
.wss-pan.is-sheet {
  position: static; border-radius: 0; box-shadow: none; max-height: none; overflow: visible; padding: 14px 0 24px; width: auto;
}
.wss-pan.is-sheet .wss-cap, .wss-pan.is-sheet .wss-row, .wss-pan.is-sheet .wss-chips, .wss-pan.is-sheet .wss-covs { padding-left: 16px; padding-right: 16px; }
.wss-pan.is-sheet .wss-row { gap: 12px; padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.wss-pan.is-sheet .wss-row .ic, .wss-pan.is-sheet .wss-row img { width: 36px; height: 36px; }
.wss-pan.is-sheet .wss-cols { grid-template-columns: minmax(0, 1fr); }
.wss-pan.is-sheet .wss-cols > div + div { border-left: 0; border-top: 1px solid var(--wss-line); padding-top: 8px; margin-top: 4px; }
.wss-pan.is-sheet .wss-covs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wss-pan.is-sheet .wss-foot { margin: 8px 8px 4px; width: calc(100% - 16px); }
html.wss-lock, html.wss-lock body { overflow: hidden; }

/* -- the results head ---------------------------------------------------- */
.wss-head .wss-rhd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wss-head .wss-rhd-tx { min-width: 0; }
.wss-head .wss-sub { margin-top: 6px; }
.wss-typo.wm-search-note {
  margin: 0 0 14px; padding: 10px 14px; background: #f4f1fb; border-radius: 12px; font-size: 14px; color: #17142b;
}
.wss-typo a { color: #3f2a9c; text-decoration: underline; text-underline-offset: 3px; }
.wss-brand {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--wss-line); border-radius: 14px;
  padding: 8px 14px 8px 8px; font-size: 13.5px; color: var(--wss-ink); text-decoration: none; background: var(--wss-bg);
}
.wss-brand:hover { border-color: var(--wss-ink); }
.wss-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.wss-brand span { display: grid; line-height: 1.3; }
.wss-brand small { color: var(--wss-muted); font-size: 12px; }

/* -- no results ---------------------------------------------------------- */
.wss-none { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 24px 0 6px; color: var(--wss-ink); }
.wss-none-hint { margin: 0; color: var(--wss-muted); max-width: 460px; }
.wss-none .wss-cap { padding: 12px 0 0; justify-content: center; }
.wss-none .wss-chips { justify-content: center; padding: 4px 0; }
.wss-none .wss-covs { width: 100%; padding: 8px 0 0; }
.wss-alert-form { display: grid; gap: 10px; justify-items: center; margin: 4px 0 6px; }
.wss-alert {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--wss-ink); border-radius: 999px;
  padding: 11px 18px; font: 600 14px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--wss-ink);
  background: var(--wss-bg); cursor: pointer;
}
.wss-alert:hover { background: var(--wss-sand); }
.wss-alert-mail { display: grid; gap: 6px; justify-items: start; text-align: left; width: min(420px, 100%); }
.wss-alert-form.is-js .wss-alert-mail { display: none; }
.wss-alert-form.is-js.is-mail .wss-alert-mail { display: grid; }
.wss-alert-form.is-js.is-mail .wss-alert { display: none; }
.wss-alert-lab { font-size: 13px; font-weight: 600; }
.wss-alert-row { display: flex; gap: 8px; width: 100%; }
.wss-alert-row input {
  flex: 1; min-width: 0; border: 1px solid var(--wss-line); border-radius: 999px; padding: 10px 14px;
  font: 15px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--wss-ink); background: var(--wss-bg);
}
.wss-alert-row input:focus { outline: none; border-color: #452B90; box-shadow: 0 0 0 3px rgba(69,43,144,.12); }
.wss-alert-send {
  flex: none; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--wss-brand); color: #fff;
  font: 600 14px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer;
}
.wss-alert-fine { color: var(--wss-muted); font-size: 12px; }
.wss-alert-msg { margin: 0; font-size: 13.5px; color: #9b2c2c; }
.wss-alert-msg.is-ok { color: #1f6f43; font-weight: 600; }
.wss-alert-form[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* -- the results foot (below the lots) ----------------------------------- */
.wss-foot { display: grid; gap: 20px; margin: 28px 0 0; color: var(--wss-ink); }
.wss-rel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--wss-muted); }
.wss-rel-lab { margin-right: 4px; }
.wss-rel a { border: 1px solid var(--wss-line); border-radius: 999px; padding: 7px 12px; color: var(--wss-ink); text-decoration: none; }
.wss-rel a:hover { border-color: var(--wss-ink); }
.wss-foot-h { margin: 8px 0 0; font: 600 20px/1.2 Poppins, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.01em; }

@media (max-width:760px) {
  .wss-covs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wss-head .wss-rhd { align-items: flex-start; }
  .wss-brand { width: 100%; }
  .wss-none { padding-top: 16px; }
  .wss-alert { width: 100%; justify-content: center; }
  .wss-alert-row { flex-direction: column; }
  .wss-foot { margin-top: 20px; gap: 16px; }
}
@media (prefers-reduced-motion:reduce) { .wss-pan, .wss-sheet { scroll-behavior: auto; } }

/* -- the apex bars (mock v24 #search): the same panel, hung under the bar it belongs to ------- */
.wss-pan.is-apex { position: absolute; left: 0; top: calc(100% + 13px); width: 640px; max-width: calc(100vw - 32px); max-height: min(600px, calc(100vh - 160px)); z-index: 46; }
/* under the bar the panel follows the bar's panels (wholesale-market-apex.css, owner 10.11): radius 32, 16px on every
   side, rows 16px in on the captions' line with a light grey rounded hover; a row reached from the keyboard draws the
   brand ring inside it, a pointer press none (html[data-wma-ptr], wholesale-market-apex.js); the phone sheet keeps its own */
.wss-pan.is-apex:not(.is-sheet) { padding: 16px; border-radius: 32px; }
.wss-pan.is-apex:not(.is-sheet) .wss-cap { padding: 8px 16px 10px; }
.wss-pan.is-apex:not(.is-sheet) .wss-row { padding: 9px 16px; border-radius: 16px; }
.wss-pan.is-apex:not(.is-sheet) .wss-row:hover, .wss-pan.is-apex:not(.is-sheet) .wss-row.hi, .wss-pan.is-apex:not(.is-sheet) .wss-foot:hover, .wss-pan.is-apex:not(.is-sheet) .wss-foot.hi { background: #f4f3f6; }
.wss-pan.is-apex:not(.is-sheet) .wss-row:focus-visible, .wss-pan.is-apex:not(.is-sheet) .wss-foot:focus-visible { outline: 2px solid var(--wss-brand); outline-offset: -2px; background: #ebe9ef; }
html[data-wma-ptr] .wss-pan.is-apex:not(.is-sheet) .wss-row:focus-visible, html[data-wma-ptr] .wss-pan.is-apex:not(.is-sheet) .wss-foot:focus-visible { outline: none; }
/* the field keeps focus while the arrows move the highlight (aria-activedescendant): the arrowed row is ringed the same
   way, a row the mouse highlighted keeps the grey fill alone (wholesale-search.js sets [data-wss-kb] on the arrows) */
.wss-pan.is-apex:not(.is-sheet)[data-wss-kb] .wss-row.hi, .wss-pan.is-apex:not(.is-sheet)[data-wss-kb] .wss-foot.hi { outline: 2px solid var(--wss-brand); outline-offset: -2px; background: #ebe9ef; }
.wss-pan.is-apex:not(.is-sheet) .wss-chips, .wss-pan.is-apex:not(.is-sheet) .wss-covs { padding-left: 16px; padding-right: 16px; }
.wss-pan.is-apex:not(.is-sheet) .wss-empty { padding: 4px 16px 8px; }
.wss-pan.is-apex:not(.is-sheet) .wss-cols:not(.is-one) > div + div { padding-left: 8px; }
.wss-pan.is-apex:not(.is-sheet) .wss-cols:not(.is-one) > div:first-child { padding-right: 8px; }
.wss-pan.is-apex:not(.is-sheet) .wss-foot { margin: 8px 0 0; width: 100%; padding: 12px 16px; border-radius: 16px; }
.wss-pan.is-apex .wss-row small:empty { display: none; }
.wss-sheet.is-apex .wss-sheet-bar { display: flex; align-items: center; gap: 8px; }
.wss-sheet.is-apex .wss-sheet-back { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; }
.wss-sheet.is-apex .wss-sheet-in { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--wss-ink); border-radius: 999px; background: #fff; }
.wss-sheet.is-apex .wss-sheet-in input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; line-height: 1.25; caret-color: var(--wss-brand); }
.wss-sheet.is-apex .wss-sheet-in .wss-x { width: 22px; height: 22px; }
.wss-sheet.is-apex .wss-sheet-in { position: relative; }
.wss-sheet.is-apex .wss-ph { position: absolute; left: 38px; right: 40px; top: 50%; transform: translateY(-50%); font-size: 15px; line-height: 1.25; color: #6a6580; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wss-sheet.is-apex .wss-sheet-in input::placeholder { color: transparent; }
.wss-sheet.is-apex .wss-sheet-in:has(input:not(:placeholder-shown)) .wss-ph { visibility: hidden; }
.wss-sheet.is-apex .wss-x svg { width: 9px; height: 9px; }
.wss-sheet.is-apex .wss-cap { font-size: 10.5px; padding: 0; margin: 6px 0 10px; color: var(--wss-muted); }
/* in the phone sheet the panel is the sheet's body, not the bar's dropdown: the .is-apex hang above put it
   below the sheet (top: 100% + 13px of a full-screen sheet), off screen; the gutter is the bar's 16px */
.wss-pan.is-apex.is-sheet { position: static; width: auto; max-width: none; max-height: none; padding: 14px 16px 24px; }
.wss-pan.is-apex.is-sheet .wss-chips, .wss-pan.is-apex.is-sheet .wss-covs { padding-left: 0; padding-right: 0; }
/* Clear sits in the caption as on the desktop panel (H-114 «Phone: same») */
.wss-sheet.is-apex .wss-cap .wss-clear { font-size: 12px; }
.wss-sheet.is-apex .wss-row { gap: 12px; padding: 7px 0; font-size: 13.5px; }
.wss-sheet.is-apex .wss-row .ic, .wss-sheet.is-apex .wss-row img { width: 36px; height: 36px; }
.wss-sheet.is-apex .wss-row small { font-size: 11.5px; }
.wss-sheet.is-apex .wss-chips > button { gap: 7px; padding: 6px 10px; font-size: 12px; }
