/* jdc-support — reader contribution pilot */
.jdc-support {
	margin: 30px 0 0;
}

.jdc-support__card {
	position: relative;
	background: #fff;
	border: 1px solid #dce2e8;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(9, 29, 54, 0.06);
	padding: 32px 28px 26px;
	overflow: hidden;
}

.jdc-support__tricolor {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(to right, #002b7f 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66%);
	border-radius: 12px 12px 0 0;
}

.jdc-support__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	background: #eaf1fb;
	border-radius: 50%;
}

.jdc-support__title {
	margin: 0;
	text-align: center;
	font: 700 28px/1.2 Manrope, Arial, sans-serif;
	color: #091d36;
}

.jdc-support__subtitle {
	margin: 8px 0 16px;
	text-align: center;
	font: 600 17px/1.35 Manrope, Arial, sans-serif;
	color: #091d36;
}

.jdc-support__copy {
	max-width: 780px;
	margin: 0 auto 22px;
	text-align: center;
	color: #46566a;
	font: 400 16px/1.6 'DM Sans', sans-serif;
}

.jdc-support__copy p + p {
	margin-top: 12px;
}

.jdc-support__amounts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-width: 720px;
	margin: 0 auto 14px;
	position: relative;
	z-index: 2;
}

.jdc-support__amount {
	position: relative;
	display: block;
	cursor: pointer;
}

.jdc-support__amount input {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}

.jdc-support__amount span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	border: 1px solid #d6dee6;
	border-radius: 8px;
	background: #fff;
	color: #173f70;
	font: 700 18px/1.2 Manrope, Arial, sans-serif;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jdc-support__amount span:hover,
.jdc-support__amount input:focus-visible + span {
	border-color: #173f70;
}

.jdc-support__amount:has(input:checked) span,
.jdc-support__amount.is-selected span,
.jdc-support__amount input:checked + span {
	background: #173f70;
	border-color: #173f70;
	color: #fff;
}

.jdc-support__custom {
	max-width: 720px;
	margin: 0 auto 14px;
	text-align: center;
}

.jdc-support__custom-label {
	display: block;
	margin-bottom: 8px;
	font: 600 14px/1.3 Manrope, Arial, sans-serif;
	color: #173f70;
}

.jdc-support__custom-input {
	width: 100%;
	max-width: 280px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #d6dee6;
	border-radius: 8px;
	font: 600 18px/1 Manrope, Arial, sans-serif;
	color: #173f70;
	text-align: center;
}

.jdc-support__custom-input:focus {
	outline: 2px solid #173f70;
	outline-offset: 2px;
}

.jdc-support__custom-error {
	margin: 8px 0 0;
	color: #b42318;
	font-size: 14px;
}

.jdc-support__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 720px;
	min-height: 52px;
	margin: 4px auto 12px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: #173f70;
	color: #fff;
	font: 700 17px/1.2 Manrope, Arial, sans-serif;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.jdc-support__cta:hover:not(:disabled) {
	background: #0f2f56;
}

.jdc-support__cta:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.jdc-support__cta:focus-visible {
	outline: 2px solid #091d36;
	outline-offset: 2px;
}

.jdc-support__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 6px;
	color: #5a6d82;
	font: 500 14px/1.4 'DM Sans', sans-serif;
}

.jdc-support__paypal {
	font: 700 15px/1 'Helvetica Neue', Arial, sans-serif;
	color: #003087;
	letter-spacing: -0.02em;
}

.jdc-support__fineprint {
	margin: 0 auto 10px;
	text-align: center;
	max-width: 720px;
	color: #7f8da0;
	font-size: 13px;
	line-height: 1.5;
}

.jdc-support__notice {
	text-align: center;
	color: #7f8da0;
	font-size: 14px;
}

.jdc-support__give-host {
	position: fixed;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	overflow: visible;
	z-index: 10050;
	pointer-events: none;
}

.jdc-support__give-host givewp-donation-form {
	pointer-events: auto;
	display: block;
	width: 0;
	height: 0;
	overflow: visible;
}

.jdc-support__give-host .givewp-donation-form-modal__open,
.jdc-support__give-host .givewp-donation-form-link {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	opacity: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
}

.jdc-support__give-host .givewp-donation-form-modal__overlay {
	pointer-events: auto;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	box-sizing: border-box;
}

.jdc-support__give-host .givewp-donation-form-modal {
	position: relative;
	width: min(100%, 520px);
	height: min(92vh, 820px);
	max-height: min(92vh, 820px);
	margin: 0 auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(9, 29, 54, 0.28);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.jdc-support__give-host .givewp-donation-form-modal__dialog__content {
	flex: 1 1 auto;
	min-height: 0;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	overflow: hidden;
	background: #fff;
}

.jdc-support__give-host .givewp-donation-form-modal__dialog__content iframe {
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	min-height: 360px;
	max-height: 100% !important;
	border: 0;
	display: block;
	overflow: auto;
}

.jdc-support__give-host .givewp-donation-form-modal__close {
	top: 10px;
	right: 10px;
}

.jdc-support__divider {
	border: 0;
	border-top: 1px solid #e6ebf1;
	margin: 18px auto 14px;
	max-width: 720px;
}

.jdc-support__thanks {
	margin: 0;
	text-align: center;
	font: 600 15px/1.5 Manrope, Arial, sans-serif;
	color: #46566a;
}

@media (max-width: 768px) {
	.jdc-support__card {
		padding: 24px 18px 20px;
	}
	.jdc-support__title {
		font-size: 23px;
	}
	.jdc-support__copy {
		font-size: 15px;
	}
	.jdc-support__amounts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}