/* Currency Component Styles */

.currency-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.currency-selector:hover {
    border-color: #1890ff;
}

.currency-selector:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* Стили для отображения цен */
.currency-price {
    font-weight: bold;
    color: #1890ff;
}

.currency-price.before {
    display: flex;
    align-items: center;
    gap: 2px;
}

.currency-price.after {
    display: flex;
    align-items: center;
    gap: 2px;
}

.currency-symbol {
    font-weight: bold;
}

.currency-amount {
    font-weight: 500;
}

/* Короткая запись для больших сумм */
.currency-short {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .currency-selector {
        background: #2f2f2f;
        border-color: #444;
        color: #fff;
    }
    
    .currency-selector:hover {
        border-color: #1890ff;
    }
    
    .currency-selector:focus {
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }
    
    .currency-price {
        color: #40a9ff;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .currency-selector {
        min-width: 120px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .currency-selector {
        width: 100%;
        min-width: unset;
    }
} 