:root {
  --tlc-navy: #002345;
  --tlc-blue: #006bb6;
  --tlc-blue-bright: #10a8df;
  --tlc-blue-soft: #e8f7ff;
  --tlc-yellow: #ffdf3f;
  --tlc-yellow-soft: #fff8d2;
  --surface: #ffffff;
  --muted: #587287;
  --line: #d9e8f0;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 18px 44px rgba(0, 35, 69, 0.18);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--tlc-navy);
  background: transparent;
  display: flex;
  justify-content: center;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.widget-shell {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.donation-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 35, 69, 0.08);
  padding: 28px 22px 26px;
}


.step {
  position: relative;
  z-index: 1;
}

.step[hidden] {
  display: none !important;
}

.field-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.first-group {
  margin-top: 0;
  margin-bottom: 18px;
}

legend,
.payment-method-label {
  display: block;
  width: 100%;
  color: var(--tlc-navy);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.04em;
  margin: 22px 0 24px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tlc-blue-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 107, 182, 0.05);
}

.segment {
  border: 0;
  border-radius: 999px;
  padding: 12px 9px;
  background: transparent;
  color: var(--tlc-navy);
  font-weight: 950;
  letter-spacing: -0.04em;
  transition: 160ms ease;
}

.segment.active {
  color: #fff;
  background: linear-gradient(135deg, var(--tlc-blue), #087ec4);
  box-shadow: 0 9px 22px rgba(0, 107, 182, 0.22);
}

.giving-note,
.help-text,
.security-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.giving-note {
  margin: 16px 0 0;
  font-weight: 850;
  color: var(--tlc-navy);
}

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

.amount-button {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--tlc-navy);
  padding: 8px 7px;
  text-align: center;
  transition: 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount-button::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 223, 63, 0.62);
}

.amount-button.active {
  border-color: var(--tlc-navy);
  background: var(--tlc-navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 35, 69, 0.2);
}

.amount-value {
  display: block;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
}

.amount-label {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 900;
  color: currentColor;
  opacity: 0.72;
}

.custom-amount-label {
  display: block;
  margin: 18px 0 9px;
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.04em;
}

.custom-amount-wrap {
  display: flex;
  align-items: center;
  height: 58px;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0 14px;
  background: #fff;
}

.custom-amount-wrap span {
  font-weight: 950;
  color: var(--tlc-navy);
}

input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tlc-navy);
  font-size: 18px;
}

input::placeholder {
  color: #7b858d;
}

.impact-panel {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 104px;
  border: 2px solid var(--tlc-yellow);
  border-radius: 20px;
  padding: 18px 17px;
  background: linear-gradient(135deg, var(--tlc-yellow-soft), #eefcff);
  margin: 22px 0 24px;
}

.impact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--tlc-navy);
  color: var(--tlc-yellow);
  font-size: 30px;
  font-weight: 950;
}

.impact-label,
.summary-label,
.eyebrow {
  display: block;
  color: var(--tlc-blue);
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.impact-panel strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.email-group input {
  height: 58px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 0 14px;
}

.help-text {
  margin: 10px 0 0;
}

.summary-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border-radius: 21px;
  background: var(--tlc-navy);
  color: #fff;
  padding: 16px 16px;
}

.summary-panel .summary-label {
  color: rgba(255, 255, 255, 0.66);
}

.summary-panel strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  letter-spacing: -0.06em;
}

.primary-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tlc-yellow), #ffd236);
  color: var(--tlc-navy);
  font-weight: 950;
  padding: 14px 22px;
  min-height: 50px;
  box-shadow: 0 10px 24px rgba(255, 210, 54, 0.22);
}

.full-width {
  width: 100%;
}

.form-message {
  min-height: 16px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 750;
}

.field-error {
  min-height: 17px;
  margin: 5px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 850;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.payment-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  margin: 6px 0 22px;
}

.payment-heading h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.back-button {
  width: 48px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--tlc-blue-soft);
  color: var(--tlc-navy);
  font-size: 42px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-bottom: 6px;
}

.payment-step {
  overflow-y: visible;
  padding-right: 0;
}

.express-checkout-wrap {
  margin-bottom: 18px;
}

#express-checkout-element {
  min-height: 46px;
}

.express-checkout-wrap .payment-method-label {
  margin-top: 2px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.card-element {
  min-height: 62px;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px;
  background: #fff;
  margin-bottom: 18px;
}

.mock-payment {
  display: none;
}

.security-note {
  text-align: center;
  margin: 16px 4px 0;
}

.success-step {
  text-align: center;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 20px 10px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: var(--tlc-navy);
  color: var(--tlc-yellow);
  font-size: 50px;
  font-weight: 950;
  margin-bottom: 10px;
}

.success-step h1 {
  margin: 8px 0;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.success-step p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 18px;
}

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

@media (max-width: 480px) {
  .donation-card {
    padding: 24px 16px 24px;
  }

  .payment-heading {
    margin-top: 8px;
  }

  .amount-grid {
    gap: 10px;
  }

  .amount-button {
    min-height: 78px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .amount-value {
    font-size: 24px;
  }

  .impact-panel {
    grid-template-columns: 38px 1fr;
    gap: 9px;
  }

  .impact-icon {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
}

.payment-element { min-height: 58px; }

html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }


.wallet-debug {
  white-space: pre-wrap;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: #f3f8fb;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.impact-panel-bottom {
  margin: 18px 0 8px;
}


.fee-cover {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #f8fcff;
  color: var(--tlc-navy);
}

.fee-cover input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--tlc-blue);
}

.fee-cover strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.fee-cover small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.summary-breakdown {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
