.filter-dropdown {
    position: relative;
    width: fit-content;
}

.filter-dropdown .select {
    position: relative;
    background: transparent;
    padding: 16px;
    width: 246px;
    border-bottom: 1px solid var(--black);
}

.filter-dropdown .select::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 10px;
    right: 16px;
    cursor: pointer;
    /* clip path polygon */
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: var(--teal);
    transform: translateY(50%) rotate(-180deg);
    transition: 0.4s;
}

.filter-dropdown.active .select::after {
    transform: translateY(50%) rotate(0deg);
}

.filter-dropdown .select input {
    position: relative;
    width: 100%;
    height: 100%;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--teal);
}

.filter-dropdown .select input::placeholder {
    color: var(--teal);
    font-size: 16px;
    font-weight: 500;
}

.filter-dropdown .option-container {
    position: relative;
    background: var(--white);
    height: 0;
    overflow-y: scroll;
    transition: 0.4s;
    position: absolute;
    width: 100%;
}

.filter-dropdown.active .option-container {
    height: 150px;
}

.filter-dropdown .option-container::-webkit-scrollbar {
    width: 10px;
}

.filter-dropdown .option-container::-webkit-scrollbar-thumb {
    background: var(--teal);
}

.filter-dropdown .option-container .option {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: 0.2s;
    padding: 16px;
    font-weight: 500;
}

.filter-dropdown .option-container .option.selected {
    background: var(--teal-30);
    color: var(--white);
    pointer-events: none;
}

.filter-dropdown .option-container .option:hover {
    background: var(--teal-10);
    padding-left: 20px;
}

.filter-dropdown .option-container .option label {
    cursor: pointer;
}
