

//select box
.selectbox{
    margin:0;
    padding: 0;
    position: relative;

    &.--block{
        position: relative;

        & label{
            display: inline-block;
            width: 100%;
            height: 25px;
            font-size:12px;
            font-weight: 600;
            color:#444;

            & span{
                position: relative;
                display: inline-block;
                padding: 0 15px  0 5px ;
                background: #fff;
                z-index: 11;

                & i {
                    color: red;
                }
            }

            & .bi,
            & .fa{
                text-align: left;
                position: absolute;
                font-size: 18px;
                top:30px !important;
                left:2px !important;
                color: $color_blue_normal;
            }

            &::after {
                content: "\f107"; //f0dc
                float: right;
                margin-right: 20px;
                margin-top: 38px;
                font-size: 20px;
                color:#999;
            }
        }

        &.mobile{
            position: relative;
            padding-top: 30px;

            & label{
                position: absolute;
                margin-top: -10px ;
                margin-left: 14px;

                &::after {
                    content: "\f107"; //f0dc
                    float: right;
                    margin-right: 30px;
                    margin-top: 25px;
                    font-size: 20px;
                    color:#999;
                }
            }
        }

        & .item {
            position: relative;
            width: 100%;
            height: 58px;
            padding: 12px 20px 10px 45px !important;
            border: 2px solid #ddd;
            // background: #fff;
            cursor: pointer;
            font-size: 16px !important;
            color:rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            overflow:hidden;
            text-overflow: ellipsis;
            z-index: 10;
        }

        &:hover {
            & label{

                &::after {
                    color:#444;
                }
            }

            & .item {
                // background: #fff;
                border: 2px solid #ccc;
                color:#444;
            }
        }

        &.focus{
            & label{
                color:$color_blue_normal;

                &::after {
                    color: $color_blue_normal;
                }
            }
            & .item{
                border: 2px solid $color_blue_normal_8;
                color:#333;
            }
        }

        & .selection{
            display: none;
            position: absolute;
            padding: 10px;
            background-color: #fff;
            box-shadow: 0 0 10px 0 rgba(40, 57, 145, 0.2);
            border-radius:5px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            z-index: 1000;

            & .selection-searchbox{
                position: relative;
                padding:0 0 10px 0;

                &.hide{
                    display: none;
                }

                & .fa{
                    text-align: left;
                    position: absolute;
                    font-size: 18px;
                    top:15px;
                    left:15px;
                    color: $color_blue_normal;
                }

                & .selection-input{
                    display: inline-block;
                    width: 100%;
                    height: 50px;
                    padding:0 10px 0 40px;
                    font-size: 16px;
                    border: 2px solid #ddd;
                    outline: none;
                    border-radius: 5px;
                    color:#333;
                    outline: none;


                    &:hover {
                        border: 2px solid #ccc;
                    }

                    &:focus {
                        border: 2px solid $color_blue_normal_8;
                        color:#333;

                        & ~ .label{
                            color:$color_blue_normal_8;
                        }
                    }
                }
            }

            & .selection-item {
                padding: 2px  4px  5px  2px;
                max-height: 230px;
                overflow: auto;
                // background: red;

                & .listChoix{
                    margin: 2px 0;
                    padding: 10px 20px;
                    font-size:16px;
                    font-weight: 400;
                    border-radius:5px;
                    color:#444;
                    transition: all .1s linear;
                    overflow:hidden;
                    white-space:nowrap;
                    text-overflow: ellipsis;
                    // font-weight: normal;

                    &.group-item {
                        background-color: rgba(0, 0, 0, 0.08) !important;
                        color: $color_blue_normal;
                        cursor: pointer;
                    }

                    &:last-child{
                        margin-bottom: 5px;
                    }

                    &.selected,
                    &:hover {
                        background-color:rgba(0, 0, 0, 0.06);
                        color: $color_blue_normal;
                        cursor: pointer;
                    }
                }
            }

            & .empty-search{
                display: none;
                text-align: center;
                font-size: 14px;
                color:#333;
                font-weight: 600;
                padding: 0 0 5px 0;
            }


        }

    }




    &.--inline{
        position: relative;

        & label{
            width: 100%;
            height: 0rem;
            font-size:14px;
            color:#444;

            & i {
                color: red;
            }

            &::after {
                content: "\f0dc";
                float: right;
                margin-right: 1.5rem;
                margin-top: .7rem;
                font-size: 2rem;
                color:#999;
            }
        }

        & .item {
            width: 100%;
            padding: 7px 20px 10px 20px;
            border: 1px solid #ccc;
            background: #fff;
            cursor: pointer;
            font-size:16px;
            color:#666;
            border-radius: 8px;
            transition: all .3s linear;

            &:hover {
                border: 1px solid rgba(0, 0, 0, 0.4);
                color:#444;
            }
        }

        & .selection-item {
            display: none;
            position: absolute;
            max-height: 200px;
            overflow: auto;
            background-color: #fff;
            box-shadow: 0 0 10px 0 rgba(40, 57, 145, 0.2);
            border-radius:10px;
            border: 1pxsolid rgba(0, 0, 0, 0.2);
            z-index: 2;

            & div {
                padding: 6px 20px;
                font-size:16px;
                color:#444;
                transition: all .1s linear;

                &:hover {
                    background-color:rgba(0, 0, 0, 0.08);
                    color:$color_blue_normal;
                    cursor: pointer;
                }
            }
        }
    }
}
