.ad-donation-form, .ad-campaign-card, .ad-notice { background:#fff; border:1px solid #dfe9dd; border-radius:22px; padding:26px; box-shadow:0 18px 48px rgba(5,35,8,.08); }
.ad-notice { margin:0 0 18px; font-weight:800; }
.ad-success { border-color:#136612; color:#136612; }
.ad-error { border-color:#b3261e; color:#b3261e; background:#fff5f4; }
.ad-test { border-color:#136612; color:#08430b; background:#e9f5ea; }
.ad-donation-form label, .ad-donation-form span, .ad-donation-form legend { display:block; font-weight:800; color:#136612; margin-bottom:8px; }
.ad-donation-form input, .ad-donation-form select, .ad-donation-form textarea { width:100%; min-height:50px; border:1px solid #dfe9dd; border-radius:14px; padding:13px 15px; background:#fff; }
.ad-donation-form textarea { min-height:120px; }
.ad-frequency { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.ad-amount-buttons, .ad-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.ad-frequency label, .ad-amount-buttons label { border:1px solid #dfe9dd; border-radius:14px; padding:14px; cursor:pointer; background:#f8fbf6; }
.ad-frequency input, .ad-amount-buttons input { width:auto; min-height:auto; margin-right:8px; }
.ad-amounts { border:0; padding:0; margin:18px 0; }
.ad-submit { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:14px 24px; border-radius:999px; border:0; background:#136612; color:#fff; font-weight:900; text-decoration:none; cursor:pointer; }
.ad-small { font-size:13px; color:#667; margin-top:12px; }
.ad-campaign-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.ad-campaign-card { overflow:hidden; padding:0; }
.ad-campaign-card img { width:100%; height:220px; object-fit:cover; display:block; }
.ad-campaign-card div { padding:22px; }
.ad-progress { height:10px; border-radius:999px; background:#e4edde; overflow:hidden; margin:14px 0 6px; }
.ad-progress span { display:block; height:100%; background:#136612; }
@media (max-width: 780px) { .ad-grid, .ad-frequency, .ad-amount-buttons, .ad-campaign-grid { grid-template-columns:1fr; } }


/* v0.2.1 professional polish */
.ad-donation-form { max-width: 100%; }
.ad-donation-form input:focus, .ad-donation-form select:focus, .ad-donation-form textarea:focus { border-color:#136612; outline:0; box-shadow:0 0 0 4px rgba(19,102,18,.08); }
.ad-frequency label:has(input:checked), .ad-amount-buttons label:has(input:checked) { border-color:#136612; background:#e9f5ea; color:#08430b; }
.ad-submit { width:100%; text-transform:uppercase; letter-spacing:.04em; }
.ad-notice.ad-test { background:#e9f5ea; border-left:5px solid #136612; }

.ad-funds-table-wrap{overflow-x:auto;border:1px solid #dfe9dd;border-radius:20px;background:#fff}.ad-funds-table{width:100%;min-width:720px;border-collapse:collapse}.ad-funds-table th,.ad-funds-table td{padding:16px 18px;border-bottom:1px solid #dfe9dd;text-align:left}.ad-funds-table th{background:#e9f5ea;color:#136612;text-transform:uppercase;font-size:13px}.ad-funds-table tr:last-child td{border-bottom:0}


/* v0.3.2 sleek donation UI */
.ad-donation-form-sleek{border-radius:30px;padding:0;overflow:hidden;border:1px solid rgba(19,102,18,.14);box-shadow:0 26px 70px rgba(5,35,8,.12)}.ad-form-hero{background:linear-gradient(135deg,#073f0b,#136612);color:#fff;padding:30px}.ad-form-hero p{margin:0 0 6px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.75)}.ad-form-hero h2{margin:0;color:#fff;font-size:clamp(28px,4vw,42px)}.ad-form-hero span{display:block;margin-top:8px;color:rgba(255,255,255,.86)}.ad-donation-form-sleek>*:not(.ad-form-hero){margin-left:30px;margin-right:30px}.ad-donation-form-sleek .ad-submit{margin:22px 30px 0;width:calc(100% - 60px)}.ad-pill-group label{transition:.18s ease}.ad-pill-group label:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(5,35,8,.08)}.ad-receipt-note{background:#f5faf4;border-radius:14px;padding:12px 14px;color:#35513a!important}.ad-campaign-card{transition:transform .2s ease, box-shadow .2s ease}.ad-campaign-card:hover{transform:translateY(-4px);box-shadow:0 24px 65px rgba(5,35,8,.12)}


/* v0.3.3 donation polish */
.ad-donation-form-sleek{font-size:16px}.ad-donation-form-sleek fieldset{margin:30px!important;padding:0 0 28px!important;border:0;border-bottom:1px solid #edf3ec}.ad-donation-form-sleek label{margin-bottom:18px}.ad-donation-form-sleek input,.ad-donation-form-sleek select,.ad-donation-form-sleek textarea{margin-top:8px}.ad-frequency,.ad-amount-buttons,.ad-grid{gap:22px!important}.ad-amount-buttons label,.ad-frequency label{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:56px}.ad-receipt-note{line-height:1.7}.ad-small{line-height:1.7}.ad-form-hero{padding:34px}.ad-form-hero h2{letter-spacing:-.03em}.ad-submit:hover{filter:brightness(.96)}

/* v0.4.0 spacing, custom icons, Stripe Checkout-ready form polish */
.ad-donation-form-sleek{overflow:visible!important;}
.ad-donation-form-sleek>*:not(.ad-form-hero){margin-left:34px!important;margin-right:34px!important;}
.ad-donation-form-sleek fieldset{margin:34px!important;padding:0 0 34px!important;border:0!important;border-bottom:1px solid #edf3ec!important;}
.ad-donation-form-sleek label{margin-bottom:22px!important;}
.ad-donation-form-sleek input,.ad-donation-form-sleek select,.ad-donation-form-sleek textarea{min-height:58px!important;padding:15px 18px!important;margin-top:10px!important;line-height:1.35!important;box-sizing:border-box!important;}
.ad-donation-form-sleek textarea{min-height:140px!important;}
.ad-grid-large-gap,.ad-custom-amount-currency{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px!important;margin-bottom:24px!important;align-items:start;}
.ad-custom-amount-currency{grid-template-columns:minmax(0,1fr) 180px;}
.ad-frequency,.ad-amount-buttons{gap:16px!important;margin-top:30px!important;margin-bottom:28px!important;}
.ad-frequency label,.ad-amount-buttons label{min-height:60px!important;padding:16px 18px!important;display:flex!important;gap:10px!important;align-items:center!important;justify-content:center!important;margin:0!important;}
.ad-frequency input,.ad-amount-buttons input{position:absolute;opacity:0;pointer-events:none;}
.ad-frequency label:has(input:checked),.ad-amount-buttons label:has(input:checked){background:#136612!important;color:#fff!important;border-color:#136612!important;}
.ad-frequency label:has(input:checked) span,.ad-amount-buttons label:has(input:checked) span{color:#fff!important;}
.ad-custom-icon,.ad-form-hero-icon img{width:24px!important;height:24px!important;object-fit:contain!important;display:inline-block!important;vertical-align:middle!important;}
.ad-form-hero-icon{display:inline-grid!important;place-items:center;width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.16);margin-bottom:16px!important;}
.ad-fallback-icon{display:inline-grid;place-items:center;width:24px;height:24px;line-height:1;font-weight:900;}
.ad-amounts legend,.ad-donor-fieldset legend{display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:18px!important;}
.ad-field-full{grid-column:1/-1;}
.ad-note-field{display:block;margin:0 34px 24px!important;}
.ad-submit{display:flex!important;gap:10px!important;align-items:center!important;justify-content:center!important;margin:26px 34px 0!important;width:calc(100% - 68px)!important;min-height:58px!important;}
.ad-receipt-note{margin-bottom:34px!important;}
@media(max-width:780px){.ad-donation-form-sleek>*:not(.ad-form-hero),.ad-donation-form-sleek fieldset,.ad-note-field{margin-left:22px!important;margin-right:22px!important}.ad-submit{margin-left:22px!important;margin-right:22px!important;width:calc(100% - 44px)!important}.ad-grid-large-gap,.ad-custom-amount-currency{grid-template-columns:1fr!important;gap:16px!important}.ad-frequency,.ad-amount-buttons{grid-template-columns:1fr 1fr!important}.ad-form-hero{padding:26px!important}}


/* v0.4.1 classic display restoration, custom icons, and secure payment spacing */
.ad-donation-form-classic{padding:30px!important;border-radius:24px!important;overflow:visible!important;}
.ad-donation-form-classic .ad-frequency{margin-top:0!important;}
.ad-donation-form-classic .ad-form-hero{display:none!important;}
.ad-donation-form-classic fieldset{border:0!important;padding:0!important;margin:24px 0 30px!important;}
.ad-donation-form-classic legend{display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:16px!important;}
.ad-donation-form-classic .ad-note-field{margin:0 0 22px!important;display:block!important;}
.ad-donation-form-classic .ad-submit{margin:8px 0 0!important;width:100%!important;}
.ad-donation-form-classic .ad-grid-large-gap,.ad-donation-form-classic .ad-custom-amount-currency{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px!important;align-items:start;}
.ad-donation-form-classic .ad-custom-amount-currency{grid-template-columns:minmax(0,1fr) 180px;}
.ad-donation-form-classic input,.ad-donation-form-classic select,.ad-donation-form-classic textarea{box-sizing:border-box!important;margin-top:8px!important;}
.ad-donation-form-classic .ad-custom-icon{width:22px!important;height:22px!important;object-fit:contain!important;display:inline-block!important;}
.ad-donation-form-classic .ad-pill-group label{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;}
.ad-donation-form-classic .ad-pill-group input{position:absolute;opacity:0;pointer-events:none;}
.ad-donation-form-classic .ad-pill-group label:has(input:checked){background:#136612!important;color:#fff!important;border-color:#136612!important;}
.ad-donation-form-classic .ad-pill-group label:has(input:checked) span{color:#fff!important;}
@media(max-width:780px){.ad-donation-form-classic .ad-grid-large-gap,.ad-donation-form-classic .ad-custom-amount-currency{grid-template-columns:1fr!important}.ad-donation-form-classic .ad-frequency,.ad-donation-form-classic .ad-amount-buttons{grid-template-columns:1fr 1fr!important}.ad-donation-form-classic{padding:22px!important}}
