.phoenix-newsletter-popup[hidden] { display: none !important; }

.phoenix-newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 43, 58, .68);
}

body.phoenix-newsletter-popup-open { overflow: hidden; }

.phoenix-newsletter-popup__dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  border-radius: 14px;
  background: #fbfbfb;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  outline: 0;
}

.phoenix-newsletter-popup__dialog:focus-visible,
.phoenix-newsletter-popup__close:focus-visible,
.phoenix-newsletter-popup a:focus-visible {
  outline: 3px solid #c9a96e;
  outline-offset: 3px;
}

.phoenix-newsletter-popup__layout { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(320px, 1.1fr); }
.phoenix-newsletter-popup__image img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; display: block; border-radius: 14px 0 0 14px; }
.phoenix-newsletter-popup__content { padding: 42px 38px 30px; }
.phoenix-newsletter-popup__content h2 { margin: 0 0 14px; font-size: clamp(25px, 3vw, 34px); }
.phoenix-newsletter-popup__content > p:not(.eyebrow) { color: #334653; line-height: 1.55; }
.phoenix-newsletter-popup__privacy { margin: 18px 0 0; font-size: 12px; }
.phoenix-newsletter-popup__close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #182b3a; font: 28px/1 sans-serif; cursor: pointer; }

@media (max-width: 640px) {
  .phoenix-newsletter-popup { padding: 12px; align-items: end; }
  .phoenix-newsletter-popup__dialog { max-height: 92vh; border-radius: 14px 14px 0 0; }
  .phoenix-newsletter-popup__layout { grid-template-columns: 1fr; }
  .phoenix-newsletter-popup__image { display: none; }
  .phoenix-newsletter-popup__content { padding: 34px 22px 24px; }
  .phoenix-newsletter-popup__content h2 { padding-right: 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  .phoenix-newsletter-popup__dialog { animation: phoenix-popup-enter .22s ease-out; }
  @keyframes phoenix-popup-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}
