.proget-first-popup[hidden] {
  display: none !important;
}

.proget-first-popup {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 16px;
  pointer-events: none;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: var(--proget-first-popup-z-index, 20000);
}

.proget-first-popup.is-open {
  pointer-events: auto;
}

.proget-first-popup.is-visible {
  opacity: 1;
}

.proget-first-popup__backdrop {
  background: var(--proget-first-popup-overlay, rgba(0, 0, 0, 0.68));
  inset: 0;
  position: absolute;
}

.proget-first-popup__dialog {
  background: var(--proget-first-popup-background, #fff);
  border-radius: var(--proget-first-popup-radius, 4px);
  box-shadow: var(--proget-first-popup-shadow, 0 20px 60px rgba(0, 0, 0, 0.28));
  color: var(--proget-first-popup-color, #222);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  max-width: var(--proget-first-popup-max-width, 680px);
  opacity: 0;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  transform: translateY(16px) scale(0.985);
  transition: opacity 200ms ease, transform 200ms ease;
  width: 100%;
  z-index: 1;
}

.proget-first-popup.is-visible .proget-first-popup__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.proget-first-popup__close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 32px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  opacity: 0.72;
  padding: 0 0 4px;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: background-color 150ms ease, opacity 150ms ease;
  width: 42px;
}

.proget-first-popup__close:hover {
  background: rgba(0, 0, 0, 0.07);
  opacity: 1;
}

.proget-first-popup__close:focus-visible,
.proget-first-popup__dialog:focus-visible {
  outline: 3px solid var(--proget-first-popup-focus, #146eb4);
  outline-offset: 2px;
}

.proget-first-popup__title {
  color: inherit;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 42px 20px 0;
}

.proget-first-popup__content {
  color: inherit;
  font-size: var(--proget-first-popup-font-size, 16px);
  line-height: 1.6;
}

.proget-first-popup__content > :first-child {
  margin-top: 0;
}

.proget-first-popup__content > :last-child {
  margin-bottom: 0;
}

.proget-first-popup__content img,
.proget-first-popup__content iframe,
.proget-first-popup__content video {
  height: auto;
  max-width: 100%;
}

html.proget-first-popup-open,
body.proget-first-popup-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .proget-first-popup {
    align-items: flex-end;
    padding: 8px;
  }

  .proget-first-popup__dialog {
    border-radius: var(--proget-first-popup-mobile-radius, 12px 12px 4px 4px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 32px 24px 28px;
  }

  .proget-first-popup__title {
    margin-right: 34px;
  }
}

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