/* Legacy themes and color utilities otherwise make highlighted labels white. */
.dropdown-menu .dropdown-item:not(.disabled):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus, :active, .active),
.select2-container--default .select2-results__option--highlighted:not([aria-disabled="true"]),
.iti__country.iti__highlight:not([aria-disabled="true"]),
.fm-locale .fm-locale-option:not(:disabled):is(:hover, :focus-visible, :active, [aria-current="true"]),
.rh-header-switcher-child a:not([aria-disabled="true"]):is(:hover, :focus),
.fm-store .fm-mega-menu a:is(:hover, :focus) {
    color: #000 !important;
}

.dropdown-menu .dropdown-item:not(.disabled):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus, :active, .active) > :is(span, small):not(.badge),
.select2-results__option--highlighted:not([aria-disabled="true"]) > span:not(.badge) {
    color: inherit !important;
}

/* Black text must remain readable on selected items in dark legacy themes. */
.dropdown-menu .dropdown-item:not(.disabled):not(:disabled):not([aria-disabled="true"]):not(.text-danger):is(:hover, :focus, :active, .active),
.select2-container--default .select2-results__option--highlighted:not([aria-disabled="true"]) {
    background-color: #f0f5e8 !important;
}

.dropdown-menu .dropdown-item.text-danger:not(.disabled):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus, :active, .active) {
    background-color: #fff0f2 !important;
}
