﻿.info-badges-viewport {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.info-badges-rail {
    display: grid;
    gap: 16px;
    padding: 4px 2px 8px;
    list-style: none;
    margin: 0;
}

.info-badge-item {
    min-width: 0;
}

.info-badge-card {
    height: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(15,23,42,.04);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
    padding: 14px 14px;
    transition: box-shadow .18s ease, transform .16s ease, border-color .18s ease, background .18s ease;
}

    .info-badge-card:hover {
        box-shadow: 0 12px 32px rgba(15,23,42,.10);
        transform: translateY(-2px);
        border-color: rgba(37,99,235,.28);
    }

.info-badge-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.info-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    flex-shrink: 0;
}

.info-badge-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.info-badge-icon-placeholder {
    font-size: 14px;
    opacity: .6;
}

.info-badge-text {
    min-width: 0;
    text-align: left;
    flex: 1;
}

.info-badge-title {
    font-weight: 600;
    font-size: .95rem;
    color: #0f172a;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-badge-subtitle {
    margin-top: 2px;
    font-size: .82rem;
    color: #6b7280;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1025px) {
    .info-badges-rail {
        grid-template-columns: repeat(var(--badge-count), 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 641px) {
    .info-badges-rail {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .info-badges-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .info-badges-rail {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        padding: 2px 0 10px;
    }

    .info-badge-item {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        padding: 0 4px;
    }
}
