/* Currency menus in the top bar and mobile navigation. */
.hh-topbar-currencies {
    width: min(17.5rem, calc(100vw - 2rem));
    max-height: min(22.5rem, calc(100dvh - 6rem));
    margin-top: .375rem;
    padding: .375rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border-radius: .75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-fg-secondary) var(--color-surface);
}
.hh-topbar-currencies button {
    position: relative;
    min-height: 2.75rem;
    gap: .625rem;
    padding: .625rem 2rem .625rem .75rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    background: transparent;
    color: var(--color-fg);
    line-height: 1.4;
    transition: background-color .15s ease, border-color .15s ease;
}
.hh-topbar-currencies button:hover {
    background: var(--color-soft);
    color: var(--color-fg);
}
.hh-topbar-currencies button[aria-current] {
    border-color: rgb(255 192 0 / 24%);
    background: rgb(255 192 0 / 10%);
    color: var(--color-fg);
}
.hh-topbar-currencies button[aria-current]:hover {
    background: rgb(255 192 0 / 16%);
}
.hh-topbar-currencies button[aria-current]::after {
    content: '';
    position: absolute;
    right: .875rem;
    top: calc(50% - .375rem);
    width: .375rem;
    height: .625rem;
    border: solid var(--color-accent-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.hh-topbar-currencies button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
@supports selector(::-webkit-scrollbar) {
    .hh-topbar-currencies { scrollbar-width: auto; scrollbar-color: auto; }
}
.hh-topbar-currencies::-webkit-scrollbar { width: 6px; height: 6px; }
.hh-topbar-currencies::-webkit-scrollbar-track { background: transparent; }
.hh-topbar-currencies::-webkit-scrollbar-thumb {
    border: 0;
    border-radius: 999px;
    background: #756331;
}
.hh-topbar-currencies::-webkit-scrollbar-thumb:hover { background: #b69a4c; }
.hh-topbar-currencies::-webkit-scrollbar-button { display: none; }
@media (prefers-reduced-motion: reduce) {
    .hh-topbar-currencies button { transition: none; }
}
