#offcanvas-toggler {
    display: block;
    height: $header_height;
    line-height: $header_height;
    font-size: 20px;
    >span {
        &:hover {
            color: #fff;
        }
    }
}

.offcanvas-init{
    overflow-x: hidden;
    position: relative;
}

.offcanvas-active {
    .offcanvas-overlay{
        visibility: visible;
        opacity: 1;
    }
}

.offcanvas-overlay {
    background: rgba(0,0,0,.5);
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9999;
    visibility: hidden;
    -webkit-transition: 0.6s;
    transition: 0.6s;
}

.body-wrapper{
    position: relative;
    -webkit-transition: 0.6s;
    transition: 0.6s;
    backface-visibility: hidden;
}

.close-offcanvas {
    position: absolute;
    top: 100px;
    z-index: 1;
    width: 40px;
    height: 40px;
    line-height: 50px;
    text-align: center;
    background: #f4f4f4;
    color: #fff;
    transform: translateX(-70px);
    transition: .3s;
    .close-icon{
        width: 20px;
        height: 20px;
        &:before, &:after{
            height: 1px;
            background: $link_color;
        }
    }
    &:hover {
        .close-icon{
            &:before, &:after{
                height: 2px;
            }
        }
    }
}
.offcanvas-active{
    .close-offcanvas{
        transform: translateX(0px);
    }
}
.offcanvas-menu {
    width: $offcanvas_width;
    height: 100%;
    position: fixed;
    top: 0;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    z-index: 10000;
    background-color: #f4f4f4;
    overflow-y: auto;
    overflow-x: hidden;
    .offcanvas-inner {
        padding: 30px;
        .menu{
            border-bottom: 1px solid rgba(130, 130, 130, .3);
            margin-bottom: 30px !important;
            padding-bottom: 20px !important;
            >li{
                margin-bottom: 5px !important;
                >a{
                    font-weight: 700;
                    text-transform: uppercase;
                    font-size: 14px !important;
                }
                ul li.active,
                &.active{
                    >a{
                        color: $link_color;
                    }
                }
            }
        }
        .sp-module {
            padding: 0;
            margin: 0;

            .sp-module-title {
                font-size: 1rem;
                font-weight: bold;
            }

            &:not(:last-child) {
                margin-bottom: 20px;
            }

            ul {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                padding: 0;
                margin: 0;
                list-style: none;
                > li {
                    border: 0;
                    padding: 0;
                    margin: 0;
                    position: relative;
                    overflow: hidden;
                    display: block;
                    a,
                    span {
                        display: block;
                        font-size: 1rem;
                        padding: .125rem 0;
                        position: relative;
                    }

                    &.menu-parent {
                        >a,
                        >.menu-separator {
                            >.menu-toggler {
                                display: block;
                                position: absolute;
                                top: 50%;
                                cursor: pointer;
                                transform: translateY(-50%);
                                -webkit-transform: translateY(-50%);
                                font-family: FontAwesome;
                                &:after {
                                    content: "\f055";
                                }
                            }
                        }

                        &.menu-parent-open {
                            >a,
                            >.menu-separator {
                                >.menu-toggler {
                                    &:after {
                                        content: "\f056";
                                    }
                                }
                            }
                            >.nav-header {
                                >.menu-toggler {
                                    &:after {
                                        content: "\f056";
                                    }
                                }
                            }
                        }
                        >.nav-header {
                            >.menu-toggler {
                                display: block;
                                position: absolute;
                                top: 50%;
                                cursor: pointer;
                                transform: translateY(-50%);
                                -webkit-transform: translateY(-50%);
                                font-family: FontAwesome;
                                &:after {
                                    content: "\f055";
                                }
                            }
                        }

                    }

                    ul {
                        display: none;
                        li {
                            a {
                                font-size: 0.875rem;
                            }
                        }
                    }
                }
            }
        }
        .search{
            form{
                input[name="searchword"]{
                    background: transparent;
                    border-radius: 2px;
                    border: solid 1px #d9d9d9;
                    padding: 8px 15px;
                    height: auto;
                }
            }
        }
        .finatic-services.gird-layout{
            .sppb-row>div{
                -ms-flex: 0 0 100%;
                flex: 0 0 100%;
                max-width: 100%;
            }
        }
    }
}

body {
	&.ltr {
		#offcanvas-toggler {        
            &.offcanvas-toggler-right {
                float: right;
            }
        
            &.offcanvas-toggler-left {
                float: left;
            }
        }
        
        &.offcanvs-position-left{
            .body-wrapper{
                left: 0;
            }
        
            .offcanvas-menu {
                left: -$offcanvas_width;
            }
        
            &.offcanvas-active {
                .offcanvas-menu {
                    left: 0;
                }
                .body-wrapper{
                    left: $offcanvas_width;
                }
            }
        }
        
        &.offcanvs-position-right{
            .body-wrapper{
                right: 0;
            }
        
            .offcanvas-menu {
                right: -$offcanvas_width;
            }
        
            &.offcanvas-active {
                .offcanvas-menu {
                    right: 0;
                }
            
                .body-wrapper{
                    right: $offcanvas_width;
                }
            }
        }
        
        .close-offcanvas {
            right: -40px;
        }
        
        .offcanvas-menu {
            .offcanvas-inner {
                .sp-module {
               
                    ul {
                        > li {
                            &.menu-parent {
                                >a,
                                >.menu-separator {
                                    >.menu-toggler {
                                        right: 0;
                                    }
                                }
                                >.nav-header {
                                    >.menu-toggler {
                                        right: 0;
                                    }
                                }
                            }
        
                            ul {
                                margin-left: 10px;
                            }
                        }
                    }
                }
            }
        }
	}
}