/* Match the language picker and SearchSelect, including inside scrolling dialogs.
   The original select remains the form control and keeps its existing layout. */
.themed-select-menu {
    position: fixed;
    inset: auto;
    margin: 0;
    box-sizing: border-box;
    padding: 0.25rem;
    background: var(--colour-surface);
    color: var(--colour-text);
    border: 1px solid var(--colour-border);
    border-radius: var(--control-radius);
    box-shadow: 0 14px 32px rgba(26, 26, 26, 0.11);
    overflow: auto;
    overscroll-behavior: contain;
    font-family: inherit;
    z-index: 1050;
}

.themed-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.15rem;
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    line-height: 1.35;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.themed-select-option > span { min-width: 0; }
.themed-select-option > i { flex-shrink: 0; }
.themed-select-option:hover,
.themed-select-option.is-active,
.themed-select-option[aria-selected="true"] {
    background: var(--theme-light);
    color: var(--theme-primary);
}
.themed-select-option[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    color: var(--colour-text-secondary);
}
.themed-select-group {
    padding: 0.5rem 0.55rem 0.25rem;
    font-size: var(--font-size-small);
    font-weight: 650;
    color: var(--colour-text-secondary);
}
@media (pointer: coarse) {
    .themed-select-option { min-height: 2.75rem; }
}
