.wp-block-cetv-how-it-works,
.editor-styles-wrapper .wp-block-cetv-how-it-works {
	width: 100%;
}

.wp-block-cetv-how-it-works.cetv-how-it-works,
.editor-styles-wrapper .wp-block-cetv-how-it-works.cetv-how-it-works {
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: 100%;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__head,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__heading,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__heading {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 680px;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__eyebrow,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__eyebrow {
	margin: 0;
	padding-left: 13px;
	position: relative;
	color: #1f1f21;
	font-family: "Aspekta", var(--wp--preset--font-family--heading, sans-serif);
	font-size: 12px;
	font-style: normal;
	font-weight: 450;
	line-height: normal;
	letter-spacing: 0.96px;
	text-transform: uppercase;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__eyebrow::before,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #ae1f23;
	transform: translateY(-50%);
}

.wp-block-cetv-how-it-works .cetv-how-it-works__title,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__title {
	margin: 0;
	color: #1f1f21;
	font-family: "Aspekta", var(--wp--preset--font-family--heading, sans-serif);
	font-size: 36px;
	font-style: normal;
	font-weight: 650;
	line-height: 42px;
	text-wrap: balance;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__more,
.wp-block-cetv-how-it-works .cetv-how-it-works__more:visited,
.wp-block-cetv-how-it-works .cetv-how-it-works__more:hover,
.wp-block-cetv-how-it-works .cetv-how-it-works__more:focus,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__more,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__more:visited,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__more:hover,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__more:focus {
	color: #ae1f23;
	font-family: "Aspekta", var(--wp--preset--font-family--heading, sans-serif);
	font-size: 16px;
	font-style: normal;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__cards,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}

.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	width: 100% !important;
}

.editor-styles-wrapper .wp-block-cetv-process.cetv-process--cards .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	width: 100% !important;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__cards > .wp-block-group,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards .wp-block-group.cetv-how-it-works__card {
	margin: 0;
	padding: 40px 36px;
	min-height: 357px;
	border-radius: 8px;
	background: #1f1f21;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Gutenberg editor wrappers for each inner card (desktop + tablet editor). */
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] > .block-editor-block-list__block-edit,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] > .block-editor-block-list__block-edit > div {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	height: 100%;
}

.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] > .block-editor-block-list__block-edit > div > .wp-block-group {
	margin: 0;
	padding: 40px 36px;
	min-height: 357px;
	border-radius: 8px;
	background: #1f1f21;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] {
	margin: 0 !important;
	min-width: 0 !important;
	width: 100% !important;
	flex: 1 1 0 !important;
	max-width: none !important;
}

.editor-styles-wrapper .wp-block-cetv-process.cetv-process--cards .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] {
	margin: 0 !important;
	min-width: 0 !important;
	width: 100% !important;
	flex: 1 1 0 !important;
	max-width: none !important;
}

.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] > .block-editor-block-list__block-edit,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] > .block-editor-block-list__block-edit > div {
	height: 100%;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__cards > .wp-block-group > .wp-block-image,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards .wp-block-image.cetv-how-it-works__card-icon {
	margin: 0 0 77px;
	width: 64px;
	height: 64px;
}

/* Robust sizing for migrated/nested markup variants. */
.wp-block-cetv-how-it-works .cetv-how-it-works__card-icon,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__card-icon {
	margin: 0 0 77px;
	width: 64px;
	height: 64px;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__cards > .wp-block-group > .wp-block-image img,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards .wp-block-image.cetv-how-it-works__card-icon img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__card-icon img,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__card-icon img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__cards > .wp-block-group > .wp-block-heading,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards .wp-block-heading.cetv-how-it-works__card-title {
	margin: 0;
	color: #fff;
	font-family: "Aspekta", var(--wp--preset--font-family--heading, sans-serif);
	font-size: 24px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.2;
}

.wp-block-cetv-how-it-works .cetv-how-it-works__cards > .wp-block-group > p,
.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards .wp-block-paragraph.cetv-how-it-works__card-text {
	margin: 0;
	color: #fff;
	font-family: "Aspekta", var(--wp--preset--font-family--base, sans-serif);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
}

@media ( max-width: 1100px ) {
	.wp-block-cetv-how-it-works .cetv-how-it-works__cards,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.editor-styles-wrapper .wp-block-cetv-process.cetv-process--cards .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media ( max-width: 900px ) {
	.wp-block-cetv-how-it-works.cetv-how-it-works,
	.editor-styles-wrapper .wp-block-cetv-how-it-works.cetv-how-it-works {
		gap: 28px;
	}

	.wp-block-cetv-how-it-works .cetv-how-it-works__head,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.wp-block-cetv-how-it-works .cetv-how-it-works__title,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__title {
		font-size: clamp(2rem, 7.2vw, 2.5rem);
		line-height: 1.12;
	}

	.wp-block-cetv-how-it-works .cetv-how-it-works__cards,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards {
		display: flex;
		overflow-x: auto;
		gap: 12px;
		scroll-snap-type: x proximity;
		padding-bottom: 2px;
	}

	.editor-styles-wrapper .wp-block-cetv-process.cetv-process--cards .cetv-how-it-works__cards {
		display: block !important;
		overflow: visible !important;
	}

	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
		display: flex !important;
		grid-template-columns: none !important;
	}

	.wp-block-cetv-how-it-works .cetv-how-it-works__cards::-webkit-scrollbar,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout::-webkit-scrollbar {
		display: none;
	}

	.wp-block-cetv-how-it-works .cetv-how-it-works__cards > .wp-block-group,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards .wp-block-group.cetv-how-it-works__card {
		flex: 0 0 min(320px, calc(100vw - 42px));
		scroll-snap-align: start;
	}

	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] {
		flex: 0 0 min(320px, calc(100vw - 42px)) !important;
		width: auto !important;
	}

	.wp-block-cetv-how-it-works .cetv-how-it-works__cards > .wp-block-group > .wp-block-image,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__cards .wp-block-image.cetv-how-it-works__card-icon {
		margin: 0 0 16px;
	}

	.wp-block-cetv-how-it-works .cetv-how-it-works__card-icon,
	.editor-styles-wrapper .wp-block-cetv-how-it-works .cetv-how-it-works__card-icon {
		margin: 0 0 16px;
	}

	/* Unified block in editor: keep grid layout, do not collapse to narrow flex cards. */
	.editor-styles-wrapper .wp-block-cetv-process.cetv-process--cards .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 20px !important;
		overflow: visible !important;
		scroll-snap-type: none !important;
	}

	.editor-styles-wrapper .wp-block-cetv-process.cetv-process--cards .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] {
		flex: initial !important;
		width: 100% !important;
		max-width: none !important;
	}

	.editor-styles-wrapper [data-type="cetv/process"] .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 20px !important;
		overflow: visible !important;
		scroll-snap-type: none !important;
	}

	.editor-styles-wrapper [data-type="cetv/process"] .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] {
		flex: initial !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
	}
}

/* Editor parity for unified process cards:
 * keep card grid readable in Gutenberg even when editor canvas triggers mobile breakpoints.
 */
.editor-styles-wrapper :is(.wp-block-cetv-process.cetv-process--cards, .wp-block-cetv-how-it-works) .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	width: 100% !important;
	overflow: visible !important;
	scroll-snap-type: none !important;
}

.editor-styles-wrapper :is(.wp-block-cetv-process.cetv-process--cards, .wp-block-cetv-how-it-works) .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/group"] {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: initial !important;
}

@media ( max-width: 1100px ) {
	.editor-styles-wrapper :is(.wp-block-cetv-process.cetv-process--cards, .wp-block-cetv-how-it-works) .cetv-how-it-works__cards > .block-editor-inner-blocks > .block-editor-block-list__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
