/* PLUS-004 — the one size selector above the products (size_filter.php outfit_render_size_selector(), presentation
   'tabs') and its pointer link in the filter panels. Labels, order and muted counts as the /plussize hub chips.
   Loaded by the selector itself (?v=…), so facets.css (unversioned, linked by the shared header) is not touched. */

.sz-sel{--sz-line:#e2e2e2;--sz-muted:#6b6b6b;border:1px solid #ebebeb;border-radius:4px;padding:10px 14px 12px;margin:0 0 16px;background:#fff;
  contain:inline-size;min-width:0;scroll-margin-top:90px}
.sz-sel:focus{outline:none}
.sz-sel:focus-visible{outline:2px solid #000;outline-offset:2px}
.sz-sel-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap;margin:0 0 8px}
.sz-sel h2.sz-sel-title{font-size:15px!important;line-height:1.3!important;font-weight:700;margin:0;letter-spacing:0;text-transform:none} /* the theme's h2 sizes win otherwise */
.sz-sel-current{font-size:13px;margin:0}
.sz-clear{font-size:12.5px;color:#555;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.sz-clear:hover{color:#000}

/* tabs: native radios in a fieldset; the checked label is the dark segment */
.sz-tabs{display:inline-flex;gap:2px;border:1px solid #d6d6d6;border-radius:999px;padding:2px;margin:0 0 8px;min-width:0}
.sz-tabs legend{float:left}
.sz-tab-input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.sz-tab{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;padding:0 12px;margin:0;border-radius:999px;
  font-size:13px;font-weight:600;color:#000;cursor:pointer;white-space:nowrap}
.sz-tab small{font-weight:400;color:var(--sz-muted)}
.sz-tab-input:checked+.sz-tab{background:#000;color:#fff}
.sz-tab-input:checked+.sz-tab small{color:#d0d0d0}
.sz-tab-input:focus-visible+.sz-tab{outline:2px solid #000;outline-offset:2px}

/* panels: without :has() every panel shows (nothing is ever hidden from an older browser) */
.sz-panel{min-width:0}
.sz-panel+.sz-panel{margin-top:10px}
@supports selector(:has(*)){
  .sz-sel .sz-panel{display:none}
  .sz-sel .sz-panel+.sz-panel{margin-top:0}
  .sz-sel:has(#sz-tab-a:checked) .sz-panel-a,
  .sz-sel:has(#sz-tab-eu:checked) .sz-panel-eu,
  .sz-sel .sz-panel-only{display:block}
}

/* chips */
/* position:relative keeps the absolutely positioned .visually-hidden texts inside the (scrolling) row */
.sz-chips{position:relative;display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.sz-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;min-width:44px;padding:0 11px;
  border:1px solid #d6d6d6;border-radius:999px;background:#fff;color:#000!important;font-size:13.5px;font-weight:600;white-space:nowrap;text-decoration:none!important}
.sz-chip small{font-weight:400;font-size:11.5px;color:var(--sz-muted)}
.sz-chip:hover{border-color:#000}
.sz-chip:focus-visible{outline:2px solid #000;outline-offset:2px}
.sz-chip[aria-current="true"]{background:#000;border-color:#000;color:#fff!important}
.sz-chip[aria-current="true"] small{color:#d0d0d0}
.sz-chip[aria-current="true"]::after{content:"×";font-weight:400;font-size:16px;line-height:1}
.sz-glabel{font-size:12px;color:var(--sz-muted);font-weight:600;margin:10px 0 6px}
.sz-sel>.sz-system{margin:0;font-size:13px;color:#000}

/* primary rows: one row; on overflow the row scrolls, with a fade and (JS) arrow buttons */
.sz-scroll{position:relative;min-width:0}
.sz-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:32px;height:32px;border:1px solid #d6d6d6;border-radius:50%;
  background:#fff;color:#000;font-size:18px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.sz-nav[hidden]{display:none}
.sz-nav-prev{left:-4px}
.sz-nav-next{right:-4px}
.sz-nav:focus-visible{outline:2px solid #000;outline-offset:2px}


/* pointer in the filter panels only (rendered `hidden`; never visible in the desktop sidebar) */
/* beats Bootstrap's [hidden]{display:none!important} only inside the off-canvas filter panels */
.canvas-filter .sz-pointer[hidden]{display:flex!important}
.sz-pointer{align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:6px 12px;margin:0 0 18px;
  border:1px dashed #bdbdbd;border-radius:4px;font-size:13.5px;line-height:1.35;color:#000!important;text-decoration:none!important}
.sz-pointer b{font-weight:600}
.sz-pointer:focus-visible{outline:2px solid #000;outline-offset:2px}

@media (min-width:768px){
  /* one header line: «Μέγεθος» · tabs · selection (right); chips below */
  .sz-sel{display:flex;flex-wrap:wrap;align-items:center;column-gap:14px}
  .sz-sel-head{display:contents}
  .sz-sel-title{order:1}
  .sz-tabs{order:2;margin:0}
  .sz-sel-current{order:3;margin-left:auto}
  .sz-sel>.sz-system{order:2}
  .sz-panels{order:4;flex:0 0 100%;min-width:0}
  .sz-panels{margin-top:8px}
}

@media (max-width:767px){
  .sz-sel{border-left:0;border-right:0;border-radius:0;margin:0 -15px 12px;padding:10px 0 10px}
  .sz-sel-head,.sz-sel>.sz-system{padding-left:15px;padding-right:15px}
  .sz-sel>.sz-system{margin:0 0 6px}
  .sz-tabs{display:flex;margin:0 15px 8px}
  .sz-tab{flex:1;min-height:40px;padding:0 6px}
  .sz-chip{min-height:44px}
  .sz-scroll>.sz-chips{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-left:15px;padding:2px 15px 4px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .sz-scroll>.sz-chips::-webkit-scrollbar{display:none}
  .sz-scroll>.sz-chips>li{scroll-snap-align:start;flex:0 0 auto}
  /* continuation cue: a fade at the edge that still has sizes; without JS the right fade always shows */
  .sz-scroll::before,.sz-scroll::after{content:"";position:absolute;top:0;bottom:0;width:36px;pointer-events:none;z-index:1;transition:opacity .15s}
  .sz-scroll::before{left:0;background:linear-gradient(270deg,rgba(255,255,255,0),#fff);opacity:0}
  .sz-scroll::after{right:0;background:linear-gradient(90deg,rgba(255,255,255,0),#fff)}
  .sz-scroll.is-start::before{opacity:0}
  .sz-scroll.has-prev::before{opacity:1}
  .sz-scroll.is-ready:not(.has-next)::after{opacity:0}
  .sz-nav-prev{left:6px}
  .sz-nav-next{right:6px}
}
@media (prefers-reduced-motion:reduce){.sz-scroll::before,.sz-scroll::after{transition:none}}
