.mlsp-no-scroll {
  overflow: hidden !important;
}

.mlsp-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.mlsp-popup.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mlsp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.mlsp-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px 30px 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color: #1d1d1f;
  text-align: center;
  outline: none;
  transform: translateY(14px) scale(0.985);
  transition: transform 180ms ease;
}

.mlsp-popup.is-open .mlsp-popup__dialog {
  transform: translateY(0) scale(1);
}

.mlsp-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.mlsp-popup__close:hover,
.mlsp-popup__close:focus-visible {
  background: #f0f0f0;
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.mlsp-popup__title {
  margin: 0 34px 8px;
  color: inherit;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.15;
}

.mlsp-popup__intro {
  margin: 0 auto 16px;
  max-width: 440px;
  color: #555;
  font-size: 16px;
  line-height: 1.5;
}

.mlsp-popup__embed {
  width: 100%;
  overflow: hidden;
}

.mlsp-popup__embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .mlsp-popup {
    align-items: flex-end;
    padding: 12px;
  }

  .mlsp-popup__dialog {
    max-height: calc(100vh - 24px);
    padding: 32px 14px 18px;
    border-radius: 10px;
  }

  .mlsp-popup__title {
    margin-right: 30px;
    margin-left: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlsp-popup,
  .mlsp-popup__dialog {
    transition: none;
  }
}
