@charset "UTF-8";

.is-modal-open-nw {
  overflow: hidden;
}

.modal-nw {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  display: none;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.is-modal-open-nw .modal-nw {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.modal__overlay-nw {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal__inner-nw {
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  -webkit-animation-name: modalopen;
  animation-name: modalopen;
  -webkit-animation-duration: 0.2s;
  animation-duration: 0.2s;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.8);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: auto;
  background-color: var(--clr-white);
}

@media (max-width: 1020px) {
  .modal__inner-nw {
    min-width: unset;
    width: 100%;
    max-width: 95%;
  }
}

.modal__close-nw {
  position: fixed;
  z-index: 10;
  top: 20px;
  right: 20px;
  background-color: var(--clr-white);
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 1020px) {
  .modal__close-nw {
    top: 12px;
    right: 12px;
  }
}
