/* Searchable select (combobox.js) — same look as .input / .select, menu like the kit dropdowns */
.cbx { position: relative; }
.cbx-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; inset: auto !important; }
.cbx-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md, 12px); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-md, 15px); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cbx-btn:hover { border-color: var(--ink-400); }
.cbx-btn:focus-visible, .cbx.is-open .cbx-btn { outline: none; border-color: var(--ink-950); box-shadow: 0 0 0 3px rgba(10,10,15,.08); }
.cbx-btn.is-empty .cbx-val { color: var(--text-3); }
.cbx-btn.is-error { border-color: var(--critical); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.cbx-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx-chev { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--text-3); transition: transform .15s; }
.cbx.is-open .cbx-chev { transform: rotate(180deg); }
.cbx-menu { position: fixed; z-index: 1000; width: max-content; max-width: min(420px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(10,10,15,.28), 0 2px 6px rgba(10,10,15,.06); padding: 6px; animation: cbx-in .12s ease-out; }
@keyframes cbx-in { from { opacity: 0; transform: translateY(-4px); } }
.cbx-search { position: relative; margin-bottom: 6px; }
.cbx-search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.cbx-search input { width: 100%; height: 40px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font: inherit; font-size: var(--fs-sm); color: var(--text); }
.cbx-search input:focus { outline: none; border-color: var(--ink-950); background: var(--surface); }
.cbx-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cbx-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: var(--fs-sm); cursor: pointer; color: var(--text-2); }
.cbx-list li.is-active { background: var(--surface-2); color: var(--text); }
.cbx-list li svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-950); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; flex: 0 0 auto; }
.cbx-list li[aria-selected="true"] { color: var(--text); font-weight: 600; }
.cbx-list li[aria-selected="true"] svg { visibility: visible; }
.cbx-none { margin: 0; padding: 14px 10px; font-size: var(--fs-sm); color: var(--text-3); text-align: center; }
