.sag-newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sag-newsletter-popup.is-open {
  display: flex;
}

.sag-newsletter-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 28, 17, .68);
  cursor: pointer;
}

.sag-newsletter-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 26px;
  background: #eef3e7;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.sag-newsletter-popup__dialog > .sag-newsletter {
  margin: 0;
  padding: 0;
}

.sag-newsletter-popup__dialog .sag-newsletter__inner {
  grid-template-columns: 1fr;
  padding: 38px 34px;
  border: 0;
  background: transparent;
}

.sag-newsletter-popup__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #135f35;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

html.sag-popup-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .sag-newsletter-popup {
    align-items: flex-end;
    padding: 10px;
  }

  .sag-newsletter-popup__dialog {
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .sag-newsletter-popup__dialog .sag-newsletter__inner {
    padding: 32px 20px 24px;
  }
}
