//
// Drawer Component
// --------------------------------------------------
.drawer {
  position: fixed;
  width: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  transition: .3s;
  background: #fff;
  z-index: 9999;
  &.open{
    width: 33%;
  }
  .header {
    height: 50px;
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(13,13,13,0.05);
    box-sizing: border-box;
    padding: 15px;
    .closebtn {
      color: #DEE4F2;
      font-size: 32px;
      line-height: 20px;
      float: right;
    }
    span {
      color: #4D5466;
      font-size: 18px;
      font-weight: bold;
      line-height: 20px;
    }
  }
  .content {
    position: absolute;
    padding: 15px;
    top: 50px;
    bottom: 70px;
    overflow-y: auto;
    overflow-x: hidden;
    right: 0;
    left: 0;
  }
  .footer {
    position: absolute;
    min-width: 100%;
    background-color: #FFFFFF;
    border-top: 1px solid rgba(13,13,13,0.05);
    padding: 15px;
    margin: 0;
    bottom: 0;
    box-sizing: border-box;
    button {
      margin: 0 5px;
      float: right;
    }
  }
}

.drawer-backdrop {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.3;
  z-index: 998;
  background-color: #000;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .drawer.open {
    width: 50%;
  }
}
@media (min-width: 320px) and (max-width: 767px) {
  .drawer.open {
    width: 100%;
  }
  .drawer{
    .header {
      display: none;
    }
    .content {
      top: 0px;
      height: 100%;
    }
    .footer {
      display: none;
    }
    > div {
      min-width: auto;
    }
  }
}