/* Стили для кастомной прокрутки */
.slider-container::-webkit-scrollbar {
    height: 4px;
}
.slider-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 2px;
}
.dark .slider-container::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
}

.slider-item {
    flex: 0 0 280px; /* Фиксированная ширина карточки */
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .slider-item {
        flex: 0 0 320px; /* Чуть шире на sm экранах */
    }
}

/* Плавное появление */
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Кастомный Toast (уведомление) */
#toast-notification {
    transition: all 0.5s ease;
    transform: translateY(100%);
    opacity: 0;
}
#toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Стили для выбора логотипа банка */
.bank-logo {
    width: 70px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: white;
    padding: 4px;
}
.bank-logo.selected {
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fallback стиль, если лого не загрузится */
.bank-logo.logo-fallback {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4b5563; /* gray-600 */
    background-color: #f3f4f6; /* gray-100 */
}
.logo-fallback {
    font-size: 1.1rem;
    font-weight: bold;
    color: #374151; /* gray-700 */
}

/* Стили для выбора цвета */
.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}
.color-swatch.selected {
    border-color: #3b82f6; /* blue-500 */
    transform: scale(1.1);
}
