.marketing-popup {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #e5e7e0;
  border-radius: 16px;
  background: #fff;
  color: #292524;
  box-shadow: 0 24px 80px rgb(0 0 0 / 20%);
  font: inherit;
  text-align: center;
}
.marketing-popup:not([open]), .marketing-popup [hidden] { display: none !important; }
.marketing-popup::backdrop { background: rgb(20 27 20 / 48%); }
.marketing-popup__panel { position: relative; }
.marketing-popup__close {
  position: absolute;
  z-index: 1;
  inset-inline-end: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5e7e0;
  border-radius: 50%;
  background: #fff;
  color: #292524;
  cursor: pointer;
}
.marketing-popup__image { display: block; width: 100%; height: auto; max-height: none; object-fit: cover; background: #f7f8f4; }
.marketing-popup__content { padding: 64px 28px 28px; }
.marketing-popup__image:not([hidden]) + .marketing-popup__content { padding-top: 24px; }
.marketing-popup__title { margin: 0 0 12px; font-size: clamp(20px, 5vw, 26px); font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.marketing-popup__description { margin: 0 0 24px; color: #57534e; font-size: 16px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.marketing-popup__cta { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; text-decoration: none; font: inherit; font-weight: 700; }
.marketing-popup :focus-visible { outline: 3px solid #476446; outline-offset: 3px; }
.marketing-popup[open] { animation: marketing-popup-enter 180ms ease-out; }
html.has-marketing-popup { overflow: hidden; }
@keyframes marketing-popup-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .marketing-popup { max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .marketing-popup__content { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { .marketing-popup[open] { animation: none; } }
