/* ACB Email Signup Plugin — Frontend styles */
/* Override form and confirmation styles here without using !important */

/* Press distribution list (Presseverteiler) topic selection */
.acb-email-signup-form__topics {
	margin: 1em 0;
	padding: 0.75em 1em;
	border: 1px solid #ccc;
}

.acb-email-signup-form__topics legend {
	font-weight: 600;
	padding: 0 0.4em;
}

.acb-email-signup-form__topic {
	display: inline-block;
	margin: 0.15em 0;
	font-weight: normal;
}

.acb-email-signup-form__topic input {
	margin-right: 0.4em;
}

/* Cloudflare Turnstile widget spacing */
.acb-email-signup-form__turnstile {
	margin: 1em 0;
}

/*
 * Cloudflare renders the Turnstile widget as a fixed ~300px-wide iframe. On
 * narrow viewports the form column is < 300px, so the widget overflows and gets
 * clipped. Scale it down to fit; the normal 300px layout is left untouched on
 * wider screens (>= ~390px). Origin is the left edge so the widget stays
 * aligned with the rest of the form. Covers both the block form and the footer
 * form (same wrapper class).
 */
@media (max-width: 389px) {
	.acb-email-signup-form__turnstile {
		transform: scale(0.85);
		transform-origin: left center;
	}
}

@media (max-width: 344px) {
	.acb-email-signup-form__turnstile {
		transform: scale(0.74);
	}
}
