.pp-signup-popup[hidden] {
  display: none !important;
}

.pp-signup-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.pp-signup-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 16, 0.72);
}

.pp-signup-popup__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(800px, 100%);
  max-height: min(90svh, 760px);
  overflow: hidden;
  border: 1px solid rgba(250, 251, 252, 0.12);
  border-radius: 16px;
  background: #120e1f;
  color: #f0f0f0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.pp-signup-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 14, 31, 0.88);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pp-signup-popup__close:hover,
.pp-signup-popup__close:focus-visible {
  background: #ed145b;
}

.pp-signup-popup__close:focus-visible,
.pp-signup-popup__submit:focus-visible,
.pp-signup-popup input:focus-visible {
  outline: 2px solid var(--wp--preset--color--vivid-purple);
  outline-offset: 2px;
}

.pp-signup-popup .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pp-signup-popup__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  overflow: auto;
}

.pp-signup-popup__media-slot {
  min-width: 0;
  min-height: 0;
}

.pp-signup-popup__media {
  position: relative;
  align-self: start;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #1c1730;
}

.pp-signup-popup__media img,
.pp-signup-popup__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1c1730;
}

.pp-signup-popup__video {
  z-index: 1;
}

.pp-signup-popup__media.is-video img {
  display: none !important;
}

.pp-signup-popup__media.is-image .pp-signup-popup__video {
  display: none !important;
}

.pp-signup-popup__media.is-loading img {
  z-index: 2;
}

.pp-signup-popup__media.is-loading .pp-signup-popup__video {
  opacity: 0;
}

.pp-signup-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 48px 40px;
}

.pp-signup-popup__heading {
  margin: 0 36px 12px 0;
  /* font-size: clamp(1.5rem, 2vw, 2rem); */
  line-height: 1.15;
  font-weight: 800;
}

.pp-signup-popup__description {
  margin: 0 0 20px;
  white-space: pre-line;
  line-height: 1.5;
}

.pp-signup-popup__field {
  margin-bottom: 1em;
}

.pp-signup-popup__field input,
.pp-signup-popup__submit {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}

.pp-signup-popup__field input {
  padding: 1em;
  background-color: var(--wp--preset--color--base);
  border-radius: 6px;
  border: 0.666667px solid rgba(250, 251, 252, 0.05);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
  color: #fff;
  font: inherit;
  font-size: 13.333px;
}

.pp-signup-popup__field input::placeholder {
  color: rgba(240, 240, 240, 0.62);
}

.pp-signup-popup__field input:focus {
  border-color: rgba(250, 251, 252, 0.05);
}

.pp-signup-popup__field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px var(--wp--preset--color--base) inset;
}

.pp-signup-popup__submit {
  margin-top: 1.2rem;
  padding: 1em 20px;
  border: none;
  border-radius: 24px;
  background-color: #ed145b;
  color: #fff;
  font-size: var(--wp--preset--font-size--small);
  /* font-weight: 700; */
  cursor: pointer;
}

.pp-signup-popup__submit:hover {
  background-color: #ed145b;
  opacity: 0.95;
  text-decoration: underline;
  border: 1px solid #b527e8;
  box-shadow: rgba(237, 186, 223, 0.1) 0 0 0 1px inset, #b527e8 0 4px 15px 0, rgba(0, 0, 0, 0.1) 0 2px 2px 0, #b527e8 0 0 0 3px;
}

.pp-signup-popup__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.pp-signup-popup__error,
.pp-signup-popup__success {
  margin: 12px 0 0;
}

.pp-signup-popup__error {
  color: #ffb4c0;
}

.pp-signup-popup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 781px) {
  .pp-signup-popup {
    padding: 12px;
  }

  .pp-signup-popup__panel {
    width: 100%;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .pp-signup-popup__grid {
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .pp-signup-popup__media-slot {
    position: relative;
    min-height: 0;
  }

  .pp-signup-popup__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .pp-signup-popup__media img,
  .pp-signup-popup__video {
    object-position: center top;
  }

  html.popup-open,
  html.popup-open body {
    overscroll-behavior: none;
  }

  html:has(#pp-signup-popup:not([hidden])) #chatra {
    display: none !important;
  }

  .pp-signup-popup__content {
    width: 100%;
    padding: 14px 16px 16px;
  }

  .pp-signup-popup__description {
    margin-bottom: 12px;
  }

  .pp-signup-popup__field {
    margin-bottom: 10px;
  }

  .pp-signup-popup__submit {
    margin-top: 6px;
  }

  .pp-signup-popup__heading {
    margin-right: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-signup-popup,
  .pp-signup-popup__panel {
    scroll-behavior: auto;
  }
}
