/* FinCo branded dropdowns (fselect.js, 2026-10-25). Navy panel, gold focus and gold tick on the chosen option,
   Playfair group labels, bright-white option text. Colours only from tokens.css. */
.fsel { position: relative; display: inline-block; vertical-align: middle; max-width: 100%; }
.fsel--field { display: block; width: 100%; }
.fsel-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important; min-width: 0 !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }

.fsel-btn { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; min-height: 44px; cursor: pointer; text-align: left;
  font: inherit; color: var(--text-bright); background: var(--navy3); border: 1px solid var(--field-border); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast); }
.fsel-btn:hover { border-color: var(--field-border-hover); }
.fsel-btn:focus { outline: none; }
.fsel-btn:focus-visible, .fsel.is-open .fsel-btn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.22); }
.fsel-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.fsel-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-chev { flex: none; color: var(--gold); transition: transform var(--dur) var(--ease); }
.fsel.is-open .fsel-chev { transform: rotate(180deg); }

.fsel--pill .fsel-btn { min-height: 40px; width: auto; min-width: 11.5rem; padding: 0.45rem 0.95rem 0.45rem 1.05rem; border-radius: var(--radius-pill);
  border-color: rgba(201,168,76,0.4); font-weight: 600; font-size: 0.9rem; }
.fsel--pill .fsel-btn:hover { border-color: rgba(201,168,76,0.75); background: var(--navy4); }

.fsel-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(380px, calc(100vw - 32px));
  border-radius: var(--radius); background: var(--navy2); border: 1px solid rgba(201,168,76,0.45);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13,27,42,0.6); overflow: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease); }
.fsel-pop.up { top: auto; bottom: calc(100% + 6px); }
.fsel-pop.right { left: auto; right: 0; }
.fsel-pop.enter { opacity: 0; transform: translateY(-4px); }
.fsel-pop.up.enter { transform: translateY(4px); }
.fsel-search-wrap { padding: 0.55rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fsel-search { width: 100%; padding: 0.55rem 0.75rem; font-size: 0.9rem; border-radius: var(--radius-sm); background: var(--navy); }
.fsel-list { list-style: none; margin: 0; padding: 0.35rem; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; outline: none; }
.fsel-list ul { list-style: none; margin: 0; padding: 0; }
.fsel-opt { position: relative; display: flex; align-items: center; min-height: 40px; padding: 0.5rem 2.2rem 0.5rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--text-bright); font-size: 0.93rem; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.fsel-opt.is-active { background: rgba(201,168,76,0.16); box-shadow: inset 0 0 0 1px rgba(201,168,76,0.55); }
.fsel-opt[aria-selected="true"] { color: var(--gold); font-weight: 600; }
.fsel-opt[aria-selected="true"]::after { content: ''; position: absolute; right: 0.95rem; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fsel-opt[aria-disabled="true"] { color: var(--text-dim); cursor: not-allowed; }
.fsel-group + .fsel-group, .fsel-opt + .fsel-group { margin-top: 0.3rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.3rem; }
.fsel-group-label { display: block; padding: 0.45rem 0.8rem 0.25rem; font-family: var(--font-display); font-size: 0.95rem; color: var(--gold); }
.fsel-empty { padding: 0.7rem 0.8rem; color: var(--text-muted); font-size: 0.9rem; }
@media (max-width: 600px) { .fsel--pill .fsel-btn { min-width: 0; } .fsel-pop { max-width: calc(100vw - 32px); } }
@media (prefers-reduced-motion: reduce) { .fsel-pop, .fsel-chev { transition: none; } }
@media print { .fsel-pop { display: none !important; } .fsel-btn { border-color: rgba(13,27,42,0.35); background: #fff; color: #0d1b2a; } }
