/**=====================
    Theme setting css
==========================**/
.setting_box_body {
    position: relative;
    background-color: $white;
    z-index: 9;
    height: 100vh;
}

.scroll-setting-box {
    ::-webkit-scrollbar {
        width: 4px;
        height: 7px;
    }

    ::-webkit-scrollbar-track {
        background: $round-border;
    }

    ::-webkit-scrollbar-thumb {
        background: $grey5;
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: $grey2;
    }

    .overlay {
        cursor: pointer;
    }
}

.setting-box {
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    width: 450px;
    right: -670px;
    background-color: $white;
    top: 0;
    z-index: 999;
    box-shadow: 0 15px 5px 0 rgba(77, 77, 77, 0.28);
    transition: all 0.5s ease;

    .form-switch {
        padding: 0;
        margin: 0;
        min-height: unset;

        .form-check-input {
            height: 22px;
            width: 44px;
            border: 1px solid $white-dark;
            filter: unset;
            margin: 0;
            position: relative;
            background-color: transparent;
            background-image: unset;
            cursor: pointer;

            &:focus {
                background-image: unset;
                border-color: #dee2e6;
            }

            &:checked {
                background-color: var(--theme-color);

                &::before {
                    left: unset;
                    right: 3px;
                    background-color: $white;
                }
            }

            &::before {
                content: "";
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                left: 3px;
                background-color: #bfbfbf;
                border-radius: 100%;
                width: 15px;
                height: 15px;
            }
        }
    }

    &.open-setting {
        right: 0;
        transition: all 0.5s ease;

        .overlay {
            visibility: visible;
            transition: all 0.5s ease;
        }
    }

    .setting-inner-title {
        a {
            font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
            font-weight: 500;
            color: #222222;
            line-height: 24px;
        }
    }

    .setting-body {
        padding: 0 calc(12px + (20 - 12) * ((100vw - 320px) / (1920 - 320)));
    }

    .accordion-item {
        border: none;
        background-color: transparent;
    }

    .accordion-body {
        padding: 0;
    }

    .accordion-button {
        background-color: transparent;
        box-shadow: none;
        border-bottom: 1px dashed $white-dark;
        font-weight: 500;
        padding: calc(15px + (20 - 15) * ((100vw - 320px) / (1920 - 320))) 0;
        font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        justify-content: space-between;
        z-index: 0;
        color: #222;
        text-align: unset;

        &::after {
            width: unset;
            height: unset;
            content: "\ea4e";
            @include font;
            background: unset;
            font-size: 23px;
            font-weight: 400;
            margin: 0;
            color: #777;
        }

        .setting-description-text {
            display: grid;

            .setting-content {
                font-weight: 400;
                font-size: calc(13px + 1 * (100vw - 320px) / 1600);
                color: #777777;
                line-height: 20px;
                margin-top: 3px;
            }
        }
    }

    .setting-section {
        border-bottom: 1px dashed $white-dark;
        font-weight: 500;
        padding: calc(15px + (20 - 15) * ((100vw - 320px) / (1920 - 320))) 0;
        @include flex_common ($dis: flex, $align: center, $justify: space-between);
    }

    .setting-inner-title {
        p {
            font-weight: 400;
            font-size: calc(13px + (14 - 13) * ((100vw - 320px) / (1920 - 320)));
        }

        h5,
        p {
            margin-bottom: 0;
        }

        h5 {
            font-weight: 500;
            font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        }
    }

    .setting-title {
        border-bottom: 1px solid $grey3;
        margin-bottom: 0;
        padding: calc(15px + (20 - 15) * ((100vw - 320px) / (1920 - 320))) calc(12px + (20 - 12) * ((100vw - 320px) / (1920 - 320)));
        @include flex_common ($dis: flex, $align: center, $justify: space-between);
        background-color: $top-header;

        .close-icon {
            width: 26px;
            height: 26px;
            @include flex_common;
            background-color: $white;
            border: 1px solid $white-dark;
            font-size: 12px;
            cursor: pointer;

            svg {
                width: unset;
                height: unset;
                font-size: 18px;
            }
        }

        h4 {
            font-weight: 600;
        }

        h3 {
            line-height: 31px;
            margin-top: 10px;
            text-transform: capitalize;
            font-size: 20px;
            margin-bottom: 0;
            color: #a3a3a3;

            span {
                font-family: 'Yellowtail', cursive;
                color: #f54c3b;
                text-transform: uppercase;
            }
        }

        h4 {
            position: relative;
            margin-bottom: 0;
            cursor: pointer;
        }

        &.active {
            .according-menu {
                &:before {
                    content: "\f068";
                    position: absolute;
                    right: 2px;
                    top: 2px;
                }
            }
        }

        .according-menu {
            &:before {
                content: "\f067";
                position: absolute;
                right: 2px;
                top: 2px;
            }
        }
    }

    .setting-contant {
        margin: 20px 0;
        height: 340px;
        overflow: hidden auto;
        padding-right: 10px;

        &::-webkit-scrollbar-thumb {
            background: var(--theme-color);
        }

        &::-webkit-scrollbar-track {
            background: #eaeaea;
        }

        .setting_buttons {
            .setting_btn {
                background-color: var(--theme-color);
                color: $white;
                width: 100%;
            }

            li {
                &:first-child {
                    width: 49%;
                }

                &.active {
                    box-shadow: 0px 0px 5px 0px rgb(146, 146, 146);
                }

                &:last-child {
                    margin-left: 10px;
                    width: 46%;
                }
            }
        }
    }

    .overlay {
        visibility: hidden;
        opacity: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: all 0.5s ease;
    }
}

.theme-settings {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    @include flex_common;
    font-size: calc(12px + (14 - 12) * ((100vw - 320px) / (1920 - 320)));
    padding: calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320))) calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
    margin: 0;
    color: $white;
    text-transform: uppercase !important;
    background-color: #333333;
    writing-mode: vertical-lr;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;

    ul {
        li {
            z-index: 1;
            @include flex_common;
            font-size: 14px;
            text-decoration: none;
            box-shadow: none;
            margin-bottom: 0;
            margin-left: auto;
            cursor: pointer;
            font-weight: 600;
            padding: 12px 12px;
            margin: 0;
            color: $white;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.sale {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;

    a {
        top: 50%;
        right: -20px;
        width: 230px;
        height: 36px;
        line-height: 36px;
        font-size: 18px;
        color: $white;
        font-weight: 700;
        text-transform: uppercase;
        transform: translate(50%, -50%) rotate(-90deg);
        text-align: center;
        background-color: var(--theme-color);
        margin-bottom: 0;
        cursor: pointer;
    }
}

.demo-section {
    .title-text {
        h3 {
            color: var(--theme-color);
            margin-bottom: 24px;
            display: inline-block;
            padding-bottom: 5px;
            font-size: 40px;
            position: relative;

            i {
                font-size: 22px;
                position: absolute;
                top: 0;
                right: -20px;
            }
        }
    }

    .demo-effects {
        h4 {
            text-transform: capitalize;
        }

        .set-position {
            display: block;
        }

        >div {
            text-decoration: none;
            color: black;

            .layout-container {
                height: 100%;
                width: 100%;
                display: inline-flex;
                background-size: cover;
                border: 1px solid $white-dark;

                &.active {
                    border-color: var(--theme-color);

                    ~a {
                        h4 {
                            color: var(--theme-color);
                        }
                    }
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: top;
                }
            }

            .demo-text {
                h4 {
                    font-size: calc(13px + (16 - 13) * ((100vw - 320px) / (1920 - 320)));
                    margin-top: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
                    margin-bottom: 0;
                    color: $dark-font;
                    @include flex_common;
                    font-weight: 500;
                    transition: all 0.5s ease;

                    span {
                        background-color: var(--theme-color);
                        border-radius: 4px;
                        color: $white;
                        font-size: 13px;
                        width: 40px;
                        height: 20px;
                        @include flex_common;
                        font-weight: 600;
                        margin-left: 6px;
                    }
                }
            }
        }

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.dark-demo {
    .dark-light-btn {
        display: none;
    }

    .search-modal {
        .modal-header {
            h3 {
                color: $white;
            }
        }
    }

    &.dark2 {
        background-color: #2b2b2b;
        transition: all 0.3s ease;
        color: #cfd4da;

        .header-5 {
            &.overlay-style {
                &.sticky {
                    background-color: #232323;
                }
            }
        }

        @media (min-width: 1200px) {
            header {
                .navbar-expand-xl {
                    .dropdown-mega {
                        .dropdown-column {
                            .dropdown-header {
                                color: #ffffff;
                            }
                        }
                    }

                    .dropdown-menu {
                        background-color: #2b2b2b;

                        .dropdown-column {
                            .menu-no-data {
                                background-color: #232323;
                            }
                        }
                    }
                }

                &.header-5 {
                    &.overlay-style {
                        .navbar-nav {
                            >li {
                                >a {
                                    &:hover {
                                        background-color: transparent;
                                    }
                                }
                            }
                        }

                        .navbar {
                            &.navbar-expand-xl {
                                .navbar-nav {
                                    .nav-item {
                                        >.dropdown-menu {
                                            >.nav-item {
                                                .nav-link {
                                                    color: #cbcbcb;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

        @media (max-width: 1199px) {
            header {
                &.header-5 {
                    &.overlay-style {
                        .navbar-nav {
                            >li {
                                >a {
                                    color: #cbcbcb;
                                }
                            }
                        }

                        .navbar {
                            &.navbar-expand-xl {
                                .navbar-nav {
                                    .nav-item {
                                        &.dropdown {
                                            >a {
                                                color: #fff !important;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                .navbar-nav {
                    .dropdown-menu {
                        .dropdown-column {
                            .dropdown-header {
                                color: rgba(221, 221, 221, 0.8);
                            }
                        }
                    }

                    .dropdown-menu-2 {
                        .dropdown-column {
                            .dropdown-item {
                                &::before {
                                    background-color: rgba(206, 206, 206, 0.65);
                                }
                            }
                        }
                    }
                }

                .offcanvas-collapse {
                    .offcanvas-body {
                        .navbar-nav {
                            .dropdown-menu {
                                .dropdown-item {
                                    color: #cecece;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}