/* ── Select menu ─────────────────────────────────────────────
   Our own dropdown over a native select (select-menu.js). The
   button takes its look from where it sits; the list drops
   under the nearest positioned box, on #FCFBFA like the search.
   ─────────────────────────────────────────────────────────── */

.select-menu__button {
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.select-menu__button:focus {
    outline: none;
}

.select-menu__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 100%;
    max-height: 320px;
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
    list-style: none;
    border: 0.3px solid rgba(20, 13, 12, 0.25);
    border-radius: 4px;
    background: #FCFBFA;
    box-shadow: 0 8px 24px rgba(20, 13, 12, 0.12);
}

/* A slim scrollbar in the list's own colours: a rounded umber thumb, no
   track or arrows. scrollbar-color for Firefox and new Chrome; the
   ::-webkit- rules for Safari. */
.select-menu__list {
    scrollbar-width: thin;
    scrollbar-color: var(--color-umber-muted) transparent;
}

.select-menu__list::-webkit-scrollbar {
    width: 10px;
}

.select-menu__list::-webkit-scrollbar-track {
    background: transparent;
}

.select-menu__list::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 10px;
    background: var(--color-umber-muted) padding-box;
}

.select-menu__list::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-umber);
}

.select-menu__list::-webkit-scrollbar-button {
    display: none;
}

.select-menu--end .select-menu__list {
    right: 0;
    left: auto;
}

.select-menu__list:focus {
    outline: none;
}

.select-menu__list:focus-visible {
    outline: 2px solid var(--color-beamwood);
    outline-offset: 2px;
}

.select-menu__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.08px;
    text-transform: none;
    color: var(--color-beamwood);
    white-space: nowrap;
    cursor: pointer;
}

.select-menu__option[hidden] {
    display: none;
}

.select-menu__option.is-active {
    background: var(--color-candle-wax);
}

/* The one chosen: copper, with a tick */
.select-menu__option[aria-selected="true"] {
    font-weight: 500;
    color: var(--color-copper-text);
}

.select-menu__option[aria-selected="true"]::after {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 7px;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(-45deg);
}
