/* WordPress Popup Modal */
.wp-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 16px;
}

.wp-popup-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-popup-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.wp-popup-modal__card {
  position: relative;
  width: min(100%, 360px);
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  z-index: 1;
  animation: wpPopupFadeIn 0.24s ease-out;
}

.wp-popup-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.wp-popup-modal__close:hover,
.wp-popup-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.75);
}

.wp-popup-modal__media {
  background: #000000;
  min-height: 180px;
  aspect-ratio: 435 / 545;
}

.wp-popup-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wp-popup-modal__body {
  padding: 18px;
  display: flex;
  justify-content: center;
}

.wp-popup-modal__title {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.wp-popup-modal__text {
  margin: 0 0 16px;
  color: #4a4a4a;
}

.wp-popup-modal__action {
  border: 0;
  border-radius: 8px;
  background: #942020;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
}

.wp-popup-modal__action:hover,
.wp-popup-modal__action:focus-visible {
  background: #942020c7;
  color: #fff
}

@keyframes wpPopupFadeIn {
  from {
    transform: translateY(6px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .wp-popup-modal {
    padding: 24px;
  }

  .wp-popup-modal__card {
    width: min(100%, 440px);
    max-height: calc(100vh - 48px);
  }

  .wp-popup-modal__body {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .wp-popup-modal__card {
    width: min(100%, 520px);
  }

  .wp-popup-modal__body {
    padding: 22px;
  }
}
