/**
 * Newsletter block (KTKCC-11429).
 * Applies only to the block, not to the newsletter printed in the footer.
 */

/* In the Home the block sits inside the grey News + search container, after the search field. */
.ktk-newsletter-block,
.ktk-newsletter-block.container {
	width: 100%;
	max-width: 100%;
	margin-top: 4rem;
	margin-bottom: 4rem;
}

/*
 * The Brevo iframe has a fixed height and scrolling="no", and the form gets taller as it gets narrower.
 * Heights measured on the Brevo form (Nov 2026) + ~70px margin for the error/confirmation message.
 * On mobile the iframe is about 100px narrower than the screen.
 */
.ktk-newsletter-block iframe {
	height: 660px;
}

@media (max-width: 767px) {
	.ktk-newsletter-block iframe {
		height: 710px;
	}
}

@media (max-width: 599px) {
	.ktk-newsletter-block iframe {
		height: 770px;
	}
}

@media (max-width: 519px) {
	.ktk-newsletter-block iframe {
		height: 880px;
	}
}

@media (max-width: 439px) {
	.ktk-newsletter-block iframe {
		height: 960px;
	}
}

@media (max-width: 399px) {
	.ktk-newsletter-block iframe {
		height: 990px;
	}
}

@media (max-width: 379px) {
	.ktk-newsletter-block iframe {
		height: 1100px;
	}
}

@media (max-width: 359px) {
	.ktk-newsletter-block iframe {
		height: 1250px;
	}
}
