.modal {
  position: absolute;
  top: 0;
  right: 0;
  -webkit-transform: translateX(calc(100% + 12px));
      -ms-transform: translateX(calc(100% + 12px));
          transform: translateX(calc(100% + 12px));
  min-width: 380px;
  background: #fff;
  padding: 0;
  margin: 0;
  -webkit-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
          box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
  -webkit-transition: max-height 0.3s;
  transition: max-height 0.3s;
  border-radius: 2px;
}
.modal.modal-left {
  left: 0;
  -webkit-transform: translateX(calc(-100% - 12px));
      -ms-transform: translateX(calc(-100% - 12px));
          transform: translateX(calc(-100% - 12px));
}
.modal .modal-title {
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.modal .modal-content {
  padding: 12px;
}
