/* Shared progressive select controls for the broker and regulator directories. */
.fxm-directory-select { position:relative; display:inline-flex; min-width:0; vertical-align:middle; font-family:var(--font-family-body); }
.fxm-directory-select > select[hidden], .fxm-directory-select__menu[hidden] { display:none !important; }
.fxm-directory-select__trigger { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; width:100%; height:36px; padding:0 12px; border:1px solid #d8dce8; border-radius:999px; background:white; color:var(--color-on-surface,#272e42); font-family:inherit; font-size:13px; line-height:1.5; text-align:start; cursor:pointer; transition:border-color .15s,background .15s,box-shadow .15s; }
.fxm-directory-select__value { display:block; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.fxm-directory-select__chevron { flex:none; width:14px; height:14px; color:#77788a; transition:transform .15s,color .15s; }
.fxm-directory-select__trigger.is-open > .fxm-directory-select__chevron { transform:rotate(180deg); color:var(--color-primary,#4f34d9); }
.fxm-directory-select .fxm-directory-select__trigger:focus-visible { outline:2px solid var(--color-primary,#4f34d9); outline-offset:3px; }
.fxm-directory-select__trigger:disabled { opacity:.45; cursor:not-allowed; }
.fxm-directory-select__trigger.is-open { border-color:#c0b3ee; background:#faf9ff; }
.fxm-directory-select--size { min-width:76px; }
.fxm-directory-page-size { display:flex; align-items:center; flex-wrap:nowrap; gap:8px; margin:0; white-space:nowrap; }
.fxm-directory-page-size > label { margin:0; font-size:12px; }
.fxm-directory-page-size > select[data-fxm-directory-select] { height:36px; min-width:76px; padding:0 12px; border:1px solid #d8dce8; border-radius:999px; background:white; color:var(--color-on-surface,#272e42); font-family:var(--font-family-body); font-size:13px; }
.fxm-broker-directory .fxm-broker-results__tools, .fxm-regulator-directory .fxm-regulator-results__tools { min-width:0; }
.fxm-broker-directory .fxm-broker-sort, .fxm-regulator-directory .fxm-regulator-sort { box-sizing:border-box; gap:3px; min-width:0; max-width:100%; min-height:44px; padding:3px; border:1px solid #d8dce8; border-radius:999px; background:white; transition:border-color .15s,box-shadow .15s; }
.fxm-broker-sort > .fxm-directory-select, .fxm-regulator-sort > .fxm-directory-select { flex:1; min-width:0; }
.fxm-broker-sort .fxm-directory-select__trigger, .fxm-regulator-sort .fxm-directory-select__trigger { height:36px; border:0; box-shadow:none; }
.fxm-broker-sort .fxm-directory-select__value, .fxm-regulator-sort .fxm-directory-select__value { max-width:164px; }
.fxm-broker-sort > select[data-fxm-directory-select], .fxm-regulator-sort > select[data-fxm-directory-select] { min-width:0; height:36px; padding:0 12px; font-size:13px; }
.fxm-broker-sort > button[data-fxm-sort-direction], .fxm-regulator-sort > a { position:relative; display:grid; place-items:center; flex:none; box-sizing:border-box; width:36px; height:36px; margin:0; padding:0; border:0; border-radius:50%; background:white; color:#646b7d; }
.fxm-broker-sort > button[data-fxm-sort-direction]::before, .fxm-regulator-sort > a::before { position:absolute; top:10px; bottom:10px; left:-2px; width:1px; background:#e5e7ef; content:''; }
.fxm-broker-sort > button[data-fxm-sort-direction]:focus-visible, .fxm-regulator-sort > a:focus-visible { outline:2px solid var(--color-primary,#4f34d9); outline-offset:2px; }
.fxm-broker-sort:has(.fxm-directory-select.is-open), .fxm-regulator-sort:has(.fxm-directory-select.is-open) { border-color:#c0b3ee; box-shadow:0 0 0 3px #4f34d90a; }
.fxm-directory-select__menu { box-sizing:border-box; position:fixed; display:grid; gap:2px; min-width:180px; max-width:calc(100vw - 24px); padding:6px; overflow-y:auto; overscroll-behavior:contain; border:1px solid #e5e2f1; border-radius:var(--radius-lg,1rem); background:white; color:var(--color-on-surface,#272e42); box-shadow:0 12px 32px #26194d1f,0 2px 6px #26194d08; font-family:var(--font-family-body); font-size:13px; line-height:1.5; scrollbar-width:thin; scrollbar-color:#c9c0e0 transparent; }
.fxm-directory-select__menu--size { min-width:96px; }
.fxm-directory-select__option { display:flex; align-items:center; justify-content:space-between; gap:14px; box-sizing:border-box; width:100%; min-width:0; min-height:38px; padding:8px 12px; border:0; border-radius:10px; background:transparent; color:inherit; font-family:inherit; font-size:13px; line-height:1.5; text-align:start; cursor:pointer; }
.fxm-directory-select__option-label { min-width:0; overflow-wrap:anywhere; }
.fxm-directory-select__check { flex:none; width:15px; height:15px; opacity:0; }
.fxm-directory-select__option.is-selected { background:var(--color-primary-container,#f0edff); color:var(--color-primary,#4f34d9); }
.fxm-directory-select__option.is-selected > .fxm-directory-select__check { opacity:1; }
.fxm-directory-select__option.is-active { background:#f5f2ff; box-shadow:inset 0 0 0 1px #dcd4f7; }
.fxm-directory-select__option.is-selected.is-active { background:var(--color-primary-container,#f0edff); }
.fxm-directory-select__option:disabled { opacity:.4; cursor:not-allowed; }
@media (hover:hover) { .fxm-directory-select__trigger:hover { border-color:#bdb0e7; background:#faf9ff; } .fxm-broker-sort > button[data-fxm-sort-direction]:hover, .fxm-regulator-sort > a:hover { background:var(--color-primary-container,#f0edff); color:var(--color-primary,#4f34d9); } .fxm-directory-select__option:not(:disabled):hover { background:#f5f2ff; } .fxm-directory-select__option.is-selected:hover { background:var(--color-primary-container,#f0edff); } }
@media (max-width:600px) { .fxm-broker-directory .fxm-broker-sort, .fxm-regulator-directory .fxm-regulator-sort { padding:1px; } .fxm-broker-sort .fxm-directory-select__value, .fxm-regulator-sort .fxm-directory-select__value { max-width:112px; } .fxm-directory-select__trigger { gap:8px; padding-inline:11px; } .fxm-broker-sort .fxm-directory-select__trigger, .fxm-regulator-sort .fxm-directory-select__trigger, .fxm-directory-select--size .fxm-directory-select__trigger { height:40px; } .fxm-broker-sort > button[data-fxm-sort-direction], .fxm-regulator-sort > a { width:40px; height:40px; } .fxm-directory-select__option { min-height:44px; padding-block:10px; } }
@media (prefers-reduced-motion:reduce) { .fxm-directory-select__trigger, .fxm-directory-select__chevron, .fxm-broker-directory .fxm-broker-sort, .fxm-regulator-directory .fxm-regulator-sort { transition:none; } }
