/* Glass dropdowns (always on) and water drops (admin setting "מים", off by default; html.lgw = water running). */

/* ---------- glass dropdowns: the same panel as the sort menu ---------- */
.lgsel{position:relative;z-index:20;display:block}
.lgsel.auto{display:inline-block}
.lgsel.open{z-index:40}
.lgsel-native{display:none!important}
.lgsel-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font:inherit;font-size:14px;color:var(--ink);text-align:start;padding-inline:14px 12px!important;background-image:none!important}
.lgsel-btn:disabled{opacity:.55;cursor:default}
.lgsel-btn>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lgsel .menu{max-height:min(440px,60vh);overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain;z-index:30}
.lgsel .menu::-webkit-scrollbar{display:none}
.lgsel.up .menu{top:auto;bottom:calc(100% + 8px);transform-origin:bottom right}
.lgsel .menu .lgsel-h{padding:8px 12px 4px;font-size:12px;font-weight:600;color:var(--ink-3)}

/* ---------- water ---------- */
.lgc{position:absolute;left:0;top:0;z-index:-1;pointer-events:none}
html:not(.lgw) .lgc{display:none}
/* Bars show only the drop: no selected / hover / press / focus background, no press shrink, no old sliding indicator.
   Static selectors, so a bar the app has just re-rendered never flashes the old background before the script sees it.
   No SVG refraction (backdrop-filter:url()) anywhere: it re-filters on every scroll frame. */
html.lgw :is(#nav,#tabbar) .ind{opacity:0!important}
html.lgw :is(.seg,#nav,#tabbar,.menu,.swatches,.bgs,.lgg)>:is(button,a):not(.swc):not(.bgt):not(.chip):is([aria-pressed="true"],[aria-selected="true"],[aria-current="page"],:hover,:active,:focus){background:transparent!important;box-shadow:none!important;transition:color .2s!important}
html.lgw :is(.seg,#nav,#tabbar,.menu,.swatches,.bgs,.lgg)>:is(button,a):not(.chip):active{transform:none!important}
html.lgw :is(.swatches,.bgs,.lgg)>:is(.swc,.bgt)[aria-pressed="true"]:not(:focus-visible){outline-color:transparent!important}
