/* UI Select — styled dropdown that replaces native <select> (see ui-select.js). */
.ui-select{position:relative;width:100%;min-width:0}
.ui-select-native{position:absolute!important;inset:0;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;pointer-events:none!important;z-index:-1}

.ui-select-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;margin:0;padding:10px 14px;border:1px solid var(--line-strong,#cfd7e3);border-radius:12px;background:#fff;color:var(--navy,#0f1b33);font:inherit;font-size:.95rem;font-weight:500;text-align:start;cursor:pointer;transition:border-color .2s,box-shadow .2s,background .2s}
.ui-select-button:hover{border-color:#b5c1d4;background:#fcfdff}
.ui-select-button:focus-visible,.ui-select.is-open .ui-select-button{outline:none;border-color:var(--blue,#2358ed);box-shadow:0 0 0 4px rgba(35,88,237,.13)}
.ui-select-button:disabled{opacity:.55;cursor:not-allowed}
.ui-select-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ui-select.is-placeholder .ui-select-value{color:var(--muted,#6b778c)}
.ui-select.is-invalid .ui-select-button{border-color:#e5484d}
.ui-select-chevron{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:8px;background:var(--soft,#f5f7fb);color:var(--muted,#6b778c);transition:transform .2s,background .2s,color .2s}
.ui-select-chevron svg{width:15px;height:15px}
.ui-select.is-open .ui-select-chevron{transform:rotate(180deg);background:var(--blue-soft,#eef3ff);color:var(--blue,#2358ed)}

.ui-select-list{position:absolute;z-index:80;top:calc(100% + 6px);inset-inline:0;min-width:max(100%,200px);max-height:300px;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--line,#e3e8ef);border-radius:14px;box-shadow:0 22px 50px -18px rgba(15,27,51,.32),0 2px 6px rgba(15,27,51,.06);outline:none;animation:uiSelectIn .14s ease-out;scrollbar-width:thin}
.ui-select.is-up .ui-select-list{top:auto;bottom:calc(100% + 6px);animation-name:uiSelectUp}
.ui-select-list[hidden]{display:none}
@keyframes uiSelectIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes uiSelectUp{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.ui-select-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:8px 10px 8px 12px;border-radius:9px;color:var(--navy,#0f1b33);font-size:.94rem;line-height:1.35;cursor:pointer;user-select:none}
html[dir=rtl] .ui-select-option{padding:8px 12px 8px 10px}
.ui-select-option.is-active{background:var(--soft,#f5f7fb)}
.ui-select-option[aria-selected=true]{color:var(--blue,#2358ed);font-weight:650;background:var(--blue-soft,#eef3ff)}
.ui-select-option[aria-selected=true].is-active{background:#e4ecff}
.ui-select-option.is-disabled{opacity:.45;cursor:not-allowed}
.ui-select-check{display:grid;place-items:center;flex-shrink:0;width:18px;height:18px;color:var(--blue,#2358ed);opacity:0}
.ui-select-check svg{width:16px;height:16px}
.ui-select-option[aria-selected=true] .ui-select-check{opacity:1}

/* Contexts that used compact selects */
.catalog-bulk-bar .ui-select-button,.catalog-admin-filter .ui-select-button{min-height:40px;padding-block:6px;font-size:.9rem;border-radius:10px}
.admin-main .ui-select-button{font-size:.92rem}
/* Shop toolbar: match the search box height */
.shop-select .ui-select-button{min-height:48px;border-radius:12px}

/* Touch screens: a little more room per option */
@media (pointer:coarse){.ui-select-option{min-height:46px}}
@media (prefers-reduced-motion:reduce){.ui-select-list{animation:none}.ui-select-chevron{transition:none}}
