/* Scoped to the greeting so it can share every marketing page's footer. */
html.z-holiday-open { overflow: hidden; }
.z-holiday {
  --holiday-accent: #315a46;
  --holiday-tint: #e7eee8;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(500px, calc(100vw - 32px));
  max-width: 500px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #19352b;
  background: #fff;
  border: 1px solid #ffffff80;
  border-radius: 22px;
  box-shadow: 0 24px 100px #061c2859;
  font-family: Montserrat, system-ui, sans-serif;
  text-align: center;
}
.z-holiday::backdrop { background: #071b2a9c; backdrop-filter: blur(5px); }
.z-holiday--autumn { --holiday-accent: #8b4829; --holiday-tint: #f5e9dd; }
.z-holiday--gold { --holiday-accent: #71541d; --holiday-tint: #f5edd9; }
.z-holiday--rose { --holiday-accent: #963e5a; --holiday-tint: #fae9ee; }
.z-holiday--blue { --holiday-accent: #275579; --holiday-tint: #e5eef6; }
.z-holiday[open] { animation: z-holiday-appear .3s ease-out; }
.z-holiday .z-holiday-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #17372b;
  background: #fffffff2;
  border: 1px solid #d1dad4;
  border-radius: 50%;
  font: 30px/1 system-ui, sans-serif;
  cursor: pointer;
}
.z-holiday-artwork { background: var(--holiday-tint); }
.z-holiday-image { display: block; width: 100%; height: clamp(160px, 29vh, 260px); object-fit: cover; }
.z-holiday-image-fallback { display: none; height: clamp(160px, 29vh, 260px); place-items: center; color: var(--holiday-accent); font-size: 70px; }
.z-holiday-image-error .z-holiday-image { display: none; }
.z-holiday-image-error .z-holiday-image-fallback { display: grid; }
.z-holiday-copy { padding: 28px 34px 32px; }
.z-holiday .z-holiday-eyebrow { margin: 0 0 14px; color: var(--holiday-accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.6; }
.z-holiday h2 { margin: 0 0 16px; color: #183c2f; font: 750 clamp(26px, 5vw, 35px)/1.15 Montserrat, system-ui, sans-serif; letter-spacing: -.035em; overflow-wrap: break-word; }
.z-holiday #z-holiday-message p { margin: 0 0 14px; color: #4d6258; font-size: 16px; font-weight: 400; line-height: 1.7; }
.z-holiday .z-holiday-signature { margin: 20px 0 24px; color: #4d6258; font-size: 14px; line-height: 1.6; }
.z-holiday-signature strong { color: var(--holiday-accent); }
.z-holiday .z-holiday-continue { min-height: 48px; width: 100%; padding: 13px 20px; color: #fff; background: var(--holiday-accent); border: 0; border-radius: 10px; font: 700 16px/1.5 Montserrat, system-ui, sans-serif; cursor: pointer; }
.z-holiday button:hover { filter: brightness(.93); }
.z-holiday button:focus-visible { outline: 3px solid #f0bd36; outline-offset: 3px; }
.z-holiday-replay[hidden] { display: none !important; }
@keyframes z-holiday-appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .z-holiday { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .z-holiday-copy { padding: 24px 22px; }
  .z-holiday .z-holiday-signature { margin: 16px 0 20px; }
}
@media (prefers-reduced-motion: reduce) { .z-holiday[open] { animation: none; } }
