/*==============================================================
						Offcanvas
==============================================================*/

/** ===== OffCanvas ===== **/
.tcg-offcanvas-wrapper {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  transition: all 0.3s linear 0.15s;

  .offcanvas-overly {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: all 0.3s linear 0.15s;
  }
  .offcanvas-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    width: 420px;
    background-color: #0a1019;
    transition: all 0.3s linear 0.15s;
    overflow: hidden;
    overflow-y: scroll;

    &::-webkit-scrollbar {
      width: 0;
    }
    .offcanvas-close {
      position: absolute;
      left: 0;
      top: 0;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      transition: 0.3s;
      cursor: pointer;
      color: #02050a;
      background-color: #ffffff;
      z-index: 999;
    }
  }
}
.admin-bar .tcg-offcanvas-wrapper {
  top: 32px;

  @media screen and (max-width: 782px) {
    top: 46px;
  }
}
.tcg-offcanvas {
  .offcanvas-toggle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #53d4ff;
    font-size: 18px;
    border-radius: 50%;
    border: none;

    &:hover {
      background-color: #ffffff;
    }
    svg {
      fill: none;
    }
    &.toggle-center {
      margin: auto;
    }
    &.toggle-right {
      margin-left: auto;
    }
  }
  .tcg-offcanvas-wrapper {
    z-index: 0;
    visibility: hidden;

    .offcanvas-container {
      transform: translateX(100%);
      opacity: 0;
      visibility: hidden;
    }
    .offcanvas-overly {
      opacity: 0;
      visibility: hidden;
    }
    &.offcanvas-left {
      justify-content: flex-start;

      .offcanvas-close {
        left: auto;
        right: 0;
      }
      .offcanvas-container {
        transform: translateX(-100%);
      }
    }
    &.show-offcanvas {
      z-index: 9999;
      visibility: visible;

      .offcanvas-container {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
      }
      .offcanvas-overly {
        opacity: 1;
        visibility: visible;
      }
    }
  }
}