/* ============================================
   НОВЫЙ ПЕРЕКЛЮЧАТЕЛЬ ВАЛЮТЫ - Из макета
   ============================================ */

/* Основной контейнер переключателя - точные размеры из макета */
.currency-switcher {
    position: relative;
    width: 82px;
    height: 32px;
    cursor: pointer;
    user-select: none;
}

/* Внутренняя группа с тенью */
.currency-group {
    position: relative;
    width: 82px;
    height: 32px;
    border-radius: 123px;
    overflow: hidden;
    box-shadow: 0px 2px 11px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.currency-switcher:hover .currency-group {
    transform: translateY(-1px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
}

.currency-switcher:active .currency-group {
    transform: translateY(0);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
}

/* Фоновый прямоугольник */
.currency-rectangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 82px;
    height: 32px;
    background-color: #2D2D3E;
    border-radius: 123px !important;
    border: 1px solid #585865;
}

/* Светлая тема */
[data-theme="light"] .currency-rectangle {
    background-color: #F5F5F5;
    border: 1px solid #D0D0D5;
}

/* Текст валюты - точное позиционирование */
.currency-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
    font-weight: 400;
    color: #F1F1F1;
    font-size: 12px;
    text-align: center;
    letter-spacing: -0.24px;
    line-height: 1;
    height: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .currency-text {
    color: #2D2D3E;
}

/* Позиционирование для RUB */
.currency-text.rub {
    left: 36px;
    width: 28px;
}

/* Позиционирование для USDT */
.currency-text.usdt {
    left: 34px;
    width: 34px;
}

/* Контейнер иконки валюты */
.currency-icon-wrapper {
    position: absolute;
    top: 5px;
    left: 7px;
    width: 22px;
    height: 22px;
}

/* SVG иконка */
.currency-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Стрелка вниз */
.currency-arrow {
    position: absolute;
    top: 13px;
    left: 68px;
    width: 0;
    height: 0;
    border-left: 2.5px solid transparent;
    border-right: 2.5px solid transparent;
    border-top: 4px solid #F1F1F1;
    transition: transform 0.3s ease;
}

[data-theme="light"] .currency-arrow {
    border-top-color: #2D2D3E;
}

/* Выпадающий список */
.currency-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 82px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

/* Опции в выпадающем списке */
.currency-option {
    position: relative;
    width: 82px;
    height: 32px;
    border-radius: 123px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
    box-shadow: 0px 2px 11px rgba(0, 0, 0, 0.15);
}

.currency-option:last-child {
    margin-bottom: 0;
}

.currency-option:hover {
    transform: translateY(-1px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
}

/* Фон для каждой опции */
.currency-option .currency-rectangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 82px;
    height: 32px;
    background-color: #2D2D3E;
    border-radius: 123px;
    border: 1px solid #585865;
}

[data-theme="light"] .currency-option .currency-rectangle {
    background-color: #F5F5F5;
    border: 1px solid #D0D0D5;
}

/* Текст в опциях */
.currency-option .currency-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
    font-weight: 400;
    color: #F1F1F1;
    font-size: 12px;
    text-align: center;
    letter-spacing: -0.24px;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .currency-option .currency-text {
    color: #2D2D3E;
}

/* Иконки в опциях */
.currency-option .currency-icon-wrapper {
    position: absolute;
    top: 5px;
    left: 7px;
    width: 22px;
    height: 22px;
}

.currency-option .currency-icon {
    width: 100%;
    height: 100%;
    display: block;
}