.dropdown__input {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-default);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
}

.dropdown__input svg {
    transform: rotate(0deg);
    transition: transform .3s ease-in-out;
    flex-shrink: 0;
}

.dropdown__input.open {
    border-radius: 16px 16px 0 0;
    border: 2px solid var(--action-active);
    border-bottom: unset;
    padding: 10px 14px 12px;
    box-shadow: var(--shadow--medium);
}

.dropdown__input.open svg {
    transform: rotate(-180deg);
    transition: transform .3s ease-in-out;
}

.dropdown__input span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.dropdown__options {
    position: absolute;
    padding: 16px;
    top: 100%;
    left: -2px;
    width: calc(100% + 4px);
    box-shadow: var(--shadow--medium);
    display: none;
    border-radius: 0 0 16px 16px;
    border: 2px solid var(--action-active);
    background-color: var(--background-default);
    border-top: unset;
    cursor: auto;
    max-height: 300px;
    overflow: auto;
    z-index: 1;
}

.dropdown__options::-webkit-scrollbar {
    width: 8px;
}

.dropdown__options::-webkit-scrollbar-track-piece:start {
    margin-top: 10px;
}

.dropdown__options::-webkit-scrollbar-track-piece:end {
    margin-bottom: 10px;
}

.dropdown__options::-webkit-scrollbar-thumb {
    background-color: #9CA3AF;
    border-radius: 8px;
}

.dropdown__input.open .dropdown__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown__option {
    position: relative;
    cursor: pointer;
    overflow-wrap: break-word;
}

.dropdown__option:before {
    content: '';
    position: absolute;
    left: -16px;
    bottom: -25%;
    width: calc(100% + 32px);
    height: calc(100% + 16px);
}

.dropdown__option_checkbox {
    display: none;
}

.dropdown__option_checkbox:checked + .dropdown__option {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
}

.dropdown__option_checkbox:checked + .dropdown__option:after {
    content: '';
    width: 24px;
    height: 24px;
    display: inline-block;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--action-active);
    -webkit-mask-image: var(--check-icon);
    mask-image: var(--check-icon);
    flex-shrink: 0;
}

.dropdown__option_checkbox[disabled] + .dropdown__option {
    color: var(--action-disabled);
}

.dropdown__divider {
    margin: 7.5px 0;
    background-color: var(--neutral-300);
    border: 1px solid var(--neutral-300);
    color: var(--neutral-300);
}

.dropdown__divider:last-child {
    display: none;
}

/* Layout Tablet */
@media (max-width: 904px) {
    .dropdown__input {
        flex-wrap: wrap;
    }

    .dropdown__input.open {
        border-radius: 16px;
        padding: 10px 14px 0;
    }

    .dropdown__input span {
        width: 1vw;
        flex: 1 1 auto;
    }

    .dropdown__options {
        position: static;
        margin: 0 -16px;
        width: 100%;
        flex-grow: 1;
        max-height: 100%;
    }
}
