.pbl-select{
    width: 100%;

    border-radius: 10px;
    background: var(--grey);
    color: white;

    transition: var(--transition);

    box-sizing: border-box;

    cursor: pointer;

    position: relative;
}
:root{
    --radius: 20px;
}
@media screen and (max-width: 720px) {
    :root{
        --radius: 10px;
    }
}
@media screen and (min-width: 1380px) {
    .pbl-select{
        height: 40px;
    }
}
.pbl-select:hover,
.pbl-select.hover{
    /* border-color: var(--color-orange); */
}
.pbl-select.active{
    /* border-color: var(--color-orange);
    background: var(--color-orange); */

    background-color: var(--orange);

    transition: var(--transition);
}
.pbl-select select{
    display: none;
}
.pbl-select .pbl-select--placeholder{
    display: grid;
    grid-template-columns: 1fr 20px;
    padding: 10px 10px;
    padding-left: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    box-sizing: border-box;
}
.pbl-select .pbl-select--placeholder::after{
    content: "";
    width: 20px;
    height: 20px;
    background-image: url(/public/img/select-arrow.svg);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    /* transform: rotate(90deg); */
    transition: var(--transition);
}
.pbl-select.active .pbl-select--placeholder::after{
    filter: none;
}
.pbl-select .pbl-select--placeholder span{
    width: calc(100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-weight: 500;
}
.pbl-select .pbl-select--list{
    --max: 10000px;
    position: absolute;
    display: grid;
    grid-template-rows: 47px;
    gap: 2px;
    bottom: calc(100% + 10px);
    left: 0px;
    width: 100%;
    overflow: auto;

    backdrop-filter: blur(2px);
    border: 2px solid var(--light-grey);

    max-height: min(calc(40px * 10 + 5px * 9), var(--max));

    z-index: 9999;
    padding-right: 5px;

    min-width: 300px;
    
    background: var(--grey);
    padding: 2px;
    border-radius: 10px;

    box-sizing: border-box;

    /* box-shadow: 1px 1px 20px 1px rgba(255, 109, 18, 0.5); */
}
.pbl-select .pbl-select--list.top{
    bottom: calc(100% + 10px);
    top: unset;
}
.pbl-select .pbl-select--list.bottom{
    bottom: unset;
    top: calc(100% + 10px);
}
.pbl-select .pbl-select--list.left{
    left: unset;
    right: 0px;
}
.pbl-select:not(.active) .pbl-select--list{
    display: none;
}
.pbl-select .pbl-select--list > div{
    width: 100%;
    padding: 12px 10px;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--main-background-color);
    color: white;
    height: 40px;

    transition: var(--transition);

    
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.pbl-select .pbl-select--list > div:first-child{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.pbl-select .pbl-select--list > div:last-child{
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.pbl-select .pbl-select--list > div:hover{
    border-color: var(--green-color);
}
.pbl-select .pbl-select--list > div.active,
.pbl-select .pbl-select--list > div:active{
    background: var(--light-grey);
    /* border-color: var(--color-orange); */
}
.pbl-select .pbl-select--list > div span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-weight: 500;
}
.pbl-select .pbl-select--list > div span:first-child:last-child{
    display: block;
    width: calc(100%);
}
@media screen and (max-width: 1312px) {
    .pbl-select .pbl-select--placeholder{
        gap: 10px;
    }
    .pbl-select .pbl-select--placeholder span{
        font-size: 15px;
    }
    .pbl-select .pbl-select--placeholder::after{
        width: 13px;
        height: 15px;
    }
    .pbl-select .pbl-select--list > div span{
        font-size: 15px;
    }
}
.pbl-select > .button{
    display: none;
}
@media screen and (max-width: 720px){
    .pbl-select.active::before{
        content: "";
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 100vh;
        background: black;
        opacity: 0.85;
        z-index: 9999999;
    }
    .pbl-select .pbl-select--list{
        position: fixed;
        left: 20px!important;
        width: calc(100% - 40px)!important;
        bottom: 82px!important;
        top: unset!important;

        z-index: 9999999;
        max-height: calc(100vh - 20px - 82px);

        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    .pbl-select.active > .button{
        display: block;
        position: fixed;
        left: 20px;
        bottom: 20px;
        width: calc(100% - 40px)!important;

        background: var(--grey);
        border-radius: var(--radius);
        
        z-index: 9999999;
        height: 40px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-size: 15px;
    }
    .pbl-select .pbl-select--placeholder{
        grid-template-columns: 1fr 15px;
        gap: 5px;
    }
}