/* pc not show the modal but mobile show modal */
.modal-dialog {
  background: #fff;
  width: 100%;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.modal-close {
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.modal-close--floating {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
}

@keyframes modal-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (max-width: 899px) {
  .modal-dialog {
    animation: modal-slide-up 0.25s ease-out;
  }
  .modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
  }
  .modal-close { display: block; }
  .modal-mask.is-open { display: flex; }
}


/* pc and mobile show modal*/
.both-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.both-modal-mask.is-open { display: flex; }

.both-modal-mask .modal-dialog {
  max-width: 599px;
  animation: modal-slide-up 0.25s ease-out;
}

.both-modal-mask .modal-close { display: block; }


@media (min-width: 600px) {
  .both-modal-mask {
    align-items: center;
  }

  .both-modal-mask .modal-dialog {
    border-radius: 16px;
    animation: none;
  }
}