#offcanvas-toggler {
  display: inline-flex;
  align-items: center;
  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-active .burger-icon > span:nth-child(3), 
#modal-menu-toggler.active .burger-icon > span:nth-child(3) {
  transform: translate(0, -6px) rotate(45deg);
}

.offcanvas-overlay {
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 9999;
  visibility: hidden;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.close-offcanvas {
  position: absolute;
  top: 25px;
  z-index: 1;
}



.offcanvas-menu {
  width: 500px;
  height: 100%;
  position: fixed;
  top: 60px;
  overflow: inherit;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  z-index: 10000;
  background-color: #fff !important;

  #offcanvas-toggler {
    display: none !important;
  }
  .offcanvas-inner {
    padding: 45px 30px 50px 45px;
    .header-modules {
      margin-left: 0px;
    }
    .finder {
      margin-bottom: 10px;
    }
    .sp-sign-in {
      position: relative;
      top: 10px;
      .signin-text {
        display: none !important;
      }
    }
    .sp-profile-wrapper {
      .user-text {
        display: none !important;
      }
    }
    .sp-contact-info,
    .social-icons {
      font-size: 14px;
      > li > a {
        opacity: 0.7;
        &:hover,
        &:focus {
          opacity: 1;
        }
      }
    }
    .sp-contact-info {
      margin-top:20px;
      > li:not(:last-child) {
        margin-bottom: 10px;
      }
    }
    .sp-module {
      padding: 0;
      margin: 0;
      &:not(:last-child) {
        margin-right: 20px;
      }

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

      &:not(:last-child) {
        margin-bottom: 20px;
      }
      //search width
      .awesomplete {
        width: 210px;
      }
    }
    ul.menu {
      &,
      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;
        margin: 0 0 15px 0;
        list-style: none;
      }
      > li {
        border: 0;
        padding: 0;
        margin: 0;
        position: relative;
        overflow: hidden;
        display: block;
        font-weight: 600;
        > a,
        > span {
          display: block;
          font-size: 15px;
          padding: 10px 0px;
          position: relative;
          line-height: 15px;
          color: #101010 !important;
          transition: 0.3s;
          font-family: 'Poppins', sans-serif;
          font-weight: 500;
          text-transform: uppercase;
          &:hover {
            color: $link_hover_color !important;
          }
        }

        ul.menu-child {
          padding: 0;
          margin: 0;
        }

        &.menu-parent {
          > a,
          > .menu-separator {
            > .menu-toggler {
              display: block;
              position: absolute;
              top: 50%;
              cursor: pointer;
              transform: translateY(-50%);
              -webkit-transform: translateY(-50%);
              color: #101010 !important;
              &:hover {
                color: $link_hover_color !important;
              }
              &:after {
                font-family: "Font Awesome 5 Free";
                content: "\f105";
                font-weight: 900;
              }
            }
          }

          & li.menu-parent {
            > a {
              position: relative;
              display: block;
            }

            .menu-toggler {
              right: 0px;
              display: block;
              position: absolute;
              top: 50%;
              cursor: pointer;
              transform: translateY(-50%);
              -webkit-transform: translateY(-50%);
              &:after {
                font-family: "Font Awesome 5 Free";
                content: "\f105";
                font-weight: 900;
              }
            }
            &.menu-parent-open {
              .menu-toggler {
                &:after {
                  content: "\f107";
                }
              }
            }
          }

          &.menu-parent-open {
            > a,
            > .menu-separator {
              > .menu-toggler {
                &:after {
                  font-family: "Font Awesome 5 Free";
                  content: "\f107";
                  font-weight: 900;
                }
              }
            }
            > .nav-header {
              > .menu-toggler {
                &:after {
                  font-family: "Font Awesome 5 Free";
                  content: "\f107";
                  font-weight: 900;
                }
              }
            }
          }
          > .nav-header {
            > .menu-toggler {
              display: block;
              position: absolute;
              top: 50%;
              cursor: pointer;
              transform: translateY(-50%);
              -webkit-transform: translateY(-50%);
              &:after {
                font-family: "Font Awesome 5 Free";
                content: "\f105";
                font-weight: 900;
              }
            }
          }
          .menu-child li a {
            color: #101010 !important;
                &:hover {
                  color: $link_hover_color !important;
                }
            }
          }
          

        > ul {
          display: none;
          li {
            a {
              font-size: 15px;
              padding: 4px 0px;
              line-height: 18px;
              font-weight: 400;
            }
          }
        }
      }
    }
  }
  /*border-menu*/
  &.border-menu {
    .offcanvas-inner ul.menu {
      > li {
        border-bottom: 1px solid rgba(32, 31, 31, 0.1);
        margin-bottom: 0;
        > a {
          padding: 15px 10px;
        }
      }
      ul {
        padding-bottom: 15px;
      }
    }
  }
  /*center alignment*/
  &.center-alignment {
    .offcanvas-inner {
      padding: 0px 15px;
    }
  }

  .offcanvas-inner ul.menu > li > ul li a {
    width: 100%;
    display: inline-block;
    padding: 10px 0px;
  }

  .social-icons {
    margin: 30px 0;
    > li {
      > a {
          width: 30px;
          height: 30px;
          line-height: 30px;
          display: inline-block;
          color: #fff;
          background-color: $link_hover_color;
          text-align: center;
          border-radius: 3px;
          opacity: 1 !important;
          &:hover {
            color: #CCCCCC;
          }
        }

        &:not(:last-child) {
          margin-right: 10px;
        }
    }
  }

  .logo {
    padding-left: 30px;
  }
}

body {
  &.ltr {
    #offcanvas-toggler {
      &.offcanvas-toggler-right {
        float: right;
        margin-left: 20px;
      }

      &.offcanvas-toggler-left {
        float: left;
        margin-right: 20px;
      }
    }

    &.offcanvs-position-left {
      .body-wrapper {
        left: 0;
      }

      .offcanvas-menu {
        left: -500px;
        top: 0;
      }

      &.offcanvas-active {
        .offcanvas-menu {
          left: 0;
          top: 0;
        }
      }
    }

    &.offcanvs-position-right {
      .body-wrapper {
        right: 0;
      }

      .offcanvas-menu {
        right: -500px;
        top: 0;
      }

      &.offcanvas-active {
        .offcanvas-menu {
          right: 0;
          top: 0;
        }
      }
    }

    .close-offcanvas {
      right: 45px;
    }

    .offcanvas-menu {
      .offcanvas-inner {
        ul.menu {
          > li {
            &.menu-parent {
              > a,
              > .menu-separator {
                > .menu-toggler {
                  right: 0;
                }
              }
              > .nav-header {
                > .menu-toggler {
                  right: 0;
                }
              }
            }

            ul {
              margin-left: 25px;
            }
          }
        }
      }
    }
  }
}
