@use '../../root' as *;
@use '../../utilities' as *;


/*----------------------------------------------
    # Sidemenu style here
----------------------------------------------*/
 
.sidemenu-wrapper {
  position: fixed;
  z-index: 99999;
  right: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: all ease 0.8s;

  .closeButton {
    display: inline-block;
    border: 2px solid;
    // @include equal-size(50px);
    line-height: 50px;
    font-size: 24px;
    padding: 0;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: $white;
    border-radius: 50%;
    transform: rotate(0);
    transition: all ease 0.4s;

    &:hover {
      color: $theme-color;
      border-color: $theme-color;
      transform: rotate(90deg);
    }
  }


  .sidemenu-content {
    background-color: $white;
    width: 450px;
    margin-left: auto;
    padding: 80px 30px;
    height: 100%;
    overflow-y: scroll;
    position: relative;
    right: -500px;
    cursor: auto;
    transition-delay: 1s;
    transition: right ease 1s;

    &::-webkit-scrollbar-track {
      -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
      box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
      background-color: #F5F5F5;
    }

    &::-webkit-scrollbar {
      width: 2px;
      background-color: #F5F5F5;
    }

  }

  .widget {
    padding: 0;
    border: none;
    background-color: transparent;
    margin-bottom: 40px;
  }

  .newsletter-form .as-btn {
    &:hover {
      background: $theme-color;

      &:before,
      &::after {
        display: none;
      }
    }
  }

  &.show {
    opacity: 1;
    visibility: visible;
    width: 100%;
    transition: all ease 0.8s;

    .sidemenu-content {
      right: 0;
      opacity: 1;
      visibility: visible;
    }
  }

}


.sidemenu-wrapper {
  position: fixed;
  z-index: 99999;
  right: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: all ease 0.8s;
  -webkit-transition: all ease 0.8s;
  -moz-transition: all ease 0.8s;
  -ms-transition: all ease 0.8s;
  -o-transition: all ease 0.8s;

  .global-social a {
    box-shadow: none;
  }

  .closeButton {
    display: inline-block;
    border: 2px solid;
    width: 50px;
    height: 50px;
    line-height: 48px;
    font-size: 24px;
    padding: 0;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: $white;
    border-radius: 50%;
    transform: rotate(0);
    transition: all ease 0.4s;
    -webkit-transition: all ease 0.4s;
    -moz-transition: all ease 0.4s;
    -ms-transition: all ease 0.4s;
    -o-transition: all ease 0.4s;

    &:hover {
      color: $theme-color;
      border-color: $theme-color;
      transform: rotate(90deg);
    }
  }

  .sidemenu-content {
    background-color: $white;
    width: 450px;
    margin-left: auto;
    padding: 80px 30px;
    height: 100%;
    overflow: scroll;
    position: relative;
    right: -500px;
    cursor: auto;
    transition-delay: 1s;
    transition: right ease 1s;
    -webkit-transition: right ease 1s;
    -moz-transition: right ease 1s;
    -ms-transition: right ease 1s;
    -o-transition: right ease 1s;

    &:-webkit-scrollbar-track {
      box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
      background-color: #f5f5f5;
    }

    &:-webkit-scrollbar {
      width: 2px;
      background-color: #f5f5f5;
    }
  }

  .widget {
    padding: 0;
    border: none;
    background-color: transparent;
    margin-bottom: 40px;
  }

  .recent-post {
    .post-title {
      color: $title-color;
    }
  }

  .widget_title {
    color: $title-color;
    margin: -0.12em 0 30px 0;
  }

  .newsletter-widget {
    .newsletter-form {
      max-width: none;

      .form-group {
        position: relative;

        button {
          position: absolute;
          top: 0;
          right: 0;
          min-width: 80px;
        }
      }
      .form__group {
        position: relative;
        button {
          position: absolute;
          top: 0;
          right: 0;
          min-width: 80px;
          height: 100%;
        }
      }
    }
  }

  .global-widget-contact {
    .info-box_text {
      .icon {
        img {
          filter: none;
        }
      }
    }
  }
  .global-social {
    padding-top: 11px;
    display: flex;
    gap: 15px;
    &__item {
      a {
        display: flex;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 12px;
        background: $title-color;
        &:hover {
          background: $theme-color;
        }
      }
    }
}

  &.show {
    opacity: 1;
    visibility: visible;
    width: 100%;
    transition: all ease 0.8s;

    .sidemenu-content {
      right: 0;
      opacity: 1;
      visibility: visible;
    }
  }
}


@include breakpoint (max-xs) {
  .sidemenu-wrapper {
    background: transparent;

    .sidemenu-content {
      width: 100%;

      .widget_shopping_cart {
        .global-btn {
          margin-bottom: 10px;
        }
      }
    }
  }
}

.info-box {
  display: flex;
  margin-bottom: 11px;

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

.info-box_icon {
  font-size: 16px;
  background-color: transparent;
  color: $theme-color;
  text-align: center;
  margin-right: 10px;
}

.info-box_text {
  display: block;
  color: $title-color;
  margin-top: -0.45em;
  margin-bottom: -0.45em;
  align-self: center;
}

.info-box_link {
  display: inline-block;
  color: $title-color;

  &:hover {
    color: $theme-color;
  }
}



.global-widget-about {
  max-width: 354px;
  margin-bottom: -0.5em;

  .about-logo {
    margin-bottom: 35px;
  }

  .text {
    margin-bottom: 30px;
    margin-top: -0.5em;
    color: $title-color;
  }
}

.global-widget-contact {
  max-width: 260px;
  margin-bottom: -0.4em;

  .info-box_text {
    line-height: 1.75em;
    margin-top: 0;
    display: flex;
    gap: 16px;

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

    .icon {
      color: $title-color;
      flex: none;
      width: 40px;
      height: 40px;
      line-height: 37px;
      border: 1px solid $title-color;
      border-radius: 50%;
      text-align: center;

      img {
        filter: contrast(0) brightness(2) opacity(0.7);
      }
    }

    .details {
      margin-top: -0.3em;

      p {
        margin-bottom: 0;
      }
    }

    a {
      color: inherit;

      &:hover {
        color: $theme-color;
      }
    }
  }
}