.giving-loader-stage{box-sizing:border-box;width:100%;padding:16px 16px 64px;background:transparent}
/* Reserve the first donation step's approximate height before JS or form data
   loads. Use fixed responsive estimates, not vh: iframe resizing must not
   cause a viewport-height feedback loop. Loaded steps retain natural height. */
.giving-loader-card{box-sizing:border-box;display:grid;place-items:center;min-height:860px;width:100%;overflow:hidden;border:1px solid rgba(15,33,66,.08);border-radius:24px;background:linear-gradient(145deg,#fff,#f8faff);box-shadow:0 24px 64px rgba(5,18,42,.22),0 4px 16px rgba(5,18,42,.08)}
.giving-loader-stage[data-standalone=true]{max-width:640px;margin:auto}
@media(max-width:480px){.giving-loader-stage{padding:0}.giving-loader-card{min-height:750px;border:0;border-radius:24px;box-shadow:none}}
.giving-loader-mark{position:relative;display:block;width:48px;height:48px}
.giving-loader-mark:before,.giving-loader-mark:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #e6eef9}
.giving-loader-mark:after{border-color:transparent;border-top-color:#3474c5;border-right-color:#84b8ec;animation:giving-loader-turn 1s cubic-bezier(.5,.2,.5,.8) infinite}
.giving-loader-mark>span{position:absolute;inset:19px;border-radius:50%;background:#3474c5;box-shadow:0 0 18px #3474c533}
.giving-loader-inline{display:grid;place-items:center;min-height:180px}
.giving-loader-retry{border:1px solid #dce5f1;background:white;color:#3474c5;border-radius:50%;width:44px;height:44px;cursor:pointer;font:24px system-ui;box-shadow:0 3px 12px #0f214210}
.giving-loader-retry:focus-visible{outline:3px solid #3474c5;outline-offset:4px}
/* React replaces the HTML placeholder, its Suspense fallback, and the data
   loader in succession. Animate their persistent parent once, not each card:
   restarting opacity at zero on every replacement flashes the entire widget. */
.giving-startup-fade{animation:giving-surface-in 500ms ease-out both}
.giving-reveal{display:grid;min-width:0}
.giving-reveal__loading,.giving-reveal__content{grid-area:1/1;min-width:0;align-self:start}
.giving-reveal[data-ready=true]>.giving-reveal__loading{pointer-events:none;animation:giving-surface-out 500ms ease-in-out both}
.giving-reveal__content{animation:giving-surface-in 500ms ease-in-out both}
/* Only opacity: transforms on ancestors can disrupt embedded payment fields. */
@keyframes giving-surface-in{from{opacity:0}to{opacity:1}}
@keyframes giving-surface-out{from{opacity:1}to{opacity:0}}
@keyframes giving-loader-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.giving-loader-mark:after{animation:none;border-color:#84b8ec;border-top-color:#3474c5}}
@media(prefers-reduced-motion:reduce){.giving-startup-fade,.giving-reveal__loading,.giving-reveal__content{animation:none!important}}
