/* In-page searchable list for long dropdowns (static/js/long-select.js). */
.bb-ls { position: relative; width: 100%; }
.bb-ls[hidden] { display: none; }
.bb-ls-native { position: absolute !important; inset: 0 auto auto 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.bb-ls-button {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box;
    width: 100%; min-height: 44px; padding: 8px 12px; text-align: start; cursor: pointer;
    font: inherit; color: inherit; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px;
}
.bb-ls-button:disabled { cursor: not-allowed; opacity: .6; }
.bb-ls-button:focus-visible { outline: 3px solid rgba(220, 38, 38, .35); outline-offset: 2px; }
.bb-ls-button.is-placeholder .bb-ls-value { opacity: .65; }
.bb-ls-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bb-ls-caret { flex: none; width: 8px; height: 8px; margin-inline-start: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.bb-ls.is-open .bb-ls-caret { transform: translateY(2px) rotate(225deg); }
.bb-ls-panel {
    position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 3000; box-sizing: border-box;
    padding: 8px; background: #fff; color: #1f2937; border: 1px solid #d0d5dd; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
}
.bb-ls-search { box-sizing: border-box; width: 100%; min-height: 38px; margin-bottom: 6px; padding: 6px 10px; font: inherit; color: inherit; background: #f9fafb; border: 1px solid #e4e7ec; border-radius: 8px; }
.bb-ls-list { max-height: 260px; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.bb-ls-option { padding: 8px 10px; border-radius: 8px; cursor: pointer; line-height: 1.6; }
.bb-ls-option.is-active { background: #fef2f2; }
.bb-ls-option[aria-selected="true"] { font-weight: 700; color: #b91c1c; }
.bb-ls-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.bb-ls-empty { padding: 8px 10px; opacity: .65; }

body.theme-dark .bb-ls-panel { background: #1f1f1f; color: #f2f4f7; border-color: rgba(255, 255, 255, .14); }
body.theme-dark .bb-ls-search { background: #141414; border-color: rgba(255, 255, 255, .14); }
body.theme-dark .bb-ls-option.is-active { background: rgba(220, 38, 38, .18); }
body.theme-dark .bb-ls-option[aria-selected="true"] { color: #fda29b; }
