aks-select {
    position: relative;
    display: inline-block;
} 
aks-select > button + * {
    position: absolute;
    display: none;
}


/* Listing */

aks-select ul {
    max-height: 15rem;
    overflow: auto;
    padding-bottom: .1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
aks-select ul::-webkit-scrollbar {
    width: .3rem
}
aks-select ul::-webkit-scrollbar-track {
    background: var(--bs-gray-800);
    border-radius: 1rem;
}
aks-select ul::-webkit-scrollbar-thumb {
    background: var(--bs-gray-500);
    border-radius: 1rem;
}

aks-select > button:after {
    content: "";
    position: absolute;
    padding: .4rem;
    right: 8px;
    top: calc(50% - .4rem);
    transition: transform .1s;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23FFF" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
}
aks-select.aks-accordion-open > button:after {
    transform: rotate(-180deg);
}

aks-select > button {
    position: relative;
    text-align: left !important;
}


aks-select.aks-accordion-open > button + * {
    display: block;
    z-index: 1;
}


/* Accrodion style on mobile : depending on .aks-accordion-open class */

@media screen and (max-width: 992px) {
    
    /* Button chevron */
    aks-select {
        width: 100%;
    }
    
    /* Content */
    aks-select.aks-accordion-open > button + * {
        position: static;
        display: block;
        z-index: 1;
        border: 1px solid #202533;
    }
}

.float-right {
    float: right;
}
