html[data-year-end-modal-open="true"],
html[data-year-end-modal-open="true"] body { overflow: hidden; }
.year-end-launcher {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: calc(100vw - 40px);
  padding: 10px 18px;
  border: 2px solid var(--white);
  border-radius: 28px;
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(25, 12, 45, .2);
  font: 800 13px/1.4 Montserrat, sans-serif;
  text-align: center;
  text-decoration: none;
}
.year-end-launcher:hover { background: #241744; }
.year-end-launcher:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.year-end-popup {
  width: min(1100px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  color: var(--purple);
  font-family: Montserrat, sans-serif;
  box-shadow: 0 24px 80px rgba(25, 12, 45, .3);
}
.year-end-popup[open] { display: flex; flex-direction: column; }
.year-end-popup::backdrop { background: rgba(25, 12, 45, .72); }
.year-end-popup__top {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--purple);
  color: var(--white);
}
.year-end-popup__eyebrow { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.year-end-popup__close { display: grid; place-items: center; width: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--purple); font: inherit; font-size: 30px; cursor: pointer; }
.year-end-popup__close:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.year-end-popup__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: start;
  gap: 12px 24px;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-padding: 20px;
}
.year-end-popup__summary, .year-end-popup__giving { min-width: 0; }
.year-end-popup__body h2 { margin: 0 0 14px; font-size: 32px; font-weight: 900; line-height: 1.1; letter-spacing: -.045em; }
.year-end-popup__body p { font-size: 14px; line-height: 1.65; }
.year-end-popup__match { margin: 20px 0; padding: 18px; border-radius: 18px; background: var(--lavender); }
.year-end-popup__match h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; font-weight: 800; }
.year-end-popup__match p { margin: 0; font-size: 13px; }
.year-end-popup__progress { margin: 0 0 20px; }
.year-end-popup__progress .year-end-popup__goal { margin: 0; font-size: 19px; font-weight: 800; }
.year-end-popup__progress a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; font-size: 13px; line-height: 1.5; color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.year-end-popup__progress a:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.year-end-popup__status { font-size: 12px; }
.year-end-popup__frequency, .year-end-popup__verification-help { font-size: 12px !important; line-height: 1.5 !important; margin: 0 0 8px; }
.year-end-popup__widget { width: 100%; max-width: 560px; margin: 0 auto 18px; }
.year-end-popup__widget:empty { display: none; }
.year-end-popup__widget iframe { display: block; width: 100% !important; max-width: 100%; height: 820px; border: 0; }
.year-end-popup__give {
  display: flex;
  max-width: 100%;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: var(--lavender);
  color: var(--purple);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.year-end-popup__give:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.year-end-popup__body .year-end-popup__dates { grid-column: 1 / -1; margin: 14px 0 6px; text-align: center; font-size: 12px; font-weight: 700; }
.year-end-popup__body .year-end-popup__note { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 11px; }
.year-end-popup__photo { display: block; width: 100%; height: auto; margin: 16px 0; border-radius: 18px; object-fit: contain; }
@media (max-width: 1023px) {
  .year-end-popup__body { grid-template-columns: minmax(0, 1fr); }
  .year-end-popup__giving { width: 100%; max-width: 560px; margin-inline: auto; }
  .year-end-popup__summary { width: 100%; }
  .year-end-popup__photo { max-width: 360px; margin: 12px auto; }
}
@media (max-width: 860px) {
  .year-end-launcher { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 8px 14px; max-width: calc(100vw - 24px); font-size: 12px; }
}
@media (max-width: 767px) {
  .year-end-popup { border-radius: 20px; }
  .year-end-popup__top { padding: 12px 14px; }
  .year-end-popup__body { padding: 18px 12px; gap: 8px; scrollbar-gutter: auto; }
  .year-end-popup__body h2 { font-size: 25px; }
  #year-end-intro { display: none; }
  .year-end-popup__match { margin: 14px 0; padding: 12px; }
  .year-end-popup__match h3 { font-size: 16px; }
  .year-end-popup__progress { margin-bottom: 8px; }
  .year-end-popup__photo { max-width: 240px; border-radius: 14px; }
}
@media (max-width: 360px) {
  .year-end-popup { width: calc(100% - 8px); }
  .year-end-popup__body { padding-inline: 6px; }
  .year-end-popup__body h2, #year-end-intro, .year-end-popup__progress, .year-end-popup__frequency, .year-end-popup__status { margin-inline: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .year-end-popup[open] { animation: year-end-reveal .18s ease-out; }
  @keyframes year-end-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

.year-end-popup__expand {
  display: block;
  min-height: 44px;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: var(--purple);
  color: var(--white);
  font: 700 13px/1.5 Montserrat, sans-serif;
  cursor: pointer;
}
.year-end-popup__expand:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.year-end-popup[data-checkout-expanded="true"] .year-end-popup__body { grid-template-columns: minmax(0, 1fr); }
.year-end-popup[data-checkout-expanded="true"] .year-end-popup__summary { display: none; }
.year-end-popup[data-checkout-expanded="true"] .year-end-popup__giving,
.year-end-popup[data-checkout-expanded="true"] .year-end-popup__widget { width: 100%; max-width: 760px; margin-inline: auto; }
.year-end-popup[data-checkout-expanded="true"] .year-end-popup__expand { margin-inline: auto; }
