.section-list-block {
    position: relative;
    max-width: 280px;
    min-width: 280px;
}

.section-list-block .select-section-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    cursor: pointer;
    background-color: var(--white-smoke);
    border-radius: 6px;
    padding: 10px 12px;
    user-select: none;
}

.section-list-block .select-section-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.section-list-block .select-section-btn svg {
    max-width: 18px;
    min-width: 18px;
    min-height: 18px;
    max-height: 18px;
    transition: all 0.3s;
}

.section-list-block .hidden-sections-block {
    display: none;
    position: absolute;
    top: 0;
    left: 103%;
    max-width: 280px;
    min-width: 280px;
    box-shadow: 0 20px 25px -5px #0000000D;
    border: 1px solid var(--white-smoke);
    max-height: 130px;
    overflow-y: auto;
    background-color: var(--white);
    padding: 2px;
    border-radius: 8px;
    flex-direction: column;
    z-index: 10;
}

.section-list-block .hidden-sections-block a {
    display: block;
    width: 100%;
    padding: 12px;
    color: var(--black);
    background-color: var(--white);
    border: none;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    transition: all 0.3s;
    text-align: left;
}

.section-list-block .hidden-sections-block a:first-child {
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

.section-list-block .hidden-sections-block a:last-child {
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

.section-list-block .hidden-sections-block a:hover {
    background-color: var(--white-smoke);
    color: var(--black);
}

.section-list-block.open .select-section-btn svg {
    transform: rotate(180deg);
}

.section-list-block.open .hidden-sections-block {
    display: flex;
}

@media (max-width: 1365px) {
    .section-list-block {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .section-list-block .hidden-sections-block {
        left: 0;
        top: 110%;
        min-width: 100%;
        max-width: 100%;
    }

    .section-list-block .select-section-btn svg {
        transform: rotate(90deg);
    }

    .section-list-block.open .select-section-btn svg {
        transform: rotate(-90deg);
    }
}