.charity-da {
	display: flex;
	flex-direction: column;
}
/* Row spacing lives on the adjacent-sibling combinator rather than a flex
   `gap` so each row can be spaced independently from the Style tab (a single
   `gap` can only move every row at once). `* + *` also means an optional row
   that isn't rendered — the frequency toggle, the heading, the custom field —
   never leaves a stray gap behind, and the first row never gets a top margin. */
.charity-da > * + * {
	margin-top: 14px;
}

/* ── One Time / Monthly toggle ── */
.charity-da__freq {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 4px;
	padding: 4px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
}
/* Scoped through .charity-da (0,2,0) rather than the bare class (0,1,0) so
   Elementor's Global Kit button styling — `.elementor-kit-N button`, which is
   (0,1,1) and would otherwise paint every tab with the kit's accent colour —
   doesn't win over the widget's own neutral default. The tiles below escape
   this only because their colour controls ship non-empty defaults; the
   inactive tab deliberately has none, so it needs the specificity here. */
.charity-da .charity-da__freq-tab {
	border: 0;
	background-color: transparent;
	color: #6b7280;
	font-size: 1rem;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	transition: background-color .15s ease, color .15s ease;
}
.charity-da .charity-da__freq-tab.is-active {
	background-color: #16a34a;
	color: #ffffff;
}

.charity-da__heading {
	font-size: .9375rem;
	font-weight: 600;
	color: #1d1d1f;
}

.charity-da__tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.charity-da__tile.charity-da__tile {
	border: 1px solid #e5e7eb;
	background: #f5f4f0;
	color: #1d1d1f;
	border-radius: 10px;
	padding: 16px 10px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.charity-da__tile.is-active {
	background: #2a6b56;
	border-color: #2a6b56;
	color: #fff;
}
.charity-da__tile--custom.charity-da__tile--custom {
	font-weight: 600;
	font-size: .875rem;
}

.charity-da__custom-wrap {
	position: relative;
}
.charity-da__custom-wrap[hidden] {
	display: none;
}
.charity-da__custom-prefix {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	color: #9aa0a6;
	font-size: 1rem;
	pointer-events: none;
}
.charity-da__custom-input {
	width: 100%;
	padding: 12px 14px 12px 30px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background-color: #fff;
	color: #1d1d1f;
	font-size: 1rem;
	box-sizing: border-box;
}
.charity-da__custom-input::placeholder {
	color: #9aa0a6;
	opacity: 1;
}

.charity-da__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border-radius: 999px;
	background: #e8722c;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.charity-da__submit:hover {
	filter: brightness(1.08);
}

@media (max-width: 480px) {
	.charity-da__tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}
