/*
 * Donation Form (display only). Source DonationForm.tsx: form space-y-4 rounded-[1.5rem] bg-background p-6 md:p-7
 * shadow-2xl; heading text-h3 1.5rem; label text-label; currency switch rounded-full bg-secondary p-1, options px-3 py-1
 * text-xs, active bg-background shadow-sm; amounts grid-cols-2 gap-2, chips text-label rounded-full border py-2.5,
 * active border-primary bg-primary; fields rounded-full border-input px-5 py-2.5; submit w-full rounded-full bg-primary
 * py-3.5. Added (boundary): disabled submit look + the visible note.
 */
.sa-donate {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	box-sizing: border-box;
	padding: 1.5rem;
	border-radius: 1.5rem;
	background: var(--sa-background, #fbfbfb);
	color: var(--sa-foreground, #1b1b1b);
	font-family: var(--sa-font-sans, inherit);
	text-align: left;
}
@media (min-width: 768px) { .sa-donate { padding: 1.75rem; } }
.sa-donate--shadow { box-shadow: var(--sa-shadow-2xl, 0 25px 50px -12px rgb(0 0 0 / 0.25)); }
.sa-donate * { box-sizing: border-box; }
.sa-donate__heading { margin: 0; font-family: var(--sa-font-display, inherit); font-size: 1.5rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: inherit; }
.sa-donate__intro { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--sa-muted-foreground, #4b5563); }
.sa-donate__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sa-donate__label { font-size: var(--sa-text-label, 0.875rem); line-height: 1.35; font-weight: 600; }
.sa-donate__currency { display: flex; padding: 0.25rem; border-radius: 9999px; background: var(--sa-secondary, #e9e9e9); font-size: var(--sa-text-label, 0.875rem); font-weight: 600; }
.sa-donate__cur {
	padding: 0.25rem 0.75rem; border: 0; border-radius: 9999px; background: transparent; cursor: pointer;
	font: inherit; font-size: 0.75rem; line-height: 1rem; color: var(--sa-muted-foreground, #4b5563);
	transition: color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.sa-donate__cur.is-active { background: var(--sa-background, #fbfbfb); color: var(--sa-foreground, #1b1b1b); box-shadow: var(--sa-shadow-sm, 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)); }
.sa-donate__amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.sa-donate__chip {
	padding: 0.625rem 0.5rem; border: 1px solid var(--sa-border, #e1e1e1); border-radius: 9999px; background: transparent;
	font: inherit; font-size: var(--sa-text-label, 0.875rem); line-height: 1.35; font-weight: 600; color: inherit; cursor: pointer;
	transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.sa-donate__chip:hover { border-color: var(--sa-primary, #b7172a); }
.sa-donate__chip.is-active { border-color: var(--sa-primary, #b7172a); background: var(--sa-primary, #b7172a); color: var(--sa-primary-foreground, #fff); }
.sa-donate__cur:focus-visible, .sa-donate__chip:focus-visible, .sa-donate__field:focus-visible { outline: 2px solid var(--sa-ring, #b7172a); outline-offset: 2px; }
.sa-donate__group { display: flex; flex-direction: column; gap: 0.375rem; margin: 0; }
.sa-donate__field {
	width: 100%; padding: 0.625rem 1.25rem; border: 1px solid var(--sa-input, #e1e1e1); border-radius: 9999px; background: transparent;
	font: inherit; font-size: 1rem; line-height: 1.6; color: inherit; outline: none; transition: border-color 0.15s;
}
.sa-donate__field:focus { border-color: var(--sa-primary, #b7172a); }
.sa-donate__custom[hidden] { display: none; }
.sa-donate__submit {
	width: 100%; padding: 0.875rem 1rem; border: 0; border-radius: 9999px; background: var(--sa-primary, #b7172a);
	color: var(--sa-primary-foreground, #fff); font: inherit; font-size: var(--sa-text-label, 0.875rem); line-height: 1.35; font-weight: 600;
}
.sa-donate__submit:disabled { opacity: 0.55; cursor: not-allowed; }
.sa-donate__note { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--sa-muted-foreground, #4b5563); }
@media (prefers-reduced-motion: reduce) { .sa-donate__cur, .sa-donate__chip, .sa-donate__field { transition: none; } }

.sa-donate__checkout { display: block; text-align: center; text-decoration: none; }
.sa-donate__checkout:focus-visible { outline: 3px solid var(--sa-ring, #b7172a); outline-offset: 3px; }

/* Approved giver/method controls reuse the original pills, field and panel tokens. */
.sa-donate [hidden] { display: none !important; }
.sa-donate fieldset { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.sa-donate__donors { align-self: stretch; }
.sa-donate__donors > button { flex: 1; min-height: 44px; padding: .5rem; }
.sa-donate [data-amount-panel] { display: flex; flex-direction: column; gap: .75rem; }
.sa-donate__momo { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.sa-donate__momo p { margin: 0; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.sa-donate__momo strong,.sa-donate__momo code { display: block; font-family: inherit; font-size: 1.25rem; font-weight: 700; color: inherit; }
.sa-donate [data-copy],.sa-donate [data-method] { min-height: 44px; }
.sa-donate [data-copy]:focus-visible,.sa-donate [data-ussd]:focus-visible { outline: 3px solid var(--sa-ring,#b7172a); outline-offset: 3px; }
.sa-donate [data-copy]:disabled { opacity: .55; cursor: not-allowed; }
.sa-donate [aria-invalid=true] { border-color: var(--sa-primary,#b7172a); }
