/**
 * File: assets/css/frontend/store-localization/currency.css
 * Purpose: Styles the header currency switcher widget.
 * Scope: Currency switcher presentation only.
 * Related PHP: src/Modules/CurrencySwitcher/CurrencySwitcherWidget.php
 * Package: HyperDAF Engine
 */

.hdf-currency-switcher {
    min-width: 17rem;
    max-width: 20rem;
    max-height: 22rem;
    padding: 1rem;
    overflow-y: auto;
}

.hdf-currency-switcher__heading {
    margin: 0 0 .6rem;
    color: var(--hdf-color-text-primary, #0b1f3a);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hdf-currency-switcher__list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: .2rem;
    list-style: none;
}

.hdf-currency-switcher__item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .7rem;
    padding: .5rem .65rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.hdf-currency-switcher__item:hover {
    border-color: var(--hdf-color-border, #e5eaf1);
    background: var(--hdf-color-surface-soft, #f4f8f6);
}

.hdf-currency-switcher__item.is-active {
    border-color: var(--hdf-color-primary, #1e7a4f);
    background: rgba(30, 122, 79, .07);
}

.hdf-currency-switcher__symbol {
    display: inline-grid;
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
    place-items: center;
    border-radius: .6rem;
    background: var(--hdf-color-surface-soft, #f4f8f6);
    color: var(--hdf-color-primary-strong, #1e7a4f);
    font-size: .85rem;
    font-weight: 800;
}

.hdf-currency-switcher__item.is-active .hdf-currency-switcher__symbol {
    background: var(--hdf-color-primary, #1e7a4f);
    color: #fff;
}

.hdf-currency-switcher__meta {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.hdf-currency-switcher__meta strong {
    color: var(--hdf-color-text-primary, #0b1f3a);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.hdf-currency-switcher__meta small {
    overflow: hidden;
    color: var(--hdf-color-text-muted, #5c6e84);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdf-currency-switcher__check {
    margin-left: auto;
    color: var(--hdf-color-primary, #1e7a4f);
    font-weight: 800;
}

.hdf-currency-switcher__note {
    margin: .7rem 0 0;
    color: var(--hdf-color-text-muted, #5c6e84);
    font-size: .7rem;
    line-height: 1.5;
}
