/* Embedded donation surface. Shared controls preserve keyboard and forced-color behavior. */
html:has(.donor-embed) {background:#f7f8fa}
body.donor-embed {margin:0;min-height:0;background:#f7f8fa;color:var(--navy);font-family:Arial,sans-serif;padding:20px;box-sizing:border-box}
.donor-embed *, .donor-embed *::before, .donor-embed *::after {box-sizing:border-box}
.donor-embed .donor-header,.donor-embed .donation-hero,.donor-embed .donor-story,.donor-embed footer.nwc-footer {display:none!important}
.embed-heading {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center;max-width:620px;margin:0 auto;padding:12px 8px 24px}
.embed-brand {grid-column:2;grid-row:1;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.embed-brand img {display:block;flex:none;width:120px;height:auto;object-fit:contain}
.donor-embed .embed-heading h1 {grid-column:1;grid-row:1;font-size:clamp(36px,6vw,48px);line-height:1.05;letter-spacing:-.04em;margin:28px 0 20px;color:var(--navy)}
.embed-heading .embed-supporting {grid-column:1 / -1;margin:0;font-size:20px;line-height:1.4}
.embed-supporting em {display:block;color:var(--blue);font:italic 400 24px/1.4 Georgia,serif}
.embed-supporting .embed-recipient {display:block;margin-top:8px;font:750 clamp(28px,5.2vw,36px)/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.025em;color:var(--navy);overflow-wrap:anywhere}
.embed-brand {color:var(--navy)}
.embed-trust {grid-column:1 / -1;justify-self:start;display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:9px 14px;border:1px solid #dce5f2;border-radius:999px;background:linear-gradient(110deg,#edf3fc,#f7f9fd);line-height:1.3}
.embed-through {font-size:13px;font-style:italic;color:#536782}
.embed-through-name {font-size:14px;font-weight:700;letter-spacing:.01em;color:var(--blue)}
.donor-embed .donor-main {display:block;width:100%;max-width:620px;margin:0 auto;padding:0}
.donor-embed .donor-form-panel {width:100%;min-width:0;padding:28px;border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:0 12px 40px #123d2810}
.donor-embed .donor-form-panel>.eyebrow {display:none}
.donor-embed .donation-step-status {background:var(--blue-tint);border-radius:10px;padding:12px 14px;margin:0 0 24px;color:var(--blue);font-size:12px;letter-spacing:.03em;font-weight:700}
.donor-embed h2 {font-size:24px;letter-spacing:-.025em;margin:0 0 8px}
.donor-embed label {font-size:13px;line-height:1.55;font-weight:600}
.donor-embed input:not([type=checkbox]):not([type=radio]),.donor-embed select {min-height:48px;border:1px solid #c9d3e3;border-radius:9px;background-color:#fff;font-size:16px;color:var(--navy)}
.donor-embed select {appearance:none;padding-inline-end:48px;background-position:right 16px center}
.donor-embed [dir=rtl] select {background-position:left 16px center}
.donor-embed .check-label {align-items:flex-start;font-weight:400;font-size:14px;gap:12px}
.donor-embed input[type=checkbox] {flex:none;width:19px;height:19px;margin-top:2px;accent-color:var(--blue)}
.donor-embed .donor-field-row {gap:14px}
.donor-embed button {min-height:48px;border-radius:10px;font-size:15px}
.donor-embed #donation-details-next,.donor-embed #donation-submit {width:100%;margin-top:16px}
.donor-embed .donation-summary {padding:18px;border-radius:12px;background:var(--blue-tint);line-height:1.65}
/* Match the current hosted campaign form's amount controls. */
.donor-embed .donor-form-panel .tier-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.donor-embed .donor-form-panel .tier-choice {min-height:64px;padding:12px 6px;border:1px solid #ccd7e6;border-radius:8px;background:#fff;margin:0;box-shadow:none;min-width:0;justify-content:center;align-content:center;text-align:center}
.donor-embed .donor-form-panel .tier-choice strong {font:900 23px/1.35 -apple-system,system-ui,"Segoe UI",Arial,sans-serif;white-space:nowrap;overflow-wrap:normal;letter-spacing:-.025em}
.donor-embed .donor-form-panel .tier-choice small {font-size:.875rem;line-height:1.5}
.donor-embed .donor-form-panel .tier-choice:has(input:checked) {border-color:#f23088;outline:2px solid #f23088;outline-offset:0;background:#fff5fa;color:var(--ink);box-shadow:none}
.donor-embed .donor-form-panel .tier-choice:has(input:focus-visible) {outline:3px solid #cf2870;outline-offset:3px}
@media(max-width:480px){.donor-embed .donor-form-panel .tier-choice strong{font-size:20px}.donor-embed .donor-form-panel .tier-choice{min-height:62px}}
@media(max-width:360px){.donor-embed .donor-form-panel .tier-choice strong{font-size:18px}}
.donor-embed #embed-disclaimer {padding:16px;background:#f7f8fa;border:1px solid var(--border);border-radius:12px;margin:22px 0 16px}
.donor-embed #embed-disclaimer h3 {font-size:15px;margin:0 0 8px}
.donor-embed .donation-compliance {font-size:13px;line-height:1.65;margin:0;color:var(--muted)}
.donor-embed #donation-agreement-box {padding:4px 0 12px}
.donor-embed a {color:var(--blue);text-underline-offset:3px}
.embed-footer {max-width:620px;text-align:center;margin:18px auto 4px;font-size:12px;line-height:1.7;color:var(--muted)}
.donor-embed #embed-payment-handoff {padding:18px;background:var(--blue-tint);border-radius:12px;margin-top:18px}
.donor-embed #embed-payment-handoff button {width:100%}
.donor-embed :focus-visible {outline:3px solid #aa7619;outline-offset:3px}
@media(max-width:480px){.embed-brand img{width:88px}body.donor-embed{padding:12px}.embed-heading{padding:8px 4px 20px}.donor-embed .donor-form-panel{padding:20px 16px;border-radius:16px}.donor-embed .donor-field-row{grid-template-columns:1fr}.donor-embed .frequency-options{flex-wrap:wrap}}
@media(forced-colors:active){.donor-embed select{appearance:auto;background-image:none}.donor-embed .donor-form-panel{border:1px solid CanvasText}}

.donor-embed h1,.donor-embed h2,.donor-embed h3,.donor-embed strong {color:var(--navy)}
.donor-embed button:not(.secondary) {background:var(--blue);border-color:var(--blue);background-image:none}
.donor-embed button.secondary {color:var(--blue);border-color:#c9d3e3;background:#fff}
.donor-embed button:disabled {opacity:.55}
.donor-embed .frequency-options label:has(input:checked) {border-color:var(--blue);box-shadow:0 0 0 1px var(--blue);outline:1px solid var(--blue);background:var(--blue-tint)}
.donor-embed .optional-gift {background:#f7f8fa;border-color:var(--border);padding:16px}
.donor-embed .optional-gift legend {color:var(--blue)}
.donor-embed .optional-gift p {margin:12px 0}
.donor-embed .donor-identity-form {gap:18px}
.donor-embed .donor-identity-form input:not([type=checkbox]):not([type=radio]) {padding-inline:12px}
.donor-embed .donor-identity-form select {padding-inline-start:12px}
.donor-embed:dir(rtl) select {background-position:left 16px center;padding-right:12px;padding-left:48px}
.donor-embed input:focus-visible,.donor-embed select:focus-visible {outline:3px solid #aa7619;outline-offset:3px}

@media(max-width:360px){.embed-brand img{width:72px}.embed-heading{column-gap:12px}.donor-embed .embed-heading h1{font-size:clamp(28px,9vw,34px)}}

@media(max-width:320px){.donor-embed .donor-form-panel .tier-choice strong{font-size:16px}}

.donor-embed .donation-custom-choice{grid-column:1/-1;justify-content:flex-start!important;text-align:start!important;padding:16px!important}
.donor-embed .donation-custom-choice input[type=text]{position:static;width:100%;min-height:48px;opacity:1;clip-path:none;pointer-events:auto}
.donor-embed .donation-custom-choice>span{font-size:16px;font-weight:650}
/* Organization popup reuses the campaign form controls and three-step flow. */
body.donor-embed.direct-nwc-form{background:#fff;padding:8px 20px}.direct-nwc-form .embed-heading{display:none}.direct-nwc-form .donor-form-panel{border:0;border-radius:0;box-shadow:none;padding:0}.direct-nwc-form .donation-step-status{margin:0 0 20px}.direct-nwc-form #donation-mode{font-size:14px;margin:0 0 20px}.direct-nwc-form #embed-disclaimer{font-size:12px;padding:12px}.direct-nwc-form .donor-main{max-width:620px}.direct-nwc-form .tier-grid{gap:10px}.direct-nwc-form .frequency-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.direct-nwc-form .frequency-choice{padding:12px 6px!important;min-width:0;text-align:center;justify-content:center}.direct-nwc-form .frequency-choice span{font-size:14px}.direct-nwc-form #donation-step-amount h2{font-size:22px}.direct-nwc-form .donor-form-panel fieldset legend{font-size:16px}.direct-nwc-form .donor-field-row{grid-template-columns:1fr}@media(max-width:700px){body.donor-embed.direct-nwc-form{padding:8px 16px}.direct-nwc-form .frequency-choice span{font-size:13px}}
.direct-nwc-form #donation-step-amount fieldset{margin-top:16px}.direct-nwc-form #donation-step-amount legend h2{font-size:16px;line-height:1.5;margin:0}.direct-nwc-form #donation-frequencies{margin-bottom:0}.direct-nwc-form .donation-custom-choice:not(:has(input[type=radio]:checked)) input[type=text],.direct-nwc-form .donation-custom-choice:not(:has(input[type=radio]:checked)) small{display:none}.direct-nwc-form .donation-custom-choice{min-height:52px!important;padding:12px 16px!important}.direct-nwc-form #campaign-amount-next{display:block;width:100%;margin-top:18px}.direct-nwc-form #donation-step-amount>.donation-message{margin-top:10px}
