.payperts-popup[hidden] {
  display: none !important;
}

body.payperts-popup-open {
  overflow: hidden;
}

.payperts-popup,
.payperts-popup *,
.payperts-popup *::before,
.payperts-popup *::after {
  box-sizing: border-box;
}

.payperts-popup {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  font-family: Manrope, "Segoe UI", Roboto, sans-serif;
}

.payperts-popup__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.payperts-popup .payperts-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}

.payperts-popup__dialog {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: auto;
  max-height: none;
  overflow: visible;
}

.payperts-popup__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pp-blue, #345686);
  font: 400 2rem/1 sans-serif;
  cursor: pointer;
}

.payperts-popup__close:focus,
.payperts-popup__close:focus-visible {
  outline: 2px solid var(--pp-focus, #176b69);
  outline-offset: 2px;
}

.payperts-popup__status.is-success {
  background: rgba(40, 187, 184, 0.12);
  color: #176b69;
}

@media (max-height: 620px) {
  .payperts-popup__dialog {
    margin-top: 0;
    margin-bottom: auto;
  }
}
