: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;
}

/* Checkout skeleton loading — keep content out of flow (no absolute overlay) */
body.is-checkout-loading {
  overflow-x: hidden;
}

body.is-checkout-loading .content {
  display: none;
}

body:not(.is-checkout-loading) .checkout-skeleton {
  display: none !important;
}

.checkout-skeleton {
  padding: 12px 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.checkout-skeleton__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.checkout-skeleton__amounts {
  margin-bottom: 24px;
}

.checkout-skeleton__chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}


.checkout-skeleton__prefs {
  margin-bottom: 20px;
}

.checkout-skeleton__summary {
  margin-bottom: 16px;
}

.skel {
  display: block;
  background: linear-gradient(90deg, #ececec 0%, #f5f5f5 42%, #ececec 84%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.15s ease-in-out infinite;
  border-radius: 8px;
}

.skel--title {
  width: min(280px, 78%);
  height: 34px;
  border-radius: 10px;
}

.skel--line {
  width: min(340px, 92%);
  height: 12px;
}

.skel--line-short {
  width: min(220px, 64%);
}

.skel--chip {
  height: 58px;
  border-radius: var(--radius);
}

.skel--custom {
  height: 72px;
  margin-bottom: 12px;
  border-radius: var(--radius);
}

.skel--ticker {
  width: 70%;
  height: 12px;
}

.skel--heading {
  width: 140px;
  height: 16px;
  margin-bottom: 12px;
}


.skel--check {
  width: 88%;
  height: 14px;
  margin-bottom: 14px;
}

.skel--check-wide {
  width: 96%;
}

.skel--summary-row {
  height: 16px;
  margin-bottom: 12px;
}

.skel--btn {
  height: 52px;
  margin: 16px 0 12px;
  border-radius: 999px;
}

.skel--legal {
  width: 92%;
  height: 11px;
}

@keyframes skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
    background: #ececec;
  }
}

/* Thank you */


/* Hero */
.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;
}

.stats__donors {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 12px 0 0;
  min-height: 1.25em;
  font-size: clamp(10px, 3vw, 12px);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}

.stats__donors-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.stats__donors-icon-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.stats__donors-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.35s ease;
}

.stats__donors.is-fading .stats__donors-text {
  opacity: 0;
}

/* Frequency */


@keyframes frequency-boost-shine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}


/* Amount grid */
.amounts {
  margin-bottom: 24px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.amount-grid[hidden] {
  display: none;
}

.amount-chip {
  position: relative;
  min-height: 58px;
  height: 58px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.amount-chip:hover {
  border-color: var(--text-muted);
}

.amount-chip.is-selected {
  padding-left: calc(8px * 1.3);
  padding-right: calc(8px * 1.3);
  background-color: #274a34;
  border-color: #0000;
  color: #ccf88e;
  box-shadow: none;
}

.amount-chip.is-suggested {
  overflow: visible;
  padding-bottom: 16px;
}

.suggested-donation-tile_tag__xRBex {
  bottom: -4px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transform-origin: center bottom;
}

.suggested-donation-tag_tag__dIdH1 {
  white-space: nowrap;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ccf88e;
  color: #1f5e27;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}

.suggested-donation-tag_icon__RKI_k {
  font-size: 9px;
  line-height: 1;
}

/* Currency selector */
.checkout-currency {
  margin-bottom: 16px;
}

.checkout-currency--embedded {
  position: absolute;
  right: 16px;
  bottom: 0;
  z-index: 2;
  margin: 0;
  max-width: calc(100% - 32px);
  transform: translateY(50%);
}

.checkout-currency__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-currency__label--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkout-currency__wrap {
  position: relative;
}

.checkout-currency__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.checkout-currency__trigger:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(74, 157, 68, 0.25);
}

.checkout-currency--embedded .checkout-currency__wrap {
  background: var(--bg);
}

.checkout-currency--embedded .checkout-currency__trigger {
  width: auto;
  max-width: 100%;
  padding: 3px 22px 3px 5px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  border-radius: 0;
}

.checkout-currency--embedded .checkout-currency__trigger:focus {
  box-shadow: none;
  outline: none;
}

.checkout-currency--embedded .checkout-currency__trigger-flag.fis {
  width: 1.125rem;
  height: 1.125rem;
  line-height: 1.125rem;
  background-size: 1.5rem 1.5rem;
}


.checkout-currency--embedded .checkout-currency__trigger-text {
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Custom amount */
.custom-amount-shell {
  position: relative;
  margin-bottom: 22px;
}

.custom-amount {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  min-height: 88px;
  transition: border-color 0.15s ease;
}

.custom-amount__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.checkout-currency__trigger-flag.fis {
  display: inline-block;
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  line-height: 1.625rem;
  border-radius: 50%;
  overflow: hidden;
  background-size: 2.1rem 2.1rem;
  background-position: center;
}

.checkout-currency__trigger-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-currency__select {
  width: 100%;
  appearance: none;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

.checkout-currency__select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(74, 157, 68, 0.25);
}


.custom-amount__error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #d93025;
}

.custom-amount__error[hidden] {
  display: none;
}

.custom-amount__currency {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  line-height: 1;
  color: var(--text-muted);
}

.custom-amount__symbol {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.custom-amount__code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.custom-amount__value-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
}

.custom-amount__input {
  width: auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 700;
  line-height: 1;
  text-align: right;
  padding: 0;
  outline: none;
  letter-spacing: -0.02em;
}

.custom-amount__suffix {
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}


/* Cards & sections */
.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;
}

.section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

/* Payment */


/* Preferences */
.preferences {
  margin-bottom: 16px;
}

/* Inline payment method (replaces bottom sheet) */


/* Keep real placeholders for :placeholder-shown, but hide them visually */


.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.checkbox input:checked {
  background-color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 6px #e8f5e6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.5 11.2 12.5 4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.checkbox input:focus-visible {
  outline: 2px solid rgba(74, 157, 68, 0.45);
  outline-offset: 4px;
}


/* Summary */
.summary-list {
  margin: 0 0 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.summary-row dt {
  font-weight: 400;
  color: var(--text);
}

.summary-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.summary-row:not(.summary-row--total) dt,
.summary-row:not(.summary-row--total) dd {
  color: var(--text-muted);
  font-weight: 400;
}

.summary-row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.summary-row--total dt,
.summary-row--total dd {
  font-weight: 500;
  font-size: 15px;
}

.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);
}

/* Guarantee */
.guarantee {
  background: transparent;
  border: 0;
}

.guarantee__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.guarantee__icon {
  flex-shrink: 0;
  margin-top: 0;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.guarantee__copy {
  min-width: 0;
}

.guarantee__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.guarantee__text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

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

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 0 0 14px;
}

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

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

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


/* Payment bottom sheet */


/* Real placeholder kept for :placeholder-shown; visually hidden for floating label */


/* Giving Guarantee bottom sheet */
.guarantee-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.guarantee-sheet:not([hidden]) {
  pointer-events: auto;
}

.guarantee-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guarantee-sheet.is-open .guarantee-sheet__backdrop {
  opacity: 1;
}

.guarantee-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.guarantee-sheet.is-open .guarantee-sheet__panel {
  transform: translateY(0);
}

.guarantee-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px 8px;
  flex-shrink: 0;
}

.guarantee-sheet__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.guarantee-sheet__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -4px -4px 0 0;
  padding: 0;
  color: inherit;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.guarantee-sheet__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.guarantee-sheet__body {
  padding: 0 16px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.guarantee-sheet__lead {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #252525;
}

.guarantee-sheet__section {
  margin-bottom: 18px;
}

.guarantee-sheet__heading {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.guarantee-sheet__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #505050;
}

.guarantee-sheet__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.guarantee-sheet__feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guarantee-sheet__feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #3d3d3d;
  font-size: 14px;
}

.guarantee-sheet__feature-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.guarantee-sheet__feature-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #505050;
}

.guarantee-sheet__tagline {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #252525;
}

.guarantee-sheet__steps {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 12px;
}

.guarantee-sheet__steps li {
  font-size: 13px;
  line-height: 1.5;
  color: #505050;
}

.guarantee-sheet__steps strong {
  display: block;
  color: #252525;
  font-weight: 700;
}

.guarantee-sheet__steps span {
  display: block;
  margin-top: 2px;
}

.guarantee-sheet__footnote {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6f6f6f;
}


/* Currency picker bottom sheet */


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

  .amount-grid {
    gap: 10px;
  }
}


/* ============================================================
   GoFundMe Sans + donation selector fidelity layer
   Source of truth for the donation block. Keep this block last.
   ============================================================ */
@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);
}

.preferences .checkbox > span {
  font-family: var(--font);
  font-style: normal;
  font-weight: 100;
  font-size: 16px;
  line-height: 24px;
  color: #232323;
}

.hero__title, .hero__subtitle, .donation-legend,
#amount-grid .amount-chip, .custom-amount, .checkout-currency__trigger {
  font-family: var(--font);
}

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

.amounts { box-sizing: border-box; }
.donation-legend { font-weight: 175; color: #232323; }
#amount-grid { list-style: none; padding: 0; }

#amount-grid .amount-chip {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #232323;
  cursor: pointer;
  text-align: center;
  font-style: normal;
  font-weight: 175;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px #B7B7B6;
}
#amount-grid .amount-chip:focus,
#amount-grid .amount-chip:focus-visible,
#amount-grid .amount-chip:active { outline: 0; }
#amount-grid .amount-chip.is-selected {
  background: #274A34;
  color: #CCF88E;
  box-shadow: inset 0 0 0 1px #B7B7B6;
}
#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: -8px;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  min-height: 16px;
  padding: 0 4px;
  gap: 4px;
  background: #CCF88E;
  color: #274A34;
  font-family: var(--font);
  font-size: 10px;
  line-height: 1;
  font-weight: 175;
  letter-spacing: 0;
  text-transform: uppercase;
}
#amount-grid .amount-chip .suggested-donation-tag_icon__RKI_k {
  font-size: 10px;
  line-height: 1;
}

.custom-amount-shell { position: relative; box-sizing: border-box; }
.custom-amount {
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px #B7B7B6;
}
.custom-amount__row {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.custom-amount__currency {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.custom-amount__symbol {
  display: block;
  margin: 0;
  padding: 0;
  color: #232323;
  font-family: var(--font);
  font-weight: 175;
  line-height: 1;
  text-align: left;
}
.custom-amount__code { display: none !important; }
.custom-amount__value-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
  text-align: right;
}
.custom-amount__input, .custom-amount__suffix {
  color: #191919;
  font-family: var(--font);
  font-weight: 175 !important;
  line-height: 1 !important;
  letter-spacing: 0;
}
.custom-amount__input {
  flex: 0 0 auto;
  box-sizing: content-box;
  width: 3ch;
  min-width: 0;
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: right;
  pointer-events: none;
  caret-color: transparent;
}
.custom-amount__input[value="1000"] { width: 4ch; }
.custom-amount__suffix { flex: 0 0 auto; margin: 0; padding: 0; }

.checkout-currency--embedded { position: absolute; background: #fff; }
.checkout-currency__wrap { display: block; }
.checkout-currency__trigger {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: #fff;
  color: #232323;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-weight: 175;
  pointer-events: none !important;
  cursor: default !important;
}
.checkout-currency__trigger-flag { display: inline-block; border-radius: 50%; }
.checkout-currency__fixed-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #232323;
  border-bottom: 1.5px solid #232323;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  color: transparent;
  flex: 0 0 auto;
}


.custom-amount__error { margin-top: 8px; }

@media (min-width: 701px) {
  .amounts { width: min(650px, calc(100vw - 32px)); max-width: 650px; margin-left: auto; margin-right: auto; }
  .donation-legend { font-size: 16px; line-height: 20px; margin: 0 0 16px; }
  #amount-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
  #amount-grid .amount-chip { height: 56px; min-height: 56px; border-radius: 12px; padding: 0 24px; }
  .custom-amount { height: 80px; min-height: 80px; border-radius: 12px; }
  .custom-amount__row { padding: 0 12px; }
  .custom-amount__symbol { font-size: 28px; }
  .custom-amount__input, .custom-amount__suffix { font-size: 40px !important; }
  .checkout-currency--embedded { right: 18px; bottom: -14px; padding: 0 4px; }
  .checkout-currency__trigger { height: 28px; gap: 4px; font-size: 14px; line-height: 20px; }
  .checkout-currency__trigger-flag { width: 22px; height: 22px; }
  .checkout-currency__fixed-chevron { margin-left: 8px; }
}

@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: 8px 0 0; color: #232323; font-size: 16px; line-height: 20px; font-weight: 175; letter-spacing: 0; text-align: center; }
  .amounts { width: 100%; max-width: none; margin: 0; padding: 0; }
  .donation-legend { margin: 0 0 20px; font-size: 16px; line-height: 20px; font-weight: 175; letter-spacing: 0; text-align: left; }
  #amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; row-gap: 8px; width: 100%; margin: 0 0 8px; }
  #amount-grid .amount-chip { height: 56px; min-height: 56px; border-radius: 12px; padding: 0 8px; font-size: 16px; line-height: 20px; font-weight: 175; }
  .custom-amount-shell { width: 100%; margin: 0; }
  .custom-amount { height: 80px; min-height: 80px; border-radius: 12px; }
  .custom-amount__row { padding: 0 12px; }
  .custom-amount__symbol { font-size: 28px; font-weight: 175; }
  .custom-amount__input, .custom-amount__suffix { font-size: 40px !important; font-weight: 175 !important; }
  .checkout-currency--embedded { right: 18px; bottom: -14px; padding: 0 4px; }
  .checkout-currency__trigger { height: 28px; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 175; }
  .checkout-currency__trigger-flag { width: 22px; height: 22px; }
  .checkout-currency__fixed-chevron { margin-left: 8px; }
  .stats__donors { margin-top: 24px; }
}

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

/* ============================================================
   Preference checkboxes fidelity / responsive spacing
   ============================================================ */
.preferences {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 0;
}

.preferences .checkbox {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
  margin: 0;
  padding: 0;
  color: #232323;
}

.preferences .checkbox + .checkbox {
  margin-top: 24px;
}

.preferences .checkbox > input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
}

.preferences .checkbox > span {
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: "GoFundMe Sans", Trebuchet, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 175;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: rgb(35, 35, 35);
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .preferences {
    padding-inline: 0;
    margin-top: 2px;
    margin-bottom: 24px;
  }

  .preferences .checkbox {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 16px;
  }

  .preferences .checkbox + .checkbox {
    margin-top: 24px;
  }
}

@media (max-width: 380px) {
  .preferences .checkbox {
    column-gap: 14px;
  }

  .preferences .checkbox > span {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ============================================================
   FINAL CHECKOUT FIDELITY PASS
   One authoritative layer for typography, spacing and density.
   ============================================================ */

/* Remove inherited over-bold styling in supporting checkout copy. */
.stats__donors,
.preferences .checkbox > span,
.summary-row,
.legal,
.guarantee__text {
  font-family: var(--font);
  font-weight: 100;
  letter-spacing: 0;
}

/* Hero: retain original strong display face, but keep vertical rhythm compact. */
@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;
  }
  .donation-legend {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 175;
  }
}

/* Suggested amount tiles: one clean border, no selected halo. */
#amount-grid .amount-chip {
  border: 1px solid #B7B7B6 !important;
  box-shadow: none !important;
  background: #fff;
  font-weight: 175;
}
#amount-grid .amount-chip.is-selected,
#amount-grid .amount-chip.is-selected:focus,
#amount-grid .amount-chip.is-selected:focus-visible,
#amount-grid .amount-chip.is-selected:active {
  background: #274A34 !important;
  border-color: #B7B7B6 !important;
  color: #CCF88E !important;
  box-shadow: none !important;
}
#amount-grid .amount-chip .suggested-donation-tile_tag__xRBex {
  min-height: 15px;
  padding: 0 5px;
  bottom: -7px;
  border: 0;
  border-radius: 4px;
  font-size: 9px;
  line-height: 15px;
  font-weight: 175;
  gap: 3px;
}
#amount-grid .amount-chip .suggested-donation-tag_icon__RKI_k {
  font-size: 9px;
}

/* Amount field: exactly one outline, compact value, true edge anchoring. */
.custom-amount {
  border: 1px solid #B7B7B6 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.custom-amount__row {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
.custom-amount__symbol {
  font-size: 27px !important;
  line-height: 1 !important;
  font-weight: 175 !important;
}
.custom-amount__input,
.custom-amount__suffix {
  font-size: 39px !important;
  line-height: 1 !important;
  font-weight: 175 !important;
  letter-spacing: -0.2px !important;
}

/* Currency tag: sit on the border, smaller flag/text/chevron, fully inert. */
.checkout-currency--embedded {
  right: 14px !important;
  bottom: -13px !important;
  padding: 0 5px !important;
  background: #fff !important;
}
.checkout-currency__trigger {
  height: 26px !important;
  gap: 4px !important;
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 175 !important;
  background: #fff !important;
}
.checkout-currency__trigger-flag {
  width: 20px !important;
  height: 20px !important;
}
.checkout-currency__fixed-chevron {
  width: 7px !important;
  height: 7px !important;
  margin-left: 7px !important;
  border-right-width: 1.25px !important;
  border-bottom-width: 1.25px !important;
}

/* Donor ticker: supporting text, not a heading. */
.stats__donors {
  margin-top: 20px !important;
  gap: 8px;
  min-height: 20px;
  font-size: 12px !important;
  line-height: 20px !important;
  font-weight: 100 !important;
  color: #232323;
}
.stats__donors-text {
  line-height: 20px;
  font-weight: 100 !important;
}
.stats__donors-icon,
.stats__donors-icon-img {
  width: 16px;
  height: 16px;
}

/* Preferences: lighter body typography and tighter, balanced rhythm. */
.preferences {
  margin-top: 14px !important;
  margin-bottom: 28px !important;
}
.preferences .checkbox {
  grid-template-columns: 20px minmax(0,1fr) !important;
  column-gap: 12px !important;
  align-items: start !important;
}
.preferences .checkbox + .checkbox {
  margin-top: 18px !important;
}
.preferences .checkbox > input {
  width: 20px !important;
  height: 20px !important;
  margin-top: 2px !important;
}
.preferences .checkbox > span {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 100 !important;
  color: #232323 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Summary: restore supporting/default hierarchy instead of all-bold copy. */
.summary.card.card--plain {
  margin-top: 0 !important;
}
.summary .section-title {
  margin: 0 0 14px !important;
  font-family: var(--font);
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 175 !important;
  color: #232323 !important;
}
.summary-list {
  margin: 0 0 16px !important;
}
.summary-row {
  padding: 10px 0 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 100 !important;
}
.summary-row dt,
.summary-row dd {
  font-weight: 100 !important;
}
.summary-row:not(.summary-row--total) dt,
.summary-row:not(.summary-row--total) dd {
  color: #6F6F6F !important;
  font-weight: 100 !important;
}
.summary-row--total {
  margin-top: 2px !important;
  padding-top: 14px !important;
  border-top: 1px solid #E9E9E9 !important;
}
.summary-row--total dt,
.summary-row--total dd {
  color: #232323 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 175 !important;
}

/* Donate button: original compact pill and correct token colors. */
.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 text: deliberately quiet and compact. */
.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;
}

/* Guarantee transition: no oversized shadow/air pocket. */
.guarantee {
  margin-top: 26px !important;
  padding-top: 0 !important;
  box-shadow: none !important;
}
.section-divider {
  margin: 0 0 16px !important;
  border-top-color: #E9E9E9 !important;
}
.guarantee__head {
  gap: 10px !important;
}
.guarantee__title {
  font-family: var(--font);
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 175 !important;
}
.guarantee__text {
  margin-top: 5px !important;
  font-size: 13px !important;
  line-height: 19px !important;
  font-weight: 100 !important;
  color: #6F6F6F !important;
}
.guarantee__text a {
  color: #6F6F6F !important;
  font-weight: 100 !important;
}

@media (max-width: 380px) {
  .preferences .checkbox { column-gap: 10px !important; }
  .preferences .checkbox > span { font-size: 15px !important; line-height: 22px !important; }
  .summary-row { font-size: 15px !important; }
  .summary-row--total dt,
  .summary-row--total dd { font-size: 15px !important; }
  .legal, .legal--inline { font-size: 11px !important; line-height: 17px !important; }
}

/* === Payment sheet fidelity pass === */


/* Do not depend on the icon font for the close glyph. */


/* ============================================================
   REFERENCE MATCH: requested items 1-17 only
   Desktop geometry measured from the supplied first reference.
   ============================================================ */
@media (min-width: 701px) {
  html { background: #f5f5f5 !important; }
  body {
    background: #f5f5f5 !important;
    padding: 24px 0 48px !important;
  }

  /* 1-3: centered 655px white checkout card on #f5f5f5. */
  .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;
  }

  /* 4-8: progress + left-aligned compact hero. */
  .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: 7px 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;
  }

  /* 9-12: six compact tiles in one 557px row. */
  .amounts {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .donation-legend {
    margin: 0 0 16px !important;
    font-family: var(--font) !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 175 !important;
    color: #232323 !important;
    text-align: left !important;
  }
  #amount-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 0 9px !important;
  }
  #amount-grid .amount-chip {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 4px !important;
    border: 1px solid #B7B7B6 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-family: var(--font) !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 175 !important;
    color: #232323 !important;
  }
  #amount-grid .amount-chip.is-selected {
    background: #274A34 !important;
    border-color: #274A34 !important;
    color: #CCF88E !important;
  }
  #amount-grid .amount-chip .suggested-donation-tile_tag__xRBex {
    min-height: 14px !important;
    height: 14px !important;
    bottom: -7px !important;
    padding: 0 4px !important;
    gap: 2px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #CCF88E !important;
    color: #274A34 !important;
    font-size: 8px !important;
    line-height: 14px !important;
    font-weight: 175 !important;
  }
  #amount-grid .amount-chip .suggested-donation-tag_icon__RKI_k {
    font-size: 8px !important;
    line-height: 1 !important;
  }

  /* 13-17: full-width 557px amount field and integrated USD tag. */
  .custom-amount-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .custom-amount {
    width: 100% !important;
    height: 114px !important;
    min-height: 114px !important;
    padding: 0 !important;
    border: 1px solid #B7B7B6 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .custom-amount__row {
    width: 100% !important;
    height: 100% !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .custom-amount__symbol {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 175 !important;
    color: #232323 !important;
  }
  .custom-amount__value-wrap {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .custom-amount__input,
  .custom-amount__suffix {
    font-family: var(--font) !important;
    font-size: 41px !important;
    line-height: 62px !important;
    font-weight: 175 !important;
    letter-spacing: 0 !important;
    color: #232323 !important;
  }
  .checkout-currency--embedded {
    right: 15px !important;
    bottom: -13px !important;
    padding: 0 5px !important;
    background: #fff !important;
  }
  .checkout-currency__trigger {
    height: 26px !important;
    padding: 0 !important;
    gap: 4px !important;
    background: #fff !important;
    font-family: var(--font) !important;
    font-size: 12px !important;
    line-height: 18px !important;
    font-weight: 175 !important;
    color: #232323 !important;
  }
  .checkout-currency__trigger-flag,
  .checkout-currency--embedded .checkout-currency__trigger-flag.fis {
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    background-size: 24px 24px !important;
  }
  .checkout-currency__fixed-chevron {
    width: 6px !important;
    height: 6px !important;
    margin-left: 6px !important;
    border-right: 1.25px solid #232323 !important;
    border-bottom: 1.25px solid #232323 !important;
  }
}

/* Responsive fallback: preserve card behavior without altering the other checkout sections. */
@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; }
}

/* Currency badge fidelity fix: keep USD tag centered on the amount-field border. */
.custom-amount-shell {
  position: relative !important;
  overflow: visible !important;
}
.checkout-currency--embedded {
  transform: none !important;
  z-index: 5 !important;
  margin: 0 !important;
  right: 15px !important;
  bottom: -13px !important;
  padding: 0 8px !important;
  background: #fff !important;
  line-height: 1 !important;
}
.checkout-currency--embedded .checkout-currency__wrap {
  display: block !important;
  background: #fff !important;
}
.checkout-currency--embedded .checkout-currency__trigger {
  width: auto !important;
  min-width: 0 !important;
  height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  pointer-events: none !important;
  cursor: default !important;
  box-shadow: none !important;
}
.checkout-currency--embedded .checkout-currency__trigger-flag,
.checkout-currency--embedded .checkout-currency__trigger-flag.fis {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  margin: 0 !important;
  background-size: 24px 24px !important;
}
.checkout-currency--embedded .checkout-currency__trigger-text {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font) !important;
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 175 !important;
  letter-spacing: 0 !important;
  color: #232323 !important;
}
.checkout-currency--embedded .checkout-currency__fixed-chevron {
  flex: 0 0 6px !important;
  width: 6px !important;
  height: 6px !important;
  margin: -3px 0 0 7px !important;
  padding: 0 !important;
  border-right: 1.25px solid #232323 !important;
  border-bottom: 1.25px solid #232323 !important;
  transform: rotate(45deg) !important;
}

@media (max-width: 700px) {
  .checkout-currency--embedded {
    right: 15px !important;
    bottom: -13px !important;
    transform: none !important;
  }
}


/* Final preset layout: 10 / 25 / 50 over 100 / 200 / 500 */
#amount-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
@media (max-width: 700px) {
  #amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Mobile hero refinement requested: remove progress ring, center copy, add top spacing. */
@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: 10px auto 0 !important;
    max-width: 32ch !important;
    text-align: center !important;
    font-weight: 450 !important;
  }
}

/* Mobile hero font-axis correction.
   GoFundMeSans-Variable uses a custom wght axis from 30 to 200,
   so CSS weights like 450/750 clamp to the same maximum. Use the
   font's real variation axis values to create the intended contrast. */
@media (max-width: 700px) {
  .hero__title {
    font-weight: 400 !important;
    font-variation-settings: "wght" 168, "slnt" 0 !important;
  }

  .hero__subtitle {
    font-weight: 400 !important;
    font-variation-settings: "wght" 104, "slnt" 0 !important;
  }
}


/* Local US flag only. */
.fi.fi-us {
  position: relative;
  display: inline-block;
  width: 1.333333em;
  line-height: 1em;
  background-image: url("../images/us.svg");
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}
.fi.fi-us::before { content: " "; }
.fi.fi-us.fis { width: 1em; }

/* Inline SVG icons: replaces Bootstrap Icons font dependency. */
.inline-icon{display:inline-block;width:1em;height:1em;vertical-align:-.125em;fill:currentColor;flex:0 0 auto}


/* =========================================================
   FINAL RESPONSIVE SAFETY LAYER
   Preserves the approved design while making it reliable on
   desktop, iPad/tablet and mobile.
   ========================================================= */
html, body { width:100%; max-width:100%; }
img, svg { max-width:100%; }
button, input { max-width:100%; }
#amount-grid .amount-chip {
  cursor:pointer !important;
  pointer-events:auto !important;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
}
#amount-grid .amount-chip > * { pointer-events:none; }

/* Desktop */
@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;
  }
}

/* iPad / tablet */
@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;
  }
  #amount-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  #amount-grid .amount-chip {
    min-width:0 !important;
  }
}

/* Phones */
@media (max-width: 700px) {
  body {
    width:100% !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    padding:0 !important;
    background:#fff !important;
  }
  .page, .content, .amounts, .custom-amount-shell {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .content {
    padding-left:16px !important;
    padding-right:16px !important;
  }
  #amount-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  #amount-grid .amount-chip {
    min-width:0 !important;
    padding-left:4px !important;
    padding-right:4px !important;
  }
  .custom-amount {
    width:100% !important;
  }
  .preferences .checkbox > span,
  .legal,
  .guarantee__text {
    overflow-wrap:anywhere;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .content {
    padding-left:12px !important;
    padding-right:12px !important;
  }
  #amount-grid {
    gap:6px !important;
  }
  #amount-grid .amount-chip {
    font-size:14px !important;
  }
  .custom-amount__input,
  .custom-amount__suffix {
    font-size:36px !important;
  }
}
