@import "../new-variables";

.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
    position: absolute;
    display: inline-block;
    left: 36px !important;
    top: 5px;
    color: $success-color;
}

.select-wrapper.modal {
    position: relative;
    display: inline-flex;
    height: 60px;
    overflow: visible;
    margin-bottom: 17px;
    z-index: auto;

    label {
        padding-right: 7px;
        min-width: fit-content;
        height: 60px;
        display: flex;
        align-items: center;
        flex: 1;
        border: 1px solid black;
        border-right: none !important;
        position: relative;
        color: #040059;
        font-size: 1.4rem;
        letter-spacing: 0.28px;
        font-weight: 700;
        padding-left: 15px;
    }

    .bootstrap-select {
        flex: 6;
        position: relative;
        display: contents;

        button {
            padding-left: 0;
            border-left: none !important;
            outline: none !important;
            height: 60px !important;
        }


        width: 100% !important;

        button {

            height: 60px;
            color: #040059;
            border-radius: 0px;
            background: white;
            border: 1px solid black;
            font-size: 1.4rem;


            .filter-option {
                display: flex;
                align-items: center;

            }
        }

        .dropdown-menu {
            transform: unset !important;
            top: 65px !important;

            li a {
                padding: 5px 0 0 57px;
                font-size: 1.4rem;
                letter-spacing: 0.28px !important;
                content: $main_color;
            }

        }
    }

    .dropdown-menu .inner{
        max-height: 400px;
    }

}

.select-wrapper.form {
    position: relative;
    width: 100%;

    label {
        color: #a2a2a2;
        font-size: 1.2rem;
        text-transform: uppercase;
        font-weight: 700;
    }

    .bootstrap-select {
        width: 100% !important;

        button {
            height: 50px;
            outline: none !important;
            padding-left: 20px;
            color: #040059;
            font-weight: bold;
            border-radius: 0px;
            background: $input-bg-color;
            border: 1px solid transparent;
            font-size: 1.2rem;

            &:after {

                color: #040059;


            }

            .filter-option {
                display: flex;
                align-items: center;

            }
        }

        select.hasChanges ~ button {
            border-color: #e3ac16 !important;
        }

        .dropdown-menu {
            transform: unset !important;

            border-radius: 0;
            padding: 0;

            &[data-popper-placement="top-start"] {
                bottom: 50px;
            }

            &[data-popper-placement="bottom-start"] {
                top: 50px ;
            }

            li a {
                letter-spacing: 0.28px !important;
                content: $main_color;
                padding: 12px 0 12px 57px;
                font-size: 1.2rem;
                font-weight: bold;
            }
        }
    }
}

.select-wrapper {


    &.multiple {
        width: 100%;
        height: 35px !important;

        &.modal {
            height: 60px !important;
            display: inline-flex;

            label {
                font-size: 1.2rem;
                padding-right: 7px;
                min-width: fit-content;
                height: 60px;
                display: flex;
                align-items: center;
                flex: 1;
                border: 1px solid #cccccc;
                border-right: none;
                position: relative;
                font-weight: 700;
                padding-left: 15px;
            }

            .bootstrap-select {
                flex: 6;
                position: relative;
                display: contents;

                button {
                    padding-left: 0;
                    border-left: none;
                    outline: none !important;
                    height: 60px !important;
                    overflow: hidden;
                }
            }

            .dropdown-menu {
                &[data-popper-placement="top-start"] {
                    bottom: 60px !important;
                }

                &[data-popper-placement="bottom-start"] {
                    top: 60px !important;
                }
            }
        }

        .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
            position: absolute;
            display: inline-block;
            right: 0px !important;
            top: 5px
        }

        .bootstrap-select {
            width: 100% !important;

            button {
                height: 35px !important;
                outline: none !important;
                padding-left: 130px;
                color: #040059;
                font-weight: bold;
                border-radius: 0px;
                background: white;
                border: 1px solid #cccccc;
                font-size: 1.2rem;
                overflow: hidden;

                &:after {

                    margin-right: 7px;
                    color: white;
                    content: url("../../images/down-arrow.svg");
                    border-top: 0;

                }

                .filter-option {
                    display: flex;
                    align-items: center;

                    &-inner-inner {
                        text-transform: uppercase;
                    }
                }
            }

            .dropdown-menu {
            }
        }

        .dropdown-menu {
            transform: unset !important;
            border-radius: 0;
            padding: 0;

            &[data-popper-placement="top-start"] {
                bottom: 35px !important;
            }

            &[data-popper-placement="bottom-start"] {
                top: 35px !important;
            }

            li a {
                padding: 6px 0 12px 57px;
                font-size: 1.2rem;
                font-weight: bold;

                .check-mark {
                    left: 15px;
                    right: unset;

                    &:after {
                        border-color: forestgreen !important;
                    }
                }

                .text {
                    color: $main-color;
                }
            }
        }
    }

}

.bootstrap-select.filter {
    height: 36px;
    width: min(355px,19vw)!important;

    button {
        width: 100%;
        background: $main-color;
        height: 36px;
        border-radius: 0px;
        font-weight: $bold;
        font-size: 1.1rem;

        &:after {

            margin-right: 7px;
            color: white;
            content: url("../../images/down-arrow.svg");
            border-top: 0;
        }

        .filter-option {
            display: flex;
            align-items: center;
            color: white;
        }
    }

    .dropdown-menu {

        li a {
            padding: 5px 0 0 15px;
            font-size: 1.4rem;
        }
    }
}

.select.form {
    height: 50px;
    width: 100%;
    background-color: $input-bg-color;
    font-size: $text-size-normal;
    font-weight: $bold;
    color: $main-color;
    border-radius: 0;

    option {
        width: inherit !important;
        height: 50px !important;
    }
}
