$am-ms: 200ms;

.drawer_mask {
  flex: 1 1 auto;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1011;
  opacity: 0;
  transition: opacity $am-ms ease-in;
  &_active {
    opacity: 1;
  }
  &--hidden {
    background: transparent;
  }
}

.drawer_main {
  .drawer {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    z-index: 10000;
    visibility: hidden;
    transition: visibility $am-ms ease-in-out;
    overflow: hidden;
    .drawer_container {
      display: flex;
      flex-direction: column;
      position: absolute;
      background-color: #fff;
      z-index: 10001;
      transition: transform $am-ms ease-in-out;
      .drawer_container_title {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 80px;
        font-size: 29px;
        font-weight: bold;
        color: #000000;
        padding-top: 10px;
      }
      .common_close_btn_icon {
        position: absolute;
        top: 10px;
        left: 10px;
      }
    }
    .drawer_container_active {
      transform: translate3d(0, 0, 0);
    }
  }
  .drawer_active {
    visibility: visible;
  }

  .drawer_container_bottom {
    bottom: 0;
    left: 0;
    min-height: 200px;
    width: 100%;
    border-radius: 20px 20px 0px 0px;
    transform: translate3d(0, 100%, 0);
    &-withShadow {
      box-shadow: 0 -2px 11px -3px #333;
    }
  }

  .drawer_container_top {
    top: 0;
    left: 0;
    min-height: 200px;
    width: 100%;
    border-radius: 0 0 20px 20px;
    transform: translate3d(0, -100%, 0);
    &-withShadow {
      box-shadow: 0 2px 5px -3px #333;
    }
  }

  .drawer_container_right {
    bottom: 0;
    right: 0;
    height: 100%;
    min-width: 300px;
    border-radius: 20px 0 0 20px;
    transform: translate3d(100%, 0, 0);
    &-withShadow {
      box-shadow: -2 0px 11px -3px #333;
    }
  }
}
