/* Compact Donation Form - Styles */
.cdf-donation {
	--cdf-primary: #E9A922; /* donate button color */
	--cdf-primary-600: #c78e1c;
	--cdf-bg: #314C57;
	--cdf-text: #ffffff;
	--cdf-muted: #ffffff;
	--cdf-border: #314C57;
	--cdf-focus: #93c5fd;

	background: var(--cdf-bg);
	color: var(--cdf-text);
	border: 1px solid var(--cdf-border);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(16,33,40,0.16);
	max-width: 460px;
}

.cdf-align-center {
	margin-left: auto;
	margin-right: auto;
}
.cdf-align-left {
	margin-right: auto;
}
.cdf-align-right {
	margin-left: auto;
}

.cdf-header {
	margin-bottom: 14px;
}
.cdf-title {
	margin: 0 0 6px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}
.cdf-desc {
	margin: 0;
	font-size: 16px;
	color: var(--cdf-text);
}

.cdf-intro {
	margin-top: 8px;
}
.cdf-intro p {
	margin: 6px 0;
	color: var(--cdf-text);
	font-size: 16px;
}
.cdf-intro a {
	color: var(--cdf-text);
	text-decoration: underline;
}

.cdf-select-label {
	margin-top: 10px;
	margin-bottom: 24px;
	font-size: 17px;
	font-weight: 700;
	color: var(--cdf-text);
}

.cdf-amounts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 0;
}

.cdf-amount-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 1px solid rgba(255,255,255,0.22);
	background: rgba(255,255,255,0.10);
	color: var(--cdf-text);
	border-radius: 12px;
	padding: 14px 10px;
	min-height: 48px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	transition: all 160ms ease;
	will-change: transform, box-shadow, background-color;
}
.cdf-amount-btn:hover {
	background: rgba(255,255,255,0.16);
	border-color: var(--cdf-primary);
}
.cdf-amount-btn:focus {
	outline: none;
}
.cdf-amount-btn.is-active {
	background: rgba(255,255,255,0.10);
	color: #ffffff;
	border-color: var(--cdf-primary);
	transform: scale(1.06);
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.cdf-actions {
	margin-top: 24px;
	display: flex;
	justify-content: center;
}
.cdf-donate-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--cdf-primary);
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 12px;
	padding: 12px 28px;
	min-width: 220px;
	font-size: 15px;
	transition: background 140ms ease, transform 100ms ease;
}
.cdf-donate-link:hover {
	background: var(--cdf-primary-600);
}
.cdf-donate-link:active {
	transform: translateY(1px);
}

/* Small screens fallback to 3 columns; adjust spacing */
@media (max-width: 360px) {
	.cdf-amount-btn {
		padding: 7px 6px;
		font-size: 13px;
	}
}

/* Popup wrapper for [compact_donation_popup] */
.cdf-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.cdf-modal.is-open {
	display: flex;
}
.cdf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}
.cdf-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: calc(100vh - 32px);
	overflow: auto;
}
.cdf-modal__dialog .cdf-donation {
	max-width: none;
	margin: 0;
}
.cdf-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: #ffffff;
	color: #1f2937;
	font-size: 22px;
	line-height: 1;
}
body.cdf-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.cdf-modal {
		padding: 10px;
	}
	.cdf-modal__dialog {
		width: 100%;
		max-height: calc(100vh - 20px);
	}
	.cdf-modal__dialog .cdf-donation {
		padding: 16px;
		border-radius: 10px;
	}
	.cdf-modal__close {
		top: 6px;
		right: 6px;
	}
}


