.lock-scroll {
  height: 100%;
  overflow: hidden;
}

.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  transition: opacity 600ms;
}

.custom-modal.-is-hidden,
.custom-modal .-is-hidden {
  display: none;
}

.custom-modal .-transition,
.custom-modal.-transition {
  opacity: 0;
}

.custom-modal.-transition .custom-modal__wr {
  transform: translateY(20px);
}

.custom-modal__backdrop {
  height: 100%;
  width: 100%;
  background: rgba(90, 90, 90, 0.5);
  z-index: 0;
}

.custom-modal__wr {
  position: absolute;
  inset: 0;
  width: max-content;
  height: max-content;
  max-width: min(750px, 90vw);
  min-width: 500px;
  background-color: #fff;
  padding: 40px;
  padding-top: 80px;

  transition: transform 600ms;

  margin: auto;
  z-index: 1;
}

.custom-modal__close {
  position: absolute;
  top: 40px;
  right: 40px;
  appearance: none;
  border: none;
  background-color: transparent;
}
