@use "../utils" as *;

/*----------------------------
dropdown section design
------------------------------*/

.td-custom-dropdwon {
    position: relative;
    display: inline-block;

    &-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 20px;
        border-radius: 4px;
        border: 1px solid rgba(34, 34, 34, 0.10);
        background-color: #F3F4F8;
        color: #222;
        font-size: 14px;
        font-weight: 500;
        @media #{$xs} {
            padding: 3px 10px;
        }
    }

    &-menu {
        position: absolute;
        inset-inline-end: 0;
        top: 42px;
        list-style-type: none;
        background-color: #F0F0F0;
        border-radius: 4px;
        width: 170px;
        display: none;
        z-index: 12;

        @media #{$xs} {
            width: 120px;
        }

        &.active {
            display: block;
        }

        li {
            a {
                padding: 10px 0;
                color: #222;
                font-size: 14px;
                font-weight: 500;
                display: block;
                width: 100%;
                padding: 8px 15px;

                @media #{$xs} {
                    font-size: 12px;
                    font-weight: 400;
                    padding: 4px 8px;
                }

                &:hover {
                    background-color: #E2E2E2;
                }
            }
        }
    }
}

.td-custom-dropdwon-btn img {
    transition: transform 0.3s ease;
}

.td-custom-dropdwon-btn img.rotated {
    transform: rotate(180deg);
}