﻿:root {
    --BrandSelector--primery: #ED3F3F
}


.BrandSelector button {
    border: unset;
    border-bottom: 1px solid #ccc;
    border-radius: unset;
    background-color: transparent;
}

.BrandSelectorModal button:disabled, .BrandSelectorModal button:disabled:hover {
    background: #ED3F3F80 !important;
    border-color: #ED3F3F80 !important;
}

.BrandSelectorModal .modal-header {
    padding: 15px 0px;
    border-bottom: unset;
}

    .BrandSelectorModal .modal-header .headerBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

        .BrandSelectorModal .modal-header .headerBar .brandSelectorTitle {
            height: 24px;
            margin-bottom: 18px;
        }

        .BrandSelectorModal .modal-header .headerBar .brandSelectorTitle2 {
            display: flex;
            align-items: center;
            gap: 10px;
            height: 24px;
            margin-bottom: 16px;
        }

        .BrandSelectorModal .modal-header .headerBar .RemoveAll {
            color: var(--BrandSelector--primery);
            background: transparent;
            padding: 2px 10px;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }

            .BrandSelectorModal .modal-header .headerBar .RemoveAll:before {
                display: block;
                content: '';
                width: 18px;
                height: 18px;
                background-image: url('../svg/trash.svg');
                background-position: center;
                background-size: cover;
            }

    .BrandSelectorModal .modal-header .BrandSelectorModalSearch input {
        border: unset;
        border-bottom: 1px solid var(--BrandSelector--primery);
        border-radius: unset;
    }

    .BrandSelectorModal .modal-header .BrandSelectorModalSearch input {
        background-image: url('../svg/mynaui_search.svg');
        background-repeat: no-repeat;
        background-size: auto;
    }

    .BrandSelectorModal .modal-header .brandSelectorTitle2 #return {
        width: 20px;
    }

    .BrandSelectorModal .modal-header .brandSelectorTitle2 .modal-title {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .BrandSelectorModal .modal-header .modal-Caption {
        display: flex;
        margin: 10px 0;
        height: 35px;
    }

    .BrandSelectorModal .modal-header h5.modal-title {
        color: #000;
    }

    .BrandSelectorModal .modal-header .BrandSelectorModalSelectedList {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        position: relative;
        margin-bottom: 20px;
        gap: 5px;
        width: 100%;
        cursor: grab;
    }

        .BrandSelectorModal .modal-header .BrandSelectorModalSelectedList::-webkit-scrollbar {
            display: none;
        }

        .BrandSelectorModal .modal-header .BrandSelectorModalSelectedList > div {
            display: flex;
            background-color: #F2F4F9;
            border: 1px solid #33333324;
            border-radius: 90px;
            align-items: center;
            justify-content: center;
            padding: 6px 10px 6px 6px;
            font-size: 12px;
            flex-direction: row-reverse;
            text-align: center;
            height: 35px;
        }

            .BrandSelectorModal .modal-header .BrandSelectorModalSelectedList > div > .caption {
                display: flex;
                gap: 5px;
                /* flex-direction: row; */
                flex-wrap: nowrap;
                text-wrap-mode: nowrap;
            }

            .BrandSelectorModal .modal-header .BrandSelectorModalSelectedList > div > label {
                margin: 0 !important;
                width: 20px;
                height: 20px;
                padding: 0 3px !important;
                color: var(--BrandSelector--primery) !important;
                font-weight: bold !important;
            }

.BrandSelectorModal .modal-body {
    height: 63%;
    overflow: auto;
    padding: 0px !important;
}

    .BrandSelectorModal .modal-body::-webkit-scrollbar {
        display: none;
    }

    .BrandSelectorModal .modal-body .SelectorItem {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0px;
        border-bottom: 1px solid rgba(230, 230, 230, 0.65);
    }

        .BrandSelectorModal .modal-body .SelectorItem.hasChild::after {
            content: '';
            width: 14px;
            height: 14px;
            background-image: url('../svg/left.svg');
            background-position: center;
            background-size: cover;
        }

        .BrandSelectorModal .modal-body .SelectorItem .brandLogo {
            width: 24px;
        }

        .BrandSelectorModal .modal-body .SelectorItem .brandLogo {
            width: 32px;
            height: 32px;
        }

        .BrandSelectorModal .modal-body .SelectorItem > div > * {
            margin: 0;
        }

        .BrandSelectorModal .modal-body .SelectorItem > div {
            display: flex;
            align-items: center;
            width: 100%;
        }

            .BrandSelectorModal .modal-body .SelectorItem > div > label {
                display: flex;
                align-items: center;
                gap: 5px;
                width: 100%;
            }

        .BrandSelectorModal .modal-body .SelectorItem.SelectAll .inputLabel span,
        .BrandSelectorModal .modal-body .SelectorItem.SelectAll .inputLabel {
            font-weight: bold !important;
            color: #000 !important;
        }

.SelectorItem.hasChild:has(+ .SelectAll input[type="checkbox"]:checked) div:after {
    background: var(--BrandSelector--primery) !important;
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 60px;
}

.SelectorItem.hasChild:has(+ .SelectAll input[type="checkbox"]:checked):after {
    background-image: url('../svg/left-hover.svg');
}


.BrandSelector .modal-body input[type="checkbox"] + label::before {
    content: "" !important;
    display: none !important;
}

.BrandSelector .modal-body input[type="checkbox"] + label::after {
    background-color: #fff;
    color: #3e4d6c;
    border: 1px solid #7e7e7e;
    cursor: pointer;
    font-size: 11px;
    border-radius: 1px;
    content: "";
    display: inline-block;
    height: 17px;
    top: unset;
    left: 0;
    right: unset;
    margin: unset;
    padding: unset;
    outline: 0 none;
    position: absolute;
    transition: all 0.3s ease-in-out 0s;
    width: 17px;
    border-radius: 2px;
}

.BrandSelector .modal-body input[type="checkbox"]:checked + label::after {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--BrandSelector--primery);
    border-color: var(--BrandSelector--primery);
    color: #fff;
    content: '' !important;
    font-size: 13px;
    font-weight: bold;
    background-image: url('../Image/Input-Checkbox.png');
    background-position: center;
    background-size: cover;
}

.BrandSelector .modal-body input[type="checkbox"] {
    cursor: pointer;
    opacity: 0;
    outline: 0 none;
    z-index: 1;
    display: none;
}


.BrandSelectorModal .modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    bottom: 0;
    width: 100%;
    background-color: inherit;
}

    .BrandSelectorModal .modal-footer::before,
    .BrandSelectorModal .modal-footer::after {
        content: '';
        display: none;
    }

    .BrandSelectorModal .modal-footer button {
        height: 44px !important;
        border-radius: 90px;
        margin-bottom: 12px;
    }

        .BrandSelectorModal .modal-footer button.CloseSelector {
            color: rgb(255, 71, 71);
            background-color: rgb(255, 255, 255) !important;
            transition: 0.4s;
            border: 1px solid rgb(255, 71, 71) !important;
        }

        .BrandSelectorModal .modal-footer button.SubmitSelector:not(.BrandSelectorModal button:disabled) {
            background-color: rgb(255, 71, 71);
            border: 1px solid rgb(255, 71, 71) !important;
        }

        .BrandSelectorModal .modal-footer button.SubmitSelector {
            color: rgb(255, 255, 255);
            background-image: none !important;
            transition: 0.4s;
        }


.BrandSelectorModal .modal-body .SelectorItem > div > label span {
    color: #000;
}

.BrandSelectorModal .modal-header .modal-Caption {
    display: none !important;
}

.SelectorItem .inputLabel::before {
    border-radius: unset !important;
}
/*******Style To New Filter*******/
.BrandSelectorModal .modal-content {
    box-shadow: unset !important;
    border: unset !important;
    padding: 16px 24px 0px;
}

body.modal-open {
    overflow-y: hidden !important;
}

.BrandSelectorModal .modal-header h5.modal-title {
    font-weight: bold;
}

@media(max-width:767px) {
    .BrandSelectorModal .modal-dialog {
        margin: 0;
        max-width: unset;
        height: 100%;
        position: fixed;
        width: 100%;
    }

    .BrandSelectorModal .modal-content {
        border-radius: 0;
        height: 100%;
    }

    .BrandSelectorModal .modal-footer {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .BrandSelectorModal .modal-body {
        height: calc(100dvh - 20rem);
    }
}

@media(min-width:768px) {

    .BrandSelectorModal .modal-dialog {
        width: 488px;
        max-width: 488px !important;
    }

        .BrandSelectorModal .modal-dialog .modal-content {
            height: 41rem !important;
        }

            .BrandSelectorModal .modal-dialog .modal-content .modal-footer {
                position: absolute;
                bottom: 0;
                right: 0;
            }

    .BrandSelectorModal .modal-content {
        border-radius: 24px;
    }

        .BrandSelectorModal .modal-content .modal-footer {
            border-radius: 0px 0px 24px 24px !important;
        }

    .BrandSelectorModal .modal-header h5.modal-title {
        font-size: 18px;
    }
}
