#arva-climate-popup { box-sizing: border-box; position: fixed; right: 40px; bottom: 40px; z-index: 10000; width: 413px; max-width: calc(100vw - 32px); padding: 63px 24px 48px; overflow: hidden; border-radius: 29px; background: #d5e2df; text-align: center; }
#arva-climate-popup[hidden] { display: none; }
#arva-climate-popup .arva-climate-popup-background { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
#arva-climate-popup .arva-climate-popup-background img { position: absolute; width: 382.3%; max-width: none; height: 285.2%; left: -114.9%; top: -63%; filter: blur(15.8px); }
#arva-climate-popup .arva-climate-popup-close { position: absolute; right: 13px; top: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
#arva-climate-popup .arva-climate-popup-close img { display: block; width: 34px; height: 34px; }
#arva-climate-popup h2 { margin: 0 auto 24px; padding: 0; font-family: Reckless, RecklessLight, Georgia, serif; font-size: 43.8px; font-weight: 400; line-height: 40.44px; color: #07503f; }
#arva-climate-popup .arva-climate-popup-link { display: flex; align-items: center; justify-content: center; width: 196px; max-width: 100%; min-height: 32px; margin: auto; border-radius: 24px; background: #e8fe85; color: #000; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.55; text-transform: uppercase; text-decoration: none; }
#arva-climate-popup .arva-climate-popup-link:hover { background: white; }
#arva-climate-popup :focus-visible { outline: 2px solid #07503f; outline-offset: 3px; }
#arva-climate-popup.is-visible { animation: arva-climate-popup-in .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes arva-climate-popup-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { #arva-climate-popup { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 55px 20px 32px; } #arva-climate-popup h2 { font-size: 38px; line-height: 37px; } #arva-climate-popup .arva-climate-popup-link { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { #arva-climate-popup.is-visible { animation: none; } }

#arva-climate-popup.is-closing { pointer-events: none; animation: arva-climate-popup-out .2s cubic-bezier(.22,1,.36,1) both; }
@keyframes arva-climate-popup-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { #arva-climate-popup.is-closing { animation: none; } }

/* Preserve the popup's own typography against the theme's mobile heading reset. */
#arva-climate-popup h2 br { display: block; }
#arva-climate-popup { max-height: calc(var(--popup-viewport-height, 100dvh) - 32px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
  #arva-climate-popup {
    bottom: calc(var(--popup-viewport-bottom, 0px) + max(16px, env(safe-area-inset-bottom, 0px)));
    max-height: calc(var(--popup-viewport-height, 100dvh) - 32px - env(safe-area-inset-bottom, 0px));
    border-radius: 29px;
  }
}

/* Compact announcement sized to the visible viewport, including zoom and keyboards. */
#arva-climate-popup {
  right: calc(var(--popup-viewport-right, 0px) + max(12px, env(safe-area-inset-right, 0px)));
  bottom: calc(var(--popup-viewport-bottom, 0px) + max(12px, env(safe-area-inset-bottom, 0px)));
  width: 320px;
  max-width: calc(var(--popup-viewport-width, 100vw) - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  max-height: calc(var(--popup-viewport-height, 100dvh) - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 48px 16px 16px;
  border-radius: 20px;
  overflow: hidden;
}
#arva-climate-popup .arva-climate-popup-content {
  max-height: max(0px, min(220px, max(120px, calc(var(--popup-viewport-height, 100dvh) * .4 - 64px)), calc(var(--popup-viewport-height, 100dvh) - 100px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
}
#arva-climate-popup h2 { font-size: 30px; line-height: 1.05; margin-bottom: 16px; overflow-wrap: anywhere; }
#arva-climate-popup h2 br { display: none; }
#arva-climate-popup .arva-climate-popup-link { min-height: 44px; font-size: 14px; }
@media (max-width: 600px), (max-height: 600px) {
  #arva-climate-popup { width: 280px; }
  #arva-climate-popup h2 { font-size: 24px; margin-bottom: 12px; }
}

/* Mobile card scaled proportionally from the 260px layout. */
@media (max-width: 600px) {
  #arva-climate-popup {
    width: 200px;
    height: auto;
    padding: 36.923px 12.308px 12.308px;
    border-radius: 15.385px;
    clip-path: inset(0 round 15.385px);
    isolation: isolate;
  }
  #arva-climate-popup .arva-climate-popup-background {
    border-radius: inherit;
  }
  #arva-climate-popup .arva-climate-popup-content {
    max-height: none;
    padding: 3.077px;
  }
  #arva-climate-popup h2 {
    font-size: 18.462px;
    margin-bottom: 9.231px;
  }
  #arva-climate-popup .arva-climate-popup-link {
    width: 150.769px;
    min-height: 33.846px;
    border-radius: 18.462px;
    font-size: 10.769px;
  }
  #arva-climate-popup .arva-climate-popup-close {
    right: 4px;
    top: 0;
  }
  #arva-climate-popup .arva-climate-popup-close img {
    width: 26.154px;
    height: 26.154px;
  }
}
