.site-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1100;
}

.site-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  background: transparent;
}

.site-popup__dialog {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column-reverse;
  background: #B2DFEF;
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 32px 28px;
  border-radius: 10px;
  box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.site-popup__image img {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
}

.site-popup__content {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #1e1e1e;
}

a.site-popup__cta.btn.btn-dark {
  margin-top: 20px;
  display: inline-block;
  background-color: #049744;
  border: 2px solid #049744;
}

.popup-text {
  text-align: center;
}


.site-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  text-align: center;
  color: #1e1e1e;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

body.has-popup-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-popup__dialog {
    padding: 40px 48px;
    flex-direction: row;
  }
  .popup-text {
    padding: 0 2rem;
    width: 60%;
  }
  .site-popup__image {
    width: 40%;
  }
  a.site-popup__cta.btn.btn-dark:hover,
  a.site-popup__cta.btn.btn-dark:focus-within {
    background-color: #fff;
    border: 2px solid #049744;
    color: #049744;
  }
}

