:root {
    --md-select-orange: #ff8000;
    --md-select-orange-soft: #fff0e0;
}

/* Selects nativos do storefront. */
select {
    accent-color: var(--md-select-orange);
}

select:focus {
    border-color: var(--md-select-orange) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.16) !important;
}

select option:checked {
    color: #fff;
    background: var(--md-select-orange)
        linear-gradient(0deg, var(--md-select-orange) 0%, var(--md-select-orange) 100%);
}

select option:hover,
select option:focus {
    color: #fff !important;
    background: var(--md-select-orange)
        linear-gradient(0deg, var(--md-select-orange) 0%, var(--md-select-orange) 100%) !important;
    box-shadow: 0 0 0 100vmax var(--md-select-orange) inset !important;
}

/* Select2, usado nos filtros de catálogo e no checkout. */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--md-select-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.16);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    color: #a84e00;
    background-color: var(--md-select-orange-soft);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    color: #fff;
    background-color: var(--md-select-orange);
}
