.jcf-donation-open { overflow: hidden; }

.jcf-donation-modal,
.jcf-donation-modal * { box-sizing: border-box; }
.jcf-donation-modal .sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.jcf-donation-modal[hidden] { display: none; }
.jcf-donation-modal { inset: 0; position: fixed; z-index: 100000; }
.jcf-donation-backdrop { background: rgba(3, 15, 45, .78); inset: 0; position: absolute; }
.jcf-donation-shell {
  background: #fff;
  border: 1px solid rgba(10, 36, 87, .12);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 14, 49, .34);
  color: #0d2255;
  left: 50%;
  max-height: calc(100dvh - 32px);
  max-width: 520px;
  overflow: auto;
  padding: 18px 24px 20px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 28px), 520px);
}

.jcf-donation-topbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 0; }
.jcf-donation-brand { color: #079fe4; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.jcf-donation-close { background: #fff; border: 1px solid #d5e0ec; border-radius: 8px; color: #4f607c; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; padding: 7px 11px; }
.jcf-donation-close:hover { color: #081d50; }
.jcf-donation-close:focus-visible { border-color: #0aabef; box-shadow: 0 0 0 3px rgba(10, 171, 239, .18); outline: 0; }
.jcf-donation-heading { border-bottom: 1px solid #dce6f2; padding: 0 10px 12px; text-align: center; }
.jcf-donation-ally-logo { display: block; height: auto; margin: -20px auto 2px; max-width: 230px; object-fit: contain; width: 52%; }
.jcf-donation-heading h2 { color: #081d50; font-size: clamp(1.5rem, 4vw, 1.85rem); letter-spacing: -.045em; line-height: 1.04; margin: 0 auto 4px; max-width: 390px; }
.jcf-donation-heading p { color: #60708a; font-size: .83rem; line-height: 1.55; margin: 0; }

.jcf-donation-progress { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin: 13px 0 15px; }
.jcf-donation-progress span { background: #dfe8f3; border-radius: 999px; height: 5px; transition: background .2s ease; }
.jcf-donation-progress span.is-active { background: #0aabef; }

.jcf-donation-step[hidden],
.jcf-donation-success[hidden] { display: none; }
.jcf-donation-step-title { margin-bottom: 11px; }
.jcf-donation-step-title span { color: #079fe4; display: block; font-size: .67rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 5px; text-transform: uppercase; }
.jcf-donation-step-title h3 { color: #081d50; font-size: 1.22rem; letter-spacing: -.025em; line-height: 1.2; margin: 0; }
.jcf-donation-step-title p { color: #60708a; font-size: .76rem; line-height: 1.55; margin: 7px 0 0; }

.jcf-donation-frequency { border: 0; margin: 13px 0 0; padding: 0; }
.jcf-donation-frequency legend { color: #162c5e; display: block; font-size: .76rem; font-weight: 800; margin-bottom: 7px; padding: 0; }
.jcf-donation-segmented { background: #f2f6fa; border: 1px solid #d7e1ed; border-radius: 12px; display: grid; gap: 5px; grid-template-columns: 1fr 1fr; padding: 5px; }
.jcf-donation-segmented input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.jcf-donation-segmented label { border-radius: 9px; color: #52627c; cursor: pointer; font-size: .82rem; font-weight: 700; padding: 10px; text-align: center; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.jcf-donation-segmented input:checked + label { background: #081d50; box-shadow: 0 6px 16px rgba(8, 29, 80, .2); color: #fff; }
.jcf-donation-segmented input:focus-visible + label { outline: 3px solid rgba(10, 171, 239, .32); outline-offset: 2px; }

.jcf-donation-amount { margin-top: 15px; }
.jcf-donation-label { color: #162c5e; display: block; font-size: .76rem; font-weight: 800; margin-bottom: 7px; }
.jcf-donation-amount-input { align-items: center; border: 1px solid #cad8e7; border-radius: 12px; display: flex; min-height: 52px; padding: 0 16px; }
.jcf-donation-amount-input span { color: #081d50; font-size: 1.05rem; font-weight: 800; }
.jcf-donation-amount-input input { background: transparent; border: 0; color: #081d50; font: inherit; font-size: 1.35rem; font-weight: 800; min-width: 0; outline: 0; padding: 12px 8px; text-align: center; width: 100%; }
.jcf-donation-amount-input:focus-within { border-color: #0aabef; box-shadow: 0 0 0 3px rgba(10, 171, 239, .14); }
.jcf-donation-presets { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin-top: 9px; }
.jcf-donation-preset { background: #f7fafc; border: 1px solid #cfdae8; border-radius: 11px; color: #173165; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 800; min-height: 42px; padding: 8px; }
.jcf-donation-preset:hover { border-color: #0aabef; color: #008aca; }
.jcf-donation-preset.is-selected { background: #0aabef; border-color: #0aabef; color: #fff; }
.jcf-donation-impact { background: #eef8fd; border-left: 4px solid #0aabef; border-radius: 10px; color: #37506d; font-size: .72rem; line-height: 1.45; margin: 10px 0 0; min-height: 0; padding: 9px 11px; }
.jcf-donation-impact strong { color: #0d2255; }
.jcf-donation-currency-note { color: #64748b; font-size: .67rem; font-style: italic; line-height: 1.4; margin: 9px 0 0; }

.jcf-donation-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jcf-donation-field { min-width: 0; }
.jcf-donation-field--wide { grid-column: 1 / -1; }
.jcf-donation-field label { color: #162c5e; display: block; font-size: .72rem; font-weight: 800; margin-bottom: 6px; }
.jcf-donation-field input { background: #fff; border: 1px solid #cad8e7; border-radius: 10px; color: #102557; font: inherit; font-size: .82rem; min-height: 48px; outline: 0; padding: 11px 13px; width: 100%; }
.jcf-donation-field input::placeholder { color: #95a2b5; }
.jcf-donation-field input:focus { border-color: #0aabef; box-shadow: 0 0 0 3px rgba(10, 171, 239, .14); }
.jcf-donation-field input[aria-invalid="true"] { border-color: #c83e52; box-shadow: 0 0 0 3px rgba(200, 62, 82, .1); }
.jcf-cardnet-provider { align-items: center; background: #fff; border: 1px solid #d8e4ec; border-radius: 12px; display: flex; gap: 12px; margin-bottom: 11px; padding: 8px 11px; }
.jcf-cardnet-provider img { border-radius: 9px; flex: 0 0 52px; height: 52px; object-fit: contain; width: 52px; }
.jcf-cardnet-provider strong { color: #0d2255; display: block; font-size: .74rem; line-height: 1.25; }
.jcf-cardnet-provider span { color: #60708a; display: block; font-size: .64rem; line-height: 1.4; margin-top: 3px; }
.jcf-cardnet-provider a { color: #007fb9; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.jcf-donation-consent { align-items: flex-start; background: #eef8fd; border-left: 4px solid #0aabef; border-radius: 9px; color: #37506d; cursor: pointer; display: flex; font-size: .67rem; gap: 9px; line-height: 1.45; margin-top: 9px; padding: 9px 11px; }
.jcf-donation-consent input { accent-color: #0aabef; flex: 0 0 17px; height: 17px; margin: 1px 0 0; width: 17px; }
.jcf-donation-consent:focus-within { box-shadow: 0 0 0 3px rgba(10, 171, 239, .14); }
.jcf-donation-security { background: #eef8fd; border-left: 4px solid #0aabef; border-radius: 9px; color: #37506d; font-size: .69rem; line-height: 1.55; margin: 15px 0 0; padding: 11px 13px; }
.jcf-donation-error { color: #b3263e; font-size: .72rem; line-height: 1.45; margin: 11px 0 0; min-height: 1.05em; }
.jcf-donation-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 13px; }
.jcf-donation-button { border: 1px solid transparent; border-radius: 11px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; min-height: 48px; padding: 11px 20px; }
.jcf-donation-button--secondary { background: #fff; border-color: #cbd7e6; color: #173165; }
.jcf-donation-button--primary { background: #0aabef; color: #fff; flex: 1; }
.jcf-donation-button--whatsapp { background: #147d64; color: #fff; flex: 1; }
.jcf-donation-button i { margin-right: 5px; }
.jcf-donation-button--primary:hover { background: #009ad8; }
.jcf-donation-button--whatsapp:hover { background: #0f6c56; }
.jcf-donation-button--secondary:hover { background: #f5f8fb; }

.jcf-donation-success { padding: 16px 8px 8px; text-align: center; }
.jcf-donation-success-logo { display: block; height: 86px; margin: 0 auto 15px; object-fit: contain; width: 86px; }
.jcf-donation-success h3 { color: #081d50; font-size: 1.55rem; letter-spacing: -.035em; margin: 0 0 9px; }
.jcf-donation-success p { color: #60708a; font-size: .8rem; line-height: 1.6; margin: 0 auto; max-width: 410px; }
.jcf-donation-summary { background: #f3f7fb; border-radius: 12px; color: #193568; font-size: .78rem; font-weight: 700; margin: 18px auto; padding: 13px; }

.jcf-donation-step[data-donation-step="3"] .jcf-donation-step-title { margin-bottom: 8px; }
.jcf-donation-step[data-donation-step="3"] .jcf-cardnet-provider { margin-bottom: 8px; padding-block: 6px; }
.jcf-donation-step[data-donation-step="3"] .jcf-cardnet-provider img { height: 46px; width: 46px; }
.jcf-donation-step[data-donation-step="3"] .jcf-donation-fields { gap: 9px 14px; }
.jcf-donation-step[data-donation-step="3"] .jcf-donation-field input { min-height: 43px; padding-block: 8px; }
.jcf-donation-step[data-donation-step="3"] .jcf-donation-security { margin-top: 9px; padding-block: 8px; }
.jcf-donation-step[data-donation-step="3"] .jcf-donation-consent { margin-top: 7px; padding-block: 7px; }
.jcf-donation-step[data-donation-step="3"] .jcf-donation-actions { margin-top: 9px; }
.jcf-donation-step[data-donation-step="3"] .jcf-donation-button { min-height: 44px; }

.jcf-donation-modal[data-donation-current-step="3"] .jcf-donation-shell { padding-top: 13px; }
.jcf-donation-modal[data-donation-current-step="3"] .jcf-donation-topbar { margin-bottom: 1px; }
.jcf-donation-modal[data-donation-current-step="3"] .jcf-donation-heading { padding-bottom: 7px; }
.jcf-donation-modal[data-donation-current-step="3"] .jcf-donation-heading h2 { font-size: 1.72rem; margin: 0 auto 3px; }
.jcf-donation-modal[data-donation-current-step="3"] .jcf-donation-heading p { display: none; }
.jcf-donation-modal[data-donation-current-step="3"] .jcf-donation-progress { margin: 8px 0 10px; }

@media (max-width: 620px) {
  .jcf-donation-shell { border-radius: 20px 20px 0 0; bottom: 0; left: 0; max-height: calc(100dvh - 12px); padding: 20px 18px 22px; top: auto; transform: none; width: 100%; }
  .jcf-donation-heading { padding-inline: 0; }
  .jcf-donation-heading h2 { font-size: 1.75rem; max-width: 330px; }
  .jcf-donation-fields { grid-template-columns: 1fr; }
  .jcf-donation-field--wide { grid-column: auto; }
  .jcf-donation-actions { position: sticky; bottom: -22px; background: #fff; margin-inline: -2px; padding: 14px 2px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .jcf-donation-segmented label { transition: none; }
}
