/**
 * File: assets/css/frontend/header/currency-converter.css
 * Purpose: Modern compact styles for the theme-owned header currency converter.
 * Scope: Currency converter dropdown presentation only.
 * Related PHP: src/Frontend/Header/Components/CurrencyConverter.php
 * Related JS: assets/js/frontend/header/currency-converter.js
 * Package: HyperDAF Pro
 */

/* Narrower compact dropdown shell for the currency slot. */
[data-hdf-header-utility-container="currency"] .hdf-header-utility__widget {
    width: min(17.5rem, calc(100vw - 2rem));
    max-height: 26rem;
    padding: .6rem;
    overflow: hidden;
}

.hdf-currency-converter {
    width: 100%;
    box-sizing: border-box;
}

.hdf-currency-converter__heading {
    margin: 0 0 .45rem;
    padding: 0 .35rem;
    color: var(--hdf-color-text-primary, #0b1f3a);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hdf-currency-converter__search {
    display: block;
    margin-bottom: .45rem;
}

.hdf-currency-converter__search input {
    width: 100%;
    box-sizing: border-box;
    padding: .45rem .65rem;
    border: 1px solid var(--hdf-color-border, #e5eaf1);
    border-radius: .6rem;
    background: var(--hdf-color-surface-soft, #f4f8f6);
    font: inherit;
    font-size: .76rem;
}

.hdf-currency-converter__search input:focus {
    border-color: #79B530;
    outline: none;
}

.hdf-currency-converter__list {
    display: grid;
    max-height: 15rem;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: .1rem;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--hdf-color-border-strong, #c9d4c0) transparent;
}

.hdf-currency-converter__list::-webkit-scrollbar { width: 6px; }
.hdf-currency-converter__list::-webkit-scrollbar-track { background: transparent; }
.hdf-currency-converter__list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--hdf-color-border-strong, #c9d4c0);
}

.hdf-currency-converter__item {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: .6rem;
    padding: .42rem .6rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hdf-currency-converter__item:hover {
    border-color: #79B530;
    background: #79B530;
}

.hdf-currency-converter__item:hover .hdf-currency-converter__meta strong,
.hdf-currency-converter__item:hover .hdf-currency-converter__meta small,
.hdf-currency-converter__item:hover .hdf-currency-converter__symbol,
.hdf-currency-converter__item:hover .hdf-currency-converter__check {
    color: #fff;
}

.hdf-currency-converter__item:hover .hdf-currency-converter__meta strong {
    font-weight: 800;
}

.hdf-currency-converter__item.is-active {
    border-color: #79B530;
    background: rgba(121, 181, 48, .08);
}

.hdf-currency-converter__symbol {
    flex: 0 0 1.75rem;
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .5rem;
    background: var(--hdf-color-surface-soft, #f4f8f6);
    color: var(--hdf-color-primary-strong, #4F7A20);
    font-size: .8rem;
    font-weight: 800;
}

.hdf-currency-converter__meta {
    display: grid;
    min-width: 0;
    gap: .05rem;
}

.hdf-currency-converter__meta strong {
    color: var(--hdf-color-text-primary, #0b1f3a);
    font-size: .8rem;
    font-weight: 700;
}

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

.hdf-currency-converter__check {
    margin-left: auto;
    color: var(--hdf-color-primary-strong, #4F7A20);
    font-weight: 800;
}

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