/* Currency dropdowns retain a native form value behind a consistent icon-driven menu. */
.currency-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.currency-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.currency-select-trigger {
    display: grid;
    width: 100%;
    min-height: 42px;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 9px;
    padding: 0 12px 0 9px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    text-align: left;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.currency-select-trigger:hover:not(:disabled),
.currency-select.open .currency-select-trigger {
    background: var(--surface);
    border-color: var(--primary);
}

.currency-select-trigger:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.currency-select-trigger:disabled {
    color: var(--text-faint);
    cursor: not-allowed;
    opacity: 0.7;
}

.currency-select-symbol {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.currency-select-symbol.wide {
    font-size: 9px;
}

.currency-select-trigger-label {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-select-chevron {
    color: var(--text-faint);
    font-size: 9px;
    transition: transform var(--transition);
}

.currency-select.open .currency-select-chevron {
    transform: rotate(180deg);
}

.currency-select-menu {
    position: absolute;
    z-index: 1300;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 290px;
    padding: 6px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    box-shadow: var(--shadow-lg);
}

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

.currency-select-option {
    display: grid;
    width: 100%;
    min-height: 48px;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    text-align: left;
}

.currency-select-option:hover:not(:disabled),
.currency-select-option:focus-visible,
.currency-select-option[aria-selected="true"] {
    color: var(--primary-dark);
    background: var(--primary-soft);
    outline: none;
}

.currency-select-option:disabled {
    color: var(--text-faint);
    cursor: not-allowed;
}

.currency-select-option-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.currency-select-option-copy strong,
.currency-select-option-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-select-option-copy strong {
    font-size: 11px;
}

.currency-select-option-copy small {
    color: var(--text-muted);
    font-size: 9px;
}

/* Login fields inherit their established height and white input surface. */
.auth-input-wrap > .currency-select {
    height: 100%;
}

.auth-input-wrap .currency-select-trigger {
    height: 100%;
    min-height: 0;
    background: var(--surface);
    border-color: var(--border-strong);
    border-radius: 11px;
    font-size: inherit;
}

@media (max-width: 620px) {
    .currency-select-menu {
        max-height: 240px;
    }
}
