/* Brandon's batch 20261115-817395 (fp817395.py): the /batteries filter panel (FILTER_PANEL_V8_ON; Design's fp.css, v10) and the no-seller box
   (NO_SELLER_BOX_ON; na.css), each only under its switch's class on <html>; :where() keeps each rule at the specificity of the rule it follows, and
   this file is last in the head. Off, this file answers 404. */

/* ---- the panel: no dividers, groups 24px apart, rows 8px apart; 16px inputs on touch, 44px targets (Design 02:32Z) */
:where(.g-filter-panel) .fp .sr,:where(.g-filter-panel) .fp.fp-js .fp-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0;margin:0;border:0}
:where(.g-filter-panel) .fp .ux-filter-title{border:0;margin:0 0 12px;padding:0}
:where(.g-filter-panel) .fp>.filter-group{border:0!important;margin:0 0 20px!important;padding:0!important}
:where(.g-filter-panel) .fp .ux-mode{display:flex}
:where(.g-filter-panel) .fp .ux-mode button{flex:1;min-height:44px}
:where(.g-filter-panel) .fp #filterForm{display:flex;flex-direction:column;gap:24px}
:where(.g-filter-panel) .fp #filterForm[data-dd] :is(.filter-group,.fp-group,fieldset){border:0!important;margin:0!important;padding:0!important;min-width:0}
:where(.g-filter-panel) .fp .fp-group{display:flex;flex-direction:column;gap:8px}
:where(.g-filter-panel) .fp #filterForm[data-dd] .fp-group>.filter-group:not(.dd):not(.fp-dd){display:flex;flex-direction:column;gap:8px}
:where(.g-filter-panel) .fp #filterForm[data-dd] .filter-group:not(.dd)>.dd{margin:0!important}
:where(.g-filter-panel) .fp .fp-h{margin:0 0 4px;padding:0;font-size:14px;font-weight:600;color:var(--ink)}
:where(.g-filter-panel) .fp .fp-sec{margin:8px 0 -12px;font-size:15px}
:where(.g-filter-panel) .fp .dd{margin:0}
:where(.g-filter-panel) .fp .dd-row{font-size:14px}
:where(.g-filter-panel) .fp .dd-row .dd-t{flex:1;min-width:0;font-weight:600}
:where(.g-filter-panel) .fp .dd-row .dd-v{color:var(--muted);white-space:nowrap}
:where(.g-filter-panel) .fp .dd-row:is(.dd-set,.fp-set) .dd-v{color:var(--green);font-weight:600}
:where(.g-filter-panel) .fp .dd-row:not(.dd-set):not(.fp-set) .dd-v{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}  /* unset: no "Any" on screen */
/* a range: Min and Max boxes side by side, the unit inside the box */
:where(.g-filter-panel) .fp .fp-pop{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;border:0}
:where(.g-filter-panel) .fp .fp-pop[hidden]{display:none}
:where(.g-filter-panel) .fp .fp-mm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px}
:where(.g-filter-panel) .fp .fp-mm label{position:relative;display:block;margin:0;padding:0}
:where(.g-filter-panel) .fp .fp-mm input{width:100%;min-height:44px;font-size:16px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);box-sizing:border-box}
:where(.g-filter-panel) .fp .fp-mm label:has(.fp-u) input{padding-right:26px}
:where(.g-filter-panel) .fp .fp-mm label:has(.fp-ul) input{padding-right:50px}
:where(.g-filter-panel) .fp .fp-u{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-style:normal;font-size:13px;color:var(--muted);pointer-events:none}
/* an open row is one box: the row and its Min/Max inside a single green outline */
:where(.g-filter-panel) .fp #filterForm[data-dd] .fp-open{border:1px solid var(--green)!important;outline:1px solid var(--green);outline-offset:-2px;border-radius:6px;background:var(--surface)}
:where(.g-filter-panel) .fp .fp-open>.dd-row{border:0;outline:0;background:none}
:where(.g-filter-panel) .fp #filterForm[data-dd] .fp-open>.fp-pop{padding:0 10px 10px!important}
:where(.g-filter-panel) .fp .fp-basis{position:relative;display:block;margin:0;padding:0}
:where(.g-filter-panel) .fp .fp-basis select{appearance:none;-webkit-appearance:none;width:100%;min-height:44px;padding:0 32px 0 10px;font-size:16px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}
:where(.g-filter-panel) .fp .fp-basis svg{position:absolute;right:10px;top:50%;width:16px;height:16px;transform:translateY(-50%);fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* checkboxes, their counts quiet */
:where(.g-filter-panel) .fp .fp-checks{gap:2px}
:where(.g-filter-panel) .fp .fp-check{display:flex;align-items:center}
:where(.g-filter-panel) .fp .fp-check label{flex:1;display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:0;font-size:14px;color:var(--ink)}
:where(.g-filter-panel) .fp .fp-check input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--green)}
:where(.g-filter-panel) .fp .fp-n{color:var(--muted)}
/* the foot: Clear all; Show N products only in the phone's sheet */
:where(.g-filter-panel) .fp .fp-actions{display:flex;align-items:center;gap:16px;margin:0;border-top:0}
:where(.g-filter-panel) .fp .fp-clear{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-weight:600;font-size:14px}
:where(.g-filter-panel) .fp .fp-show{display:none}
:where(.g-filter-panel).cx-sheet-open .fp .fp-show{display:inline-flex;flex:1;justify-content:center;align-items:center;min-height:48px}
@media (pointer:fine){
  :where(.g-filter-panel) .fp .dd-row{padding:4px 6px 4px 10px;gap:4px}
  :where(.g-filter-panel) .fp .dd-row .dd-v{font-size:13px}
  :where(.g-filter-panel) .fp #filterForm[data-dd] .fp-open>.fp-pop{padding:0 8px 8px!important}
  :where(.g-filter-panel) .fp :is(.fp-mm input,.fp-basis select){font-size:14px}
  :where(.g-filter-panel) .fp .fp-basis select{padding:0 28px 0 8px}
  :where(.g-filter-panel) .fp .fp-basis svg{right:8px}
}
@media (min-width:1024px){:where(.g-filter-panel) aside.filters.fp{padding:16px 12px}}

/* ---- the no-seller box: the seller button's white box (cat-v2.css .pm-srow, .pm-sl) without the yellow end; not a link, so no hover */
:where(.g-no-seller-box) .cx-card .na-row{background:var(--surface);cursor:default}
:where(.g-no-seller-box) .cx-card .na-row .pm-sl{padding-right:12px}
:where(.g-no-seller-box) .cx-card .na-row .pm-sl small{color:var(--muted)}
:where(.g-no-seller-box) .cx-card .na-keep{visibility:hidden}
@media (hover:hover) and (pointer:fine){:where(.g-no-seller-box) .cx-card .na-row:hover{border-color:var(--line)}}
