.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;

  background-color: rgba(0, 0, 0, 0.8);

  transition: all 0.14s ease-in;
  visibility: hidden;
  opacity: 0;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal__body {
  position: relative;
  z-index: 999999;
  margin: 40px auto;
  /* width: 640px; */
  width: 50%;
  /* padding: 24px; */
  background: #fff;

  transition: all 0.14s ease-out;
  transform: translateY(80px);
}

.show .modal__body {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  background: #d81b60;
  cursor: pointer;
  user-select: none;

  transition: all 0.2s;
}

.modal__close:hover {
  transform: rotate(360deg);
  background: #e91e63;
}

.modal__close:active {
  transform: scale(0.96);
}

.modal__table {
  display: table;
  width: 100%;
  height: 100%;
  text-align: center;
}

.modal__cell {
  display: table-cell;
  vertical-align: middle;
}

.modal__content {
  position: relative;
  display: inline-block;
  width: 640px;
  margin: 40px 0;
  background: #fff;
  text-align: left;

  transition: all 0.14s ease-out;
  transform: translateY(80px);
}

.show .modal__content {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .modal__close,
  .modal__overlay {
    cursor: default;
  }

  .modal__content,
  .modal__body {
    margin: 80px 20px;
    width: auto;
  }

  .modal__overlay {
    cursor: default;
  }
}
