:root {
  --bg: #ffffff;
  --bg-muted: #f5f5f5;
  --text: #232323;
  --text-muted: #6f6f6f;
  --green: #4a9d44;
  --green-dark: #274a34;
  --green-light: #ccf88e;
  --green-deeper: #012d19;
  --border: #d8d8d8;
  --border-soft: #e9e9e9;
  --shadow-soft: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  --radius: 12px;
  --radius-pill: 999px;
  --font: "GoFundMe Sans", Trebuchet, Helvetica, Arial, sans-serif;
  --max-width: 480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background: var(--bg);
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
}

.content {
  padding: 12px 16px 32px;
}

.hero {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  text-align: center;
}

.hero__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0;
  max-width: 34em;
  margin-inline: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}


.card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--bg);
}

.card--plain {
  border: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.btn-donate {
  width: 100%;
  padding: 14px 24px;
  border: 0;
  border-radius: 624.9375rem;
  background: #274A34;
  color: #CCF88E;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}

.btn-donate:hover {
  filter: brightness(0.96);
}

.btn-donate:active {
  filter: brightness(0.92);
}

.legal {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

.legal a {
  color: var(--text-muted);
}

.legal--inline {
  margin-top: 16px;
}

.checkout-sticky {
  margin-top: 20px;
}

.checkout-sticky .btn-donate {
  width: 100%;
  display: block;
}

@media (min-width: 520px) {
  .content {
    padding-left: 20px;
    padding-right: 20px;
  }

  
}

@font-face {
  font-family: "GoFundMe Sans";
  src: url("../../fonts/GoFundMeSans-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
}

:root {
  --font: "GoFundMe Sans", Trebuchet, Helvetica, Arial, sans-serif;
}

body, button, input, select, textarea {
  font-family: var(--font);
}


.hero__title .hero__lead { display: block; }
.hero__accent { color: #4A9D44; }

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .page { width: 100%; }
  .content { box-sizing: border-box; width: 100%; max-width: 435px; margin: 0 auto; padding: 24px 24px 40px; }
  .hero { margin: 0 0 31px; padding: 0; text-align: center; }
  .hero__text { max-width: none; margin: 0 auto; text-align: center; }
  .hero__title { margin: 0; color: #232323; font-size: 28px; line-height: 32px; font-weight: 175; letter-spacing: 0; text-align: center; }
  .hero__subtitle { margin: 20px 0 0; color: #232323; font-size: 16px; line-height: 20px; font-weight: 175; letter-spacing: 0; text-align: center; }
  
  
  
  
  
}

@media (max-width: 380px) {
  .content { padding-left: 16px; padding-right: 16px; }
}
.preferences .checkbox > span, .summary-row, .legal {
  font-family: var(--font);
  font-weight: 100;
  letter-spacing: 0;
}

@media (max-width: 700px) {
  .content {
    padding-top: 22px;
    padding-bottom: 32px;
  }
  .hero {
    margin-bottom: 28px;
  }
  .hero__title {
    font-size: 28px;
    line-height: 32px;
    font-weight: 175;
  }
  .hero__subtitle {
    margin-top: 6px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 175;
  }
  
}

.summary.card.card--plain {
  margin-top: 0 !important;
}

.checkout-sticky {
  margin-top: 18px !important;
}
.btn-donate,
.checkout-sticky .btn-donate {
  min-height: 52px !important;
  padding: 13px 24px !important;
  border-radius: 999px !important;
  background: #274A34 !important;
  color: #CCF88E !important;
  font-family: var(--font);
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 175 !important;
  box-shadow: none !important;
}

.legal,
.legal--inline {
  margin-top: 14px !important;
  font-family: var(--font);
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 100 !important;
  color: #6F6F6F !important;
}
.legal a,
.legal--inline a {
  color: #6F6F6F !important;
  font-weight: 100 !important;
}

@media (max-width: 380px) {
  .legal, .legal--inline { font-size: 11px !important; line-height: 17px !important; }
}

@media (min-width: 701px) {
  html { background: #f5f5f5 !important; }
  body {
    background: #f5f5f5 !important;
    padding: 24px 0 48px !important;
  }

  .page {
    width: 655px !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    min-height: calc(100dvh - 24px) !important;
    background: #fff !important;
    border-radius: 36px !important;
    overflow: hidden !important;
  }
  .content {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 49px 48px !important;
  }

  .hero {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    margin: 0 0 34px !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .hero__progress {
    position: relative !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    margin-top: 3px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: conic-gradient(#79dc5a 0 84%, #e9e9e9 84% 100%) !important;
  }
  .hero__progress::before {
    content: "" !important;
    position: absolute !important;
    inset: 7px !important;
    border-radius: 50% !important;
    background: #fff !important;
  }
  .hero__progress-value {
    position: relative !important;
    z-index: 1 !important;
    font-family: var(--font) !important;
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 175 !important;
    color: #232323 !important;
  }
  .hero__text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
  }
  .hero__title {
    margin: 0 !important;
    font-family: var(--font) !important;
    font-size: 30px !important;
    line-height: 32px !important;
    font-weight: 175 !important;
    letter-spacing: -0.2px !important;
    color: #232323 !important;
    text-align: left !important;
  }
  .hero__title .hero__lead { display: block !important; }
  .hero__accent { color: #4A9D44 !important; }
  .hero__subtitle {
    margin: 20px 0 0 !important;
    max-width: none !important;
    font-family: var(--font) !important;
    font-size: 14px !important;
    line-height: 18px !important;
    font-weight: 175 !important;
    color: #232323 !important;
    text-align: left !important;
  }

  
  
  
  
  
  
  
}

@media (max-width: 700px) {
  body { background: #fff !important; padding: 0 !important; }
  .page { width: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 0 !important; }
  .hero { display: flex !important; align-items: flex-start !important; gap: 16px !important; text-align: left !important; }
  .hero__progress { flex: 0 0 48px !important; width: 48px !important; height: 48px !important; display: grid !important; place-items: center !important; position: relative !important; border-radius: 50% !important; background: conic-gradient(#79dc5a 0 84%, #e9e9e9 84% 100%) !important; }
  .hero__progress::before { content:"" !important; position:absolute !important; inset:6px !important; border-radius:50% !important; background:#fff !important; }
  .hero__progress-value { position:relative !important; z-index:1 !important; font-family:var(--font)!important; font-size:11px!important; line-height:14px!important; font-weight:175!important; }
  .hero__text, .hero__title, .hero__subtitle { text-align: left !important; }
}

@media (max-width: 700px) {
  .content {
    padding-top: 34px !important;
  }

  .hero {
    display: block !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .hero__progress {
    display: none !important;
  }

  .hero__text {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .hero__title {
    margin: 0 !important;
    text-align: center !important;
    font-weight: 750 !important;
  }

  .hero__subtitle {
    margin: 20px auto 0 !important;
    max-width: 32ch !important;
    text-align: center !important;
    font-weight: 450 !important;
  }
}

@media (max-width: 700px) {
  .hero__title {
    font-weight: 400 !important;
  }

  .hero__subtitle {
    font-weight: 400 !important;
  }
}

html, body { width:100%; max-width:100%; }
img, svg { max-width:100%; }
button, input { max-width:100%; }


@media (min-width: 1024px) {
  body {
    background:#f5f5f5 !important;
    padding:22px 24px 48px !important;
  }
  .page {
    width:min(100%, 680px) !important;
    max-width:680px !important;
    margin:0 auto !important;
    border-radius:36px !important;
    overflow:visible !important;
  }
  .content {
    width:100% !important;
    max-width:none !important;
    padding-left:48px !important;
    padding-right:48px !important;
  }
}

@media (min-width: 701px) and (max-width: 1023px) {
  body {
    background:#f5f5f5 !important;
    padding:20px !important;
  }
  .page {
    width:min(100%, 700px) !important;
    max-width:700px !important;
    margin:0 auto !important;
    border-radius:28px !important;
    overflow:visible !important;
  }
  .content {
    width:100% !important;
    max-width:none !important;
    padding-left:36px !important;
    padding-right:36px !important;
  }
  
  
}

@media (max-width: 700px) {
  body {
    width:100% !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    padding:0 !important;
    background:#fff !important;
  }

  .content {
    padding-left:16px !important;
    padding-right:16px !important;
  }
  
  
.preferences .checkbox > span, .legal {
    overflow-wrap:anywhere;
  }
}

@media (max-width: 380px) {
  .content {
    padding-left:12px !important;
    padding-right:12px !important;
  }
  
  
}

/* Final checkout hero weight tuning */

.checkout .hero__title,
body .hero__title {
  font-weight: 150 !important;
}

.checkout .hero__subtitle,
body .hero__subtitle {
  font-weight: 110 !important;
}


/* Donation impact — faithful compact yellow upsell */
.donation-impact[hidden] { display: none !important; }
.donation-impact {
  position: relative;
  height: 120px;
  margin: 8px 0 18px;
  color: #5b4b10;
  font-family: var(--font);
}
.donation-impact__arrow {
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: #fff3d0;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px 0 0 0;
}
.donation-impact__content {
  position: relative;
  z-index: 1;
  height: 120px;
  box-sizing: border-box;
  padding: 22px 30px 22px 32px;
  border-radius: 17px;
  background: #fff3d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.donation-impact__copy {
  min-width: 0;
  display: block;
  font-size: 14px;
  line-height: 21px;
  font-weight: 70;
  letter-spacing: 0;
}
.donation-impact__lead,
.donation-impact__line { display: block; }
.donation-impact__copy strong { font-weight: 600; }
.donation-impact__icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffd863;
  color: #816d18;
  display: grid;
  place-items: center;
}
.donation-impact__icon svg { width: 28px; height: 28px; }
@media (max-width: 520px) {
  .donation-impact { height: 108px; margin-top: 8px; }
  .donation-impact__content {
    height: 108px;
    padding: 18px 22px 18px 24px;
    border-radius: 16px;
    gap: 16px;
  }
  .donation-impact__copy { font-size: 15px; line-height: 22px; font-weight: 70; }
  .donation-impact__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .donation-impact__icon svg { width: 24px; height: 24px; }
  .donation-impact__arrow { width: 18px; height: 18px; top: -9px; }
}

/* ===== Donation amount selector: single canonical implementation ===== */
.amounts {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
}
.donation-legend {
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 20px;
  font-weight: 175;
  letter-spacing: 0;
  color: #232323;
  text-align: left;
}
#amount-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
}
#amount-grid .amount-chip {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  padding: 0 8px;
  border: 1px solid #b7b7b6;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #232323;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
  font-family: var(--font);
  font-style: normal;
  font-size: 16px;
  line-height: 20px;
  font-weight: 175;
  letter-spacing: 0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
#amount-grid .amount-chip > * { pointer-events: none; }
#amount-grid .amount-chip:focus-visible { outline: 2px solid #274a34; outline-offset: 2px; }
#amount-grid .amount-chip.is-selected {
  background: #274a34;
  border-color: #274a34;
  color: #ccf88e;
}
#amount-grid .amount-chip > [data-amount-display] {
  font: inherit;
  color: inherit;
  white-space: nowrap;
}
#amount-grid .amount-chip .suggested-donation-tile_tag__xRBex {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 15px;
  padding: 0 5px;
  border: 0;
  border-radius: 4px;
  background: #ccf88e;
  color: #274a34;
  white-space: nowrap;
  font-family: var(--font);
  font-size: 9px;
  line-height: 15px;
  font-weight: 175;
  letter-spacing: 0;
  text-transform: uppercase;
}
#amount-grid .amount-chip .suggested-donation-tag_icon__RKI_k {
  font-size: 9px;
  line-height: 1;
}

.selected-amount-field {
  box-sizing: border-box;
  width: 100%;
  height: 86px;
  margin: 12px 0 0;
  padding: 0 22px;
  border: 1px solid #b7b7b6;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  font-family: var(--font);
  color: #232323;
}
.selected-amount-currency {
  flex: 0 0 auto;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.selected-amount-symbol {
  display: block;
  font-family: var(--font);
  font-size: 24px;
  line-height: 26px;
  font-weight: 150;
  letter-spacing: 0;
  color: #232323;
}
.selected-amount-code {
  display: block;
  margin-top: 5px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 18px;
  font-weight: 125;
  letter-spacing: 0;
  color: #232323;
}
.selected-amount-number {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  white-space: nowrap;
  overflow: visible;
  visibility: hidden;
  font-family: var(--font);
  font-size: 34px;
  line-height: 1;
  font-weight: 150;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #232323;
}
.selected-amount-field.has-value .selected-amount-number { visibility: visible; }
.selected-amount-number > span { flex: 0 0 auto; white-space: nowrap; }
.selected-amount-decimal { margin-left: 0; }

@media (min-width: 701px) {
  .amounts { width: min(650px, calc(100vw - 32px)); max-width: 650px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 380px) {
  #amount-grid { gap: 6px; }
  #amount-grid .amount-chip { font-size: 14px; padding: 0 4px; }
  .selected-amount-field { height: 82px; padding: 0 18px; gap: 12px; }
  .selected-amount-number { font-size: 31px; }
  .selected-amount-symbol { font-size: 22px; line-height: 24px; }
}

/* Donor activity strip — uses existing site donation data */
.donor-activity[hidden] { display: none !important; }
.donor-activity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 10px 4px;
  color: rgb(35, 35, 35);
  font-family: "GoFundMe Sans", Trebuchet, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 60;
}
.donor-activity__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(35, 35, 35);
}
.donor-activity__icon svg { width: 28px; height: 28px; display: block; }
.donor-activity__text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .donor-activity { gap: 10px; padding-left: 4px; padding-right: 4px; }
  .donor-activity__icon { flex-basis: 34px; width: 34px; height: 34px; }
  .donor-activity__icon svg { width: 26px; height: 26px; }
}

/* ===== v49 responsive checkout spacing refinement ===== */
/* Keep the selector and the activity/impact stack visually connected on all sizes. */
.amounts {
  margin-bottom: 0;
}
.summary.card.card--plain {
  margin: 0;
  padding-top: 0;
}

/* Match the reference empty state: currency at left and decimal placeholder at right. */
.selected-amount-number {
  visibility: visible;
}
.selected-amount-number #selected-amount-integer:empty {
  display: none;
}
.selected-amount-field:not(.has-value) .selected-amount-decimal {
  display: inline;
}

/* Donor activity sits directly below the amount field in the empty state. */
.donor-activity {
  position: relative;
  margin: 10px 0 0;
  min-height: 48px;
  padding: 4px 6px 2px;
  gap: 12px;
}
.donor-activity__text {
  flex: 1 1 auto;
}
.donor-activity__close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #232323;
  font-family: var(--font);
  font-size: 24px;
  line-height: 28px;
  font-weight: 70;
  cursor: pointer;
}

/* When selected, impact block sits right under the field; donor row follows immediately. */
.donation-impact {
  margin-top: 14px;
  margin-bottom: 8px;
}
.donation-impact + .donor-activity {
  margin-top: 0;
}

@media (min-width: 701px) {
  .amounts {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .summary.card.card--plain {
    width: 100%;
  }
  .donor-activity {
    margin-top: 10px;
    min-height: 46px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .donation-impact {
    height: 108px;
    margin-top: 14px;
    margin-bottom: 8px;
  }
  .donation-impact__content {
    height: 108px;
    padding: 18px 24px;
  }
}

@media (max-width: 700px) {
  .donor-activity {
    margin-top: 8px;
    min-height: 46px;
    padding: 4px 2px 2px;
  }
  .donation-impact {
    margin-top: 12px;
    margin-bottom: 6px;
  }
  .donation-impact + .donor-activity {
    margin-top: 0;
  }
}
