/* MRE Process Steps — base layout (all colors/sizes overridden via Elementor selectors) */

.mre-ps-wrapper {
	width: 100%;
	overflow-x: auto;
}

/* Flex row: one column per step, evenly distributed */
.mre-ps-track {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
}

.mre-ps-step {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

/* ── Connector + box row ───────────────────────────────────────────────────── */

.mre-ps-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
}

/* The square number box */
.mre-ps-box {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border: 2px solid #1a1a2e;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}

/* Horizontal connector lines that grow to fill available space */
.mre-ps-connector {
	flex: 1 1 0;
	height: 2px;
	background-color: #1a1a2e;
	align-self: center;
}

/* Center mode (default): outer connectors are invisible but hold space → box stays centered */
.mre-ps-align-center .mre-ps-step:first-child .mre-ps-connector--left,
.mre-ps-align-center .mre-ps-step:last-child  .mre-ps-connector--right {
	visibility: hidden;
}

/* Edge mode: outer connectors are removed → first box touches left edge, last touches right */
.mre-ps-align-edge .mre-ps-step:first-child .mre-ps-connector--left,
.mre-ps-align-edge .mre-ps-step:last-child  .mre-ps-connector--right {
	display: none;
}

/* ── Text content ──────────────────────────────────────────────────────────── */

.mre-ps-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 8px;
	width: 100%;
	box-sizing: border-box;
}

.mre-ps-number {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	color: #1a1a2e;
}

.mre-ps-title {
	margin: 16px 0 0;
	padding: 0;
	font-weight: 700;
	font-size: 1rem;
	color: #1a1a2e;
}

.mre-ps-desc {
	margin: 8px 0 0;
	padding: 0;
	font-size: 0.875rem;
	color: #555555;
}

/* ── Responsive: stack vertically on small screens ─────────────────────────── */

@media ( max-width: 767px ) {
	.mre-ps-wrapper {
		overflow-x: visible;
	}

	.mre-ps-track {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 24px;
	}

	/* Override Elementor's columns selector (high specificity → needs !important) */
	.mre-ps-step {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100%;
	}

	.mre-ps-row {
		width: 100%;
		justify-content: center;
	}

	/* Hide all horizontal connectors on mobile */
	.mre-ps-connector {
		display: none !important;
	}
}
