/**************************\
  Basic Modal Styles
\**************************/

:root {
  --modal-paddingTop: 100px;
  --modal-paddingBottom: 80px;
}

.modal {
  padding: 0 20px;
}
.modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-attachment: fixed;
  background-color: rgba(70, 176, 35, .75);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--modal-paddingTop) 0 var(--modal-paddingBottom);
  box-sizing: border-box;
  max-height: 100vh;
  max-height: 100svh;
  overflow-y: auto;
  overscroll-behavior-y: none;
}
.modal__container {
  background-color: #fff;
  padding: 30px;
  width: min(calc(100% - 40px), 600px);
  margin: auto;
  padding: 30px;
  border-radius: 10px;
}
.modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #fff;
  font-size: 0;
  box-shadow: 4px 4px 8px rgb(0 0 0 / 0.05);
}
.modal__content {
  text-align: left;
}

@media screen and (max-width: 768px) {
  :root {
    --modal-paddingTop: 80px;
    --modal-paddingBottom: 60px;
  }
  .modal__close {
    top: 15px;
    right: 20px;
    width: 44px;
  }
  .modal__close img {
    width: 24px;
  }
}

/**************************\
  Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes mmslideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}