/* Стили для кастомного плейсхолдера в блоке курсов валют */
.currency-placeholder-icon {
    width: 24px;
    height: 24px;
}

/* Стили для блока курсов валют */
.currency-rates-grid {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 1rem;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 0.5rem);
}

.currency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.currency-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.currency-item-body {
    display: flex;
    gap: 1rem;
}

.rate-column {
    text-align: center;
}

.rate-date {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    display: block; /* Показываем дату по умолчанию */
}

.rate-value {
    font-size: 1rem;
    font-weight: 600;
}

.currency-separator {
    width: 1px;
    background-color: var(--border-color, #e2e8f0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767.98px) {
    .currency-rates-grid {
        flex-direction: column;
        gap: 0.5rem; /* Уменьшаем отступ для мобильных */
    }

    .currency-item {
        flex-direction: row; /* Иконка и тело в один ряд */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .currency-item-header {
        flex-shrink: 0; /* Запрещаем сжатие хедера */
    }

    .currency-item-body {
        flex-direction: column;
        align-items: flex-end; /* Выравниваем курсы по правому краю */
        gap: 0.1rem;
        flex-grow: 1; /* Позволяем телу занять оставшееся место */
    }

    .rate-column {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        text-align: right; /* Выравниваем текст в колонке вправо */
        width: 100%;
        padding: 0;
        gap: 0.5rem; /* Добавляем отступ между датой и курсом */
    }

    .rate-date {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .rate-value {
         font-size: 0.95rem;
    }

    .currency-separator {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0; /* Добавляем вертикальные отступы */
    }
} 