@use "../utils" as *;

/*----------------------------
offcanvas section design
------------------------------*/

.td-offcanvas {
  position: fixed;
  z-index: 99;
  background-color: var(--td-white);
  width: 310px;
  inset-inline-end: 0;
  top: 0;
  padding: 20px 20px;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: 0.3s ease-in-out;

  @include rtl{
    inset-inline-start: 0;
  }

  &-logo{
    width: 130px;
  }

  &-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  &-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }

  &-navbars {
    ul {
      list-style-type: none;

      li {
        margin-bottom: 5px;

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

        a {
          font-size: 16px;
          color: var(--td-theme-bg-color);
          font-weight: 500;
          text-decoration: none;
          transition: color 0.3s ease-in-out;

          &:hover {
            color: var(--td-theme-color);
          }
        }
      }
    }
  }

  &-buttons {
    margin-top: 20px;
    display: block;

    @media #{$md} {
      display: none;
    }
  }

  &-overlay {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    z-index: 98;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: 0.45s ease-in-out;
    background: rgba(24, 24, 24, 0.4);

    &-open {
      visibility: visible;
      opacity: 0.7;
    }
  }
}