/* Site-styled dropdown for single-value selects (see sc-select.js). The closed control keeps the template
   .form-control metrics; the open panel reuses the template .dropdown-menu / .dropdown-item look so it matches the
   header dropdowns. Without JavaScript nothing here applies (the native select stays visible). */
.sc-select{position:relative;display:block;width:100%}
.sc-select .sc-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.sc-select-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;cursor:pointer;padding-right:2rem;background-color:#fff;color:inherit;font:inherit}
.sc-select-toggle .sc-select-value{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-select-toggle .sc-select-caret{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:#707070;pointer-events:none;transition:transform .15s}
.sc-select-toggle[aria-expanded="true"] .sc-select-caret{transform:translateY(-50%) rotate(180deg)}
/* A toggle that stands for a template select.form-control shows that select's own arrow (main.css: arrow-down.svg at
   center right .75rem), not an icon font caret. */
.sc-select-toggle.form-control{background-image:url(../images/arrow-down.svg);background-repeat:no-repeat;background-position:center right .75rem}
.sc-select-toggle.form-control .sc-select-caret{display:none}
/* …and that select's own text metrics (main.css .form-control 14px/1.5 in #495057, select.form-control 28px arrow room;
   31.3px tall): the <button> must not inherit the surrounding 16px text. The first option reads like any option there. */
.sc-select-toggle.form-control{font-size:.875rem;line-height:1.5;padding-right:calc(.75rem + 1rem);color:#495057}
/* …and its text rows: the template's native select draws its text at the top of its 20px content box (the 21px value line
   is not centred), so a centred value line sat one pixel above the ZIP glyph rows (G1 final review: search İl 8-19 vs
   9-20, sort 10-22 vs 11-23; the same fix G3 made for the orders filters and G4 for the listings sort). A native select
   also clips a long value without an ellipsis. */
/* …and its closed-control internals (G1-05, root 14 Oct): the template's native select.form-control computes display:block,
   justify-content:normal, align-items:center, text-align:start, overflow-x:clip and white-space:pre (Chrome form-control
   defaults), so the toggle does too instead of a flex row. The value is one block line filling the 20px content box, so its
   21px line starts at the box top like the native select's text (the G1 final review row fix above, without flex). */
.sc-select-toggle.form-control{display:block;justify-content:normal;align-items:center;text-align:start;overflow:clip;white-space:pre}
.sc-select-toggle.form-control .sc-select-value{display:block;height:100%;text-overflow:clip}
.sc-select-placeholder .sc-select-toggle.form-control .sc-select-value{color:inherit}
.sc-select-toggle:disabled{cursor:not-allowed;background-color:#e9ecef;opacity:1}
.sc-select-toggle:focus-visible{outline:3px solid #1394c2;outline-offset:2px}
.sc-select-placeholder .sc-select-value{color:#6c757d}
.sc-select-menu{position:absolute;top:100%;left:0;right:0;z-index:1050;margin:2px 0 0;padding:.35rem 0;min-width:100%;max-height:16rem;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #e2e8ed;border-radius:4px;box-shadow:0 8px 24px rgba(38,55,70,.14);list-style:none;font-size:.875rem;line-height:1.5}
.sc-select-menu.show{display:block}
.sc-select-menu:focus{outline:none}
.sc-select-up .sc-select-menu{top:auto;bottom:100%;margin:0 0 2px}
.sc-select-option{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.45rem 1rem;color:#515660;cursor:pointer;white-space:normal;overflow-wrap:anywhere;background:none;border:0}
.sc-select-option.sc-active{background:#f4f6f8;color:#ff6200}
.sc-select-option[aria-selected="true"]{color:#ff6200;font-weight:500}
.sc-select-option[aria-selected="true"]::after{content:"\f00c";font-family:"Font Awesome 5 Free";font-weight:900;font-size:.75rem;flex:none}
.sc-select-option[aria-disabled="true"]{color:#adb5bd;cursor:not-allowed;background:none}
.sc-select-group{padding:.35rem 1rem .15rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#707070}
@media (max-width:575px){.sc-select-menu{max-height:min(16rem,55vh)}.sc-select-option{padding:.6rem 1rem;min-height:44px}}
@media (prefers-reduced-motion:reduce){.sc-select-toggle .sc-select-caret{transition:none}}

/* Management controls use the same accessible widget with the back-office palette. */
.admin-body .sc-select{min-width:0}
.admin-body .sc-select-toggle.form-control{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:9px 36px 9px 12px;border:1px solid #dce2e9;border-radius:8px;background-color:#fff;color:#334258;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden}
.admin-body .sc-select-toggle.form-control .sc-select-value{height:auto;overflow:hidden;text-overflow:ellipsis}
.admin-body .sc-select-toggle:hover{border-color:#e5a17b}
.admin-body .sc-select-toggle:focus-visible,.admin-body .sc-select-toggle[aria-expanded="true"]{outline:2px solid #f4c8af;outline-offset:1px;border-color:#e4773d}
.admin-body .sc-select-menu{z-index:1600;top:100%;bottom:auto;min-width:100%;margin:5px 0 0;padding:5px;border:1px solid #e3e8ed;border-radius:10px;background:#fff;box-shadow:0 12px 30px #24354a24;max-height: min(250px, 45vh)}
.admin-body .sc-select-up .sc-select-menu{top:auto;bottom:100%;margin:0 0 5px}
.admin-body .sc-select-menu[hidden]{display:none!important}
.admin-body .sc-select-option{min-height:36px;padding:8px 10px;border-radius:7px;color:#465463;font-size:12px;line-height:1.4}
.admin-body .sc-select-option.sc-active{background:#f2f4f6;color:#a94e20}
.admin-body .sc-select-option[aria-selected="true"]{color:#bc5726;font-weight:700}
.admin-body .sc-select-option[aria-selected="true"]::after{content:'✓';font:700 13px/1 system-ui,sans-serif}
.admin-body .sc-select-option[aria-disabled="true"]{color:#a7afb8}
