/*
 * TEP Donations — the Stripe payment slot and its messages on the Donate form.
 * The form's own look is in the site's Custom CSS (tep-forms.css and friends);
 * this file covers only what the plugin adds.
 */

/* The Payment Element draws its own input boxes; the slot is just a holder. */
.tep-donation-form .tep-payment-element[data-tep-stripe],
.tep-donation-form .tep-payment-element[data-tep-stripe]:focus-within {
	min-height: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
}

/* "Other" amount: only while Other is picked. */
.tep-donation-form .tep-other-amount {
	margin-top: 12px;
}

.tep-donation-form .tep-donation-amount:not(:has(input[value="Other"]:checked)) .tep-other-amount {
	display: none;
}

.tep-donation-form .tep-pay-test-note {
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px dashed var(--tep-brand, #ec5c39);
	border-radius: var(--tep-radius, 8px);
	background: var(--tep-brand-wash, #fff3f0);
	color: var(--tep-text-secondary, #363636);
	font-size: 14px;
	line-height: 1.45;
}

.tep-donation-form .tep-pay-test-note strong {
	color: var(--tep-brand, #ec5c39);
}

.tep-donation-form .tep-pay-unavailable,
.tep-donation-form .tep-pay-error {
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid #df1b41;
	border-radius: var(--tep-radius, 8px);
	background: #fdf2f4;
	color: #a8102f;
	font-size: 14px;
	line-height: 1.45;
}

.tep-donation-form .tep-pay-error[hidden] {
	display: none;
}

/* Turnstile's check box, when Cloudflare shows one, sits under the note. */
.tep-donation-form .tep-turnstile {
	margin-top: 12px;
	max-width: 100%;
}

.tep-donation-form .tep-turnstile:empty {
	margin: 0;
}

.tep-donation-form .tep-donation-form-inner > .tep-pay-error {
	margin: 12px 0 0;
}

/* Honeypot: off-screen, never seen by people. */
.tep-donation-form .tep-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tep-donation-form .cf7mls-btns button[aria-busy="true"] {
	cursor: progress;
	opacity: 0.8;
}

/* Turnstile on other forms (the Apply form), above the submit button. */
.tep-donation-form [data-tep-turnstile] {
	margin: 16px 0 12px;
}

.tep-donation-form [data-tep-turnstile] + .tep-pay-error {
	margin: 0 0 12px;
}
