.list {
  width: 450px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: -450px;
  z-index: 1200;
  transition: all 0.3s;
  text-align: left;
  padding: 0 !important;
  .list-dismiss {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 10px;
    left: 10px;
    transition: all 0.3s;
    border-radius: 4px;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cart-head {
    padding: 10px;
    .logo {
      float: right;
      display: block;
      a {
        display: inline-flex;
        align-items: center;
        .logo-icon {
          max-width: 80px;
          height: 40px;
          margin: 0 5px;
          border-radius: 15%;
          overflow: hidden;
          font-size: 16px;
          font-weight: bold;
          display: inline-flex;
          justify-content: center;
          align-items: center;
          span {
            font-family: tahoma, "sans-serif";
          }
        }
        span {
          font-size: 25px;
          font-weight: bold;
          padding: 0;
        }

        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
  .list-container {
    height: calc(100vh - 80px);
    overflow-x: auto;

    .user-links {
      display: block;
      padding: 10px 0 !important;
      margin-bottom: 0;
      font-size: 15px;

      li:first-of-type {
        margin-bottom: 0;
        display: inline-flex;
        align-items: center;
      }

      li {
        width: 100%;

        h6 {
          display: inline-block;
          font-weight: bold;
          margin-bottom: 0;
        }

        div {
          width: 35px;
          height: 35px;
          border-radius: 50%;
          display: inline-flex;
          margin: 0 5px;
          border: 1px solid #fff;
          align-items: center;
          justify-content: center;
          svg {
            font-size: 16px;
          }
        }
      }

      a {
        justify-content: normal;
        padding: 0 20px;
        height: 30px;
        display: flex;
        align-items: center;
        svg {
          margin-left: 10px;
        }
      }
    }
    .panel {
      a {
        height: 45px;
        h3 {
          font-size: 16px;
        }
      }
      .panel-heading {
        a {
          svg {
            font-size: 14px !important;
          }
        }
      }
      .panel-collapse {
        .panel-body {
          ul {
            li {
              a {
                height: 30px;
              }
            }
          }
        }
      }
    }
  }

  @media (max-width: $maxSm) {
    width: 100%;
    right: -575px;
  }
}
.list.active {
  right: 0;
}

.side-nave {
  ul {
    hr {
      margin: 13px 15px;
    }
    li {
      @extend %transition;
      display: flex;
      position: relative;
      border-bottom: 2px solid rgba(184, 184, 184, 0.12);
      a {
        display: flex;
        align-items: center;
        padding: 0 10px;
        width: 100%;
        height: 45px;

        h3 {
          font-size: 18px;
          font-weight: bold;
          display: inline-flex;
          margin-bottom: 0;
          max-height: 36px;
          overflow: hidden;
          height: inherit;
          align-items: center;
        }
        span {
          font-size: 12px;
          margin: 0 5px;
          font-weight: bold;
        }
        @media (max-width: $maxLg) {
          h3 {
            font-size: 16px;
          }
        }
      }

      button {
        display: grid;
        outline: 0;
        box-shadow: none;
        border: none;
        align-items: center;
        height: 100%;
        svg {
          font-size: 13px;
        }
        &::after {
          position: relative;
          left: 0;
          display: none !important;
          margin-left: 0.255em;
          vertical-align: 0.255em;
          border-top: 0.4em solid;
          border-right: 0.4em solid transparent;
          border-bottom: 0;
          border-left: 0.4em solid transparent;
        }
      }
      .dropdown-menu {
        text-align: right;
        padding: 4px 7px;
        top: 90px !important;
        width: 220px;
        left: -229px !important;
        a {
          padding: 5px 0;
          font-size: 13px;
          display: flex;
          align-items: center;
          @extend %transition;
          svg {
            margin: 0 5px;
            font-size: 13px;
            @extend %transition;
          }
        }
      }
    }
    .panel {
      width: 100%;
      div:first-of-type {
        display: grid;
        a {
          width: calc(100% - 30px);
        }
      }
      .panel-heading {
        width: 44px;
        height: 44px;
        position: absolute;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        a {
          padding: 0 !important;
          width: 23px !important;
          height: 23px;
          display: flex;
          justify-content: center;
          align-items: center;
          svg {
            font-size: 16px;
            @media (max-width: $maxMd) {
              svg {
                font-size: 14px;
              }
            }
          }
        }
      }
      .panel-collapse {
        .panel-heading {
          left: 30px;
        }
        .panel-body {
          ul {
            li {
              border-bottom: none;
              a {
                margin-right: 30px;
                @media (max-width: $maxMd) {
                  margin-right: 15px;
                }
                span {
                  font-size: 10px;
                  svg {
                    font-size: 13px !important;
                  }
                  @media (max-width: $maxMd) {
                    svg {
                      font-size: 11px;
                    }
                  }
                }
                h3 {
                  font-size: 14px;
                }
              }
            }
          }
          .panel-body {
            padding-right: 30px;
            padding-left: 30px;
            ul {
              li {
                a {
                  height: 30px;
                }
              }
            }
          }
        }
      }
    }
  }

  @media (min-width: $minLg) and (max-width: $maxXl) {
    ul {
      li {
        a {
          h3 {
            font-size: 13px;
          }
        }
      }
    }
  }
}

.hide-nave {
  @media (max-width: $maxLg) {
    display: none !important;
  }
}

.nav-fixed {
  @media (max-width: $maxSm) {
    margin-top: 0;
  }
}

.ltr {
  .list {
    left: -450px;
    right: initial;
    text-align: right;
    .list-dismiss {
      left: initial;
      right: 10px;
    }
    .cart-head {
      .logo {
        float: left;
      }
    }
    .list-container {
      .user-links {
        a {
          svg {
            margin-left: initial;
            margin-right: 10px;
          }
        }
      }
    }

    @media (max-width: $maxSm) {
      right: initial;
      left: -575px;
    }
  }
  .list.active {
    right: initial;
    left: 0;
  }

  .side-nave {
    ul {
      li {
        button {
          &::after {
            left: initial;
            right: 0;
            margin-left: initial;
            margin-right: 0.255em;
          }
        }
        .dropdown-menu {
          text-align: left;
          left: initial !important;
          right: -229px !important;
        }
      }
      .panel {
        .panel-heading {
          left: initial;
          right: 0;
        }
        .panel-collapse {
          .panel-heading {
            left: initial !important;
            right: 30px;
          }
          .panel-body {
            ul {
              li {
                a {
                  margin-right: initial;
                  margin-left: 30px;
                  @media (max-width: $maxMd) {
                    margin-right: initial;
                    margin-left: 15px;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
