
.av-funnel-locked {
  overflow: hidden;
}

.av-funnel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.46);
}

.av-funnel-dialog,
.av-funnel-endpoint {
  color: var(--ink, #17202a);
  background: var(--av-funnel-bg, #fff);
  border: var(--av-funnel-border, 1px solid rgba(0, 0, 0, 0.18));
  border-radius: var(--av-funnel-radius, 8px);
  box-shadow: var(--av-funnel-shadow, 0 24px 70px rgba(0, 0, 0, 0.22));
}

.av-funnel-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 38px);
}

.av-funnel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--av-funnel-radius, 8px);
  color: inherit;
  background: transparent;
  font-weight: 900;
}

.av-funnel-eyebrow {
  margin: 0 0 10px;
  color: var(--av-funnel-accent, currentColor);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.av-funnel-dialog h2,
.av-funnel-endpoint h2 {
  margin: 0 0 12px;
  color: var(--av-funnel-heading, inherit);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.av-funnel-dialog p,
.av-funnel-endpoint p {
  margin: 0 0 18px;
}

.av-funnel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.av-funnel-primary,
.av-funnel-secondary,
.av-funnel-continue {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--av-funnel-radius, 8px);
  font-weight: 850;
  text-decoration: none;
}

.av-funnel-primary {
  color: var(--av-funnel-primary-color, #fff);
  background: var(--av-funnel-primary-bg, #004a73);
}

.av-funnel-secondary,
.av-funnel-continue {
  color: var(--av-funnel-secondary-color, inherit);
  background: var(--av-funnel-secondary-bg, transparent);
  border: var(--av-funnel-secondary-border, 1px solid currentColor);
}

.av-funnel-text {
  color: inherit;
  font-weight: 750;
  text-underline-offset: 4px;
  opacity: 0.82;
}

.av-funnel-continue {
  margin-top: 18px;
}

.av-funnel-endpoint {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 36px);
}

@media (max-width: 640px) {
  .av-funnel-backdrop {
    align-items: end;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  }

  .av-funnel-dialog {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
    padding-bottom: max(28px, calc(24px + env(safe-area-inset-bottom)));
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .av-funnel-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .av-funnel-dialog,
  .av-funnel-endpoint {
    animation: avFunnelIn 180ms ease-out both;
  }
}

@keyframes avFunnelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
  --av-funnel-bg: #ffffff;
  --av-funnel-border: 0;
  --av-funnel-radius: 0;
  --av-funnel-shadow: none;
  --av-funnel-accent: #c98a00;
  --av-funnel-heading: #20205f;
  --av-funnel-primary-bg: #b82025;
  --av-funnel-secondary-color: #20205f;
}

.av-funnel-footer-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background: #ffffff;
  padding: clamp(42px, 7vw, 72px) 20px;
  contain: paint;
}

.av-funnel-footer-wrap .av-funnel-endpoint {
  width: min(1040px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
  min-width: 0;
}

.av-funnel-footer-wrap *,
.av-funnel-footer-wrap *::before,
.av-funnel-footer-wrap *::after {
  max-width: 100%;
  min-width: 0;
}

.av-funnel-footer-wrap .av-funnel-endpoint > p,
.av-funnel-footer-wrap .av-funnel-endpoint > h2,
.av-funnel-footer-wrap .av-funnel-endpoint > .av-funnel-eyebrow,
.av-funnel-footer-wrap .av-funnel-endpoint > .av-funnel-actions {
  max-width: 980px;
}

.av-funnel-footer-wrap .av-funnel-endpoint h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.av-funnel-footer-wrap [data-av-funnel-click="donate"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: #20205f;
  font-weight: 850;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #20205f;
  opacity: 1;
}

.av-funnel-footer-wrap [data-av-funnel-click="donate"]:hover,
.av-funnel-footer-wrap [data-av-funnel-click="donate"]:focus-visible {
  color: #20205f;
  background: #f5f5ff;
  border-color: #20205f;
}

.av-funnel-footer-wrap .av-funnel-actions {
  max-width: 100%;
}

.av-funnel-footer-wrap .av-funnel-actions a {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  .av-funnel-footer-wrap {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    overflow-x: hidden;
  }

  .av-funnel-footer-wrap .av-funnel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .av-funnel-footer-wrap .av-funnel-actions a {
    width: 100%;
    min-width: 0;
  }
}

.av-funnel-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 46px;
  margin-top: 5px;
  padding: 0 18px;
  border: 1px solid rgba(32, 32, 95, 0.32);
  background: rgba(255, 255, 255, 0.22);
  color: #20205f;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.av-funnel-inline-link:hover,
.av-funnel-inline-link:focus-visible {
  border-color: #20205f;
  background: #ffffff;
  color: #b82025;
}

.av-funnel-inline-link .av-funnel-inline-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

#howCanIHelp .av-funnel-actions {
  margin-top: 8px;
}
