/*
 * Donation Tiers. Values from the Lovable source:
 * cards (index.tsx #impact): grid gap-4, md:grid-cols-3; card rounded-[1.75rem] p-8 gap-16, bg-card; 2nd card bg-primary;
 *   icon h-12 w-12 rounded-full bg-primary/10; amount text-h1 font-bold; label text-lead muted + ArrowUpRight h-5;
 *   hover -translate-y-2 (500 ms), arrow rotate-45 (300 ms).
 * compact (donate.tsx hero): grid-cols-3 gap-2; rounded-2xl (28 px: theme radius) border white/15 p-3; amount text-label; label text-xs white/65.
 * Theme tokens are used when present (fallbacks = the same source values).
 */
.sa-tiers {
	--sa-tiers-cols: 3;
	--sa-tiers-gap: 1rem;
	display: grid;
	grid-template-columns: repeat(var(--sa-tiers-cols), minmax(0, 1fr));
	gap: var(--sa-tiers-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.sa-tiers--compact { --sa-tiers-gap: 0.5rem; }
.sa-tiers__item { display: flex; margin: 0; padding: 0; min-width: 0; }
.sa-tiers__item::before { content: none; }
.sa-tiers__item > .sa-tier { flex: 1 1 auto; }

/* Cards */
.sa-tier--card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 4rem;
	height: 100%;
	padding: 2rem;
	border-radius: var(--sa-radius-card, 1.75rem);
	background: var(--sa-card, #fff);
	color: var(--sa-foreground, #1b1b1b);
	text-decoration: none;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
a.sa-tier--card:hover { transform: translateY(-0.5rem); color: var(--sa-foreground, #1b1b1b); }
a.sa-tier--card:focus-visible { outline: 2px solid var(--sa-ring, #b7172a); outline-offset: 3px; }
.sa-tier--card.sa-tier--featured,
a.sa-tier--card.sa-tier--featured:hover { background: var(--sa-primary, #b7172a); color: var(--sa-primary-foreground, #fff); }
.sa-tier__top { display: flex; flex-direction: column; gap: 1.5rem; }
.sa-tier__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	background: color-mix(in oklab, var(--sa-primary, #b7172a) 10%, transparent);
	color: var(--sa-primary, #b7172a);
}
.sa-tier--featured .sa-tier__icon {
	background: color-mix(in oklab, var(--sa-primary-foreground, #fff) 15%, transparent);
	color: var(--sa-primary-foreground, #fff);
}
.sa-tier__icon svg { width: 1.25rem; height: 1.25rem; }
.sa-tier--card .sa-tier__amount {
	font-family: var(--sa-font-display, inherit);
	font-size: var(--sa-text-h1, clamp(1.875rem, 1.4rem + 1.6vw, 3rem));
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.025em;
}
.sa-tier--card .sa-tier__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: var(--sa-text-lead, clamp(1.0625rem, 1rem + 0.3vw, 1.25rem));
	line-height: 1.5;
	font-weight: 500;
	color: var(--sa-muted-foreground, #4b5563);
}
.sa-tier--featured .sa-tier__label { color: color-mix(in oklab, var(--sa-primary-foreground, #fff) 80%, transparent); }
.sa-tier__arrow { flex: none; width: 1.25rem; height: 1.25rem; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
a.sa-tier:hover .sa-tier__arrow { transform: rotate(45deg); }

/* Compact boxes (on a coloured or photographic background: colours follow the surrounding text colour) */
.sa-tier--compact {
	padding: 0.75rem;
	border: 1px solid color-mix(in oklab, currentColor 15%, transparent);
	border-radius: var(--sa-radius-2xl, 1.75rem); /* Tailwind rounded-2xl with the source --radius = 28px */
}
.sa-tier--compact .sa-tier__amount {
	margin: 0;
	font-size: var(--sa-text-label, 0.875rem);
	line-height: 1.35;
	font-weight: 600;
}
.sa-tier--compact .sa-tier__label {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	line-height: 1rem;
	color: color-mix(in oklab, currentColor 65%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	.sa-tier--card, .sa-tier__arrow { transition: none; }
	a.sa-tier--card:hover { transform: none; }
}

.sa-widget-notice {
	padding: 1rem 1.25rem;
	border: 1px dashed currentColor;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
	opacity: 0.8;
}
