.cls-container {
    width: 220px; /* как указано */
    max-height: 55vh;
    overflow-y: hidden;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

.cls-container:hover { overflow-y: auto; }

.cls-container::-webkit-scrollbar { width: 6px; }
.cls-container::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.12); border-radius: 4px; }
.cls-container::-webkit-scrollbar-track { background: transparent; }

.cls-list { display: flex; flex-direction: column; }

.cls-list-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 20px; /* отступ от скроллбара */
}

.cls-item {
    display: flex !important;
    align-items: center;
    height: 46px;
    padding: 0 0 0 10px; /* только слева для картинки */
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.18s ease, transform 0.18s ease;
    text-decoration: none;
    color: black;
    min-width: 0;
    overflow: hidden;
}

.cls-item:hover { background: white; }

.cls-thumb {
    width: 30px !important;
    height: 30px !important;
    border-radius: 5px !important;
    margin-right: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cls-name {
    font-size: 17px;
    font-weight: 400;
    line-height: 26px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cls-show-all {
     display: flex;
    align-items: center;
    justify-content: center; /* по центру */
    gap: 6px; /* расстояние между текстом и иконкой */
    padding: 0 0 0 10px; /* слева отступ для картинки внутри кнопки */
    height: 46px;
    border-radius: 12px;
    background: white;
    color: black;
    text-decoration: none;
}

.cls-icon { transition: transform 0.18s ease; }

/* Fade-in с лёгким подъёмом */
.fade-up {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}