/* Wide Text CTA Block (.ms-wtxtcta) */
body.template-block-builder .wp-block-acf-wide-text-cta-block,
body.template-page .wp-block-acf-wide-text-cta-block,
body.template-component-demo .wp-block-acf-wide-text-cta-block,
.editor-styles-wrapper .wp-block-acf-wide-text-cta-block {
	border: 0;
	margin-top: 0;
	margin-bottom: 0;
}

body.template-block-builder .ms-wtxtcta,
body.template-page .ms-wtxtcta,
body.template-component-demo .ms-wtxtcta,
.editor-styles-wrapper .ms-wtxtcta {
	--ms-wtxtcta-bg: #faf7f0;
	--ms-wtxtcta-eyebrow: #46704c;
	--ms-wtxtcta-ink: #241f21;
	--ms-wtxtcta-btn-bg: #1c4220;
	--ms-wtxtcta-btn-text: #f5f0e0;
	--ms-wtxtcta-max: 1200px;

	background: var(--ms-wtxtcta-bg);
	box-sizing: border-box;
	margin: 0;
	padding: 100px 72px 100px;
	width: 100%;
}

body.template-block-builder .ms-wtxtcta__inner,
body.template-page .ms-wtxtcta__inner,
body.template-component-demo .ms-wtxtcta__inner,
.editor-styles-wrapper .ms-wtxtcta__inner {
	max-width: var(--ms-wtxtcta-max);
	margin: 0 auto;
	width: 100%;
	padding: 0;
}

body.template-block-builder .ms-wtxtcta__grid,
body.template-page .ms-wtxtcta__grid,
body.template-component-demo .ms-wtxtcta__grid,
.editor-styles-wrapper .ms-wtxtcta__grid {
	display: grid;
	/* Stack intro + content vertically (content falls under headline). */
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	width: 100%;
	margin: 0;
	padding: 0;
}

body.template-block-builder .ms-wtxtcta__intro,
body.template-page .ms-wtxtcta__intro,
body.template-component-demo .ms-wtxtcta__intro,
.editor-styles-wrapper .ms-wtxtcta__intro {
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-wtxtcta__eyebrow,
body.template-page .ms-wtxtcta__eyebrow,
body.template-component-demo .ms-wtxtcta__eyebrow,
.editor-styles-wrapper .ms-wtxtcta__eyebrow {
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 400;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ms-wtxtcta-eyebrow);
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-wtxtcta__headline,
body.template-page .ms-wtxtcta__headline,
body.template-component-demo .ms-wtxtcta__headline,
.editor-styles-wrapper .ms-wtxtcta__headline {
	font-family: 'Lora', var(--font-heading, Georgia, serif);
	font-weight: 400;
	font-style: normal;
	font-size: 42px;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--ms-wtxtcta-ink);
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-wtxtcta__headline em,
body.template-page .ms-wtxtcta__headline em,
body.template-component-demo .ms-wtxtcta__headline em,
.editor-styles-wrapper .ms-wtxtcta__headline em,
body.template-block-builder .ms-wtxtcta__headline i,
body.template-page .ms-wtxtcta__headline i,
body.template-component-demo .ms-wtxtcta__headline i,
.editor-styles-wrapper .ms-wtxtcta__headline i {
	font-family: inherit;
	font-weight: 400;
	font-style: italic;
}

body.template-block-builder .ms-wtxtcta__content,
body.template-page .ms-wtxtcta__content,
body.template-component-demo .ms-wtxtcta__content,
.editor-styles-wrapper .ms-wtxtcta__content {
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 300;
	font-style: normal;
	font-size: 18px;
	line-height: 1.8;
	letter-spacing: 0;
	color: var(--ms-wtxtcta-ink);
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-wtxtcta__content p,
body.template-page .ms-wtxtcta__content p,
body.template-component-demo .ms-wtxtcta__content p,
.editor-styles-wrapper .ms-wtxtcta__content p {
	margin: 0 0 1.5em;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-wtxtcta__content p:last-child,
body.template-page .ms-wtxtcta__content p:last-child,
body.template-component-demo .ms-wtxtcta__content p:last-child,
.editor-styles-wrapper .ms-wtxtcta__content p:last-child {
	margin-bottom: 0;
}

body.template-block-builder .ms-wtxtcta__actions,
body.template-page .ms-wtxtcta__actions,
body.template-component-demo .ms-wtxtcta__actions,
.editor-styles-wrapper .ms-wtxtcta__actions {
	display: flex;
	justify-content: flex-start;
	margin-top: 60px;
}

body.template-block-builder .ms-wtxtcta__btn,
body.template-page .ms-wtxtcta__btn,
body.template-component-demo .ms-wtxtcta__btn,
.editor-styles-wrapper .ms-wtxtcta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 35px;
	margin: 0;
	border: 0;
	border-radius: 40px;
	background: var(--ms-wtxtcta-btn-bg);
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 400;
	font-style: normal;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ms-wtxtcta-btn-text);
	transition: opacity 0.2s ease;
}

body.template-block-builder .ms-wtxtcta__btn:hover,
body.template-page .ms-wtxtcta__btn:hover,
body.template-component-demo .ms-wtxtcta__btn:hover,
.editor-styles-wrapper .ms-wtxtcta__btn:hover,
body.template-block-builder .ms-wtxtcta__btn:focus-visible,
body.template-page .ms-wtxtcta__btn:focus-visible,
body.template-component-demo .ms-wtxtcta__btn:focus-visible,
.editor-styles-wrapper .ms-wtxtcta__btn:focus-visible {
	opacity: 0.85;
	outline: none;
}

@media (max-width: 1024px) {
	body.template-block-builder .ms-wtxtcta,
	body.template-page .ms-wtxtcta,
	body.template-component-demo .ms-wtxtcta,
	.editor-styles-wrapper .ms-wtxtcta {
		padding-left: 40px;
		padding-right: 40px;
	}

	body.template-block-builder .ms-wtxtcta__grid,
	body.template-page .ms-wtxtcta__grid,
	body.template-component-demo .ms-wtxtcta__grid,
	.editor-styles-wrapper .ms-wtxtcta__grid {
		/* No-op: already single-column. Keep gap tight. */
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

@media (max-width: 600px) {
	body.template-block-builder .ms-wtxtcta,
	body.template-page .ms-wtxtcta,
	body.template-component-demo .ms-wtxtcta,
	.editor-styles-wrapper .ms-wtxtcta {
		padding: 60px 24px 120px;
	}
}

