/* Кастомный селектор валют для модальных окон */

/* Скрываем стандартный select, когда добавлен кастомный */
.currency-select--enhanced .CurrencySelectInput_select_wbnJ9 {
    display: none;
}

/* Скрываем дефолтную иконку/стрелку у контейнера, когда добавлен кастомный селектор */
.currency-select--enhanced > .CurrencySelectInput_currencyIcon_CiwMN,
.currency-select--enhanced > .CurrencySelectInput_arrow__l1dv {
    display: none;
}

.country-switcher--disabled,
.country-switcher--disabled .currency-selector-button,
.country-switcher--disabled .custom-currency-selector {
    pointer-events: none;
    cursor: default;
}

.country-switcher--disabled .currency-selector-button {
    opacity: 0.65;
}

/* Основной контейнер кастомного селектора */
.custom-currency-selector {
    position: relative;
    width: 100%;
    margin: 0;
}

/* Кнопка-триггер для открытия селектора */
.currency-selector-button {
    width: 100%;
    padding: 16px 10px 16px 30px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #94a6cd33;
    color: #2d3748;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: none;
    min-height: 54px;
}

.currency-selector-button:hover {
    border-color: #d2d7e4;
}

.currency-selector-button:focus,
.currency-selector-button.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

/* Иконка валюты в кнопке */
.currency-selector-button .CurrencySelectInput_currencyIcon_CiwMN {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
}

/* Текст выбранной валюты */
.currency-selector-button .selected-currency {
    flex: 1;
    margin-left: 16px;
    text-align: left;
}

.currency-selector-button .placeholder-text {
    color: #a0aec0;
}

.currency-selector-button .selected-text {
    color: #2d3748;
    font-weight: 500;
}

/* Стрелка */
.currency-selector-button .arrow {
    transition: transform 0.3s ease;
    color: #a0aec0;
    margin-right: 8px;
}

.currency-selector-button.active .arrow {
    transform: rotate(180deg);
    color: #667eea;
}

/* Выпадающий список */
.currency-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dfe3ef;
    border-radius: 12px;
    box-shadow: 
        0 18px 35px rgba(12, 21, 45, 0.12),
        0 6px 15px rgba(12, 21, 45, 0.08);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
}

.currency-dropdown.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Поиск валют */
.currency-search {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1001;
}

.currency-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.currency-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Список валют */
.currency-list {
    padding: 8px 0;
}

.currency-option {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
}

.currency-option:hover {
    background: #f7fafc;
    color: #667eea;
}

.currency-option.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    font-weight: 500;
}

.currency-option .CurrencySelectInput_currencyIcon_CiwMN {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
}

.currency-option .currency-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-option .currency-name {
    font-weight: 500;
    color: #2d3748;
}

.currency-option .currency-code {
    font-size: 13px;
    color: #718096;
    font-weight: 400;
}

.currency-option.selected .currency-name {
    color: #667eea;
}

/* Плавная анимация при загрузке */
.currency-option {
    animation: slideInOption 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.currency-option:nth-child(1) { animation-delay: 0.05s; }
.currency-option:nth-child(2) { animation-delay: 0.1s; }
.currency-option:nth-child(3) { animation-delay: 0.15s; }
.currency-option:nth-child(4) { animation-delay: 0.2s; }
.currency-option:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInOption {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Сообщение "не найдено" */
.no-results {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

/* Кастомный скроллбар */
.currency-dropdown::-webkit-scrollbar {
    width: 6px;
}

.currency-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Адаптивность */
@media (max-width: 480px) {
    .currency-selector-button {
        padding: 14px 50px 14px 50px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .currency-option {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .currency-option .CurrencySelectInput_currencyIcon_CiwMN {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .currency-search {
        padding: 12px;
    }
    
    .currency-dropdown {
        max-height: 250px;
    }
}

/* Эффект при клике */
.currency-selector-button:active {
    transform: translateY(0) scale(0.98);
}

.currency-option:active {
    transform: scale(0.98);
}

/* Индикатор загрузки */
.currency-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #718096;
}

.currency-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Эффект фокуса для доступности */
.currency-option:focus {
    outline: 2px solid #667eea;
    outline-offset: -2px;
    background: #f7fafc;
}

/* Выделение при навигации с клавиатуры */
.currency-option.keyboard-focused {
    background: #f7fafc;
    outline: 2px solid #667eea;
    outline-offset: -2px;
}
/* Cache version: 55972997 - Updated: 2025-08-23 21:16:37 */