/* WP Consultant Toolkit — Steps widget styles. */

/*
 * Layout runs on CSS variables. The responsive "Number position" control
 * sets the whole set per device (WPCT_Widget_Steps::LAYOUT_TOP / LAYOUT_LEFT);
 * the fallbacks below equal LAYOUT_TOP, so the design's desktop layout
 * also shows without Elementor's generated CSS.
 *
 *   top:  number + horizontal line in one row, title and text below.
 *   left: number in its own column with a vertical line down to the next
 *         step, title (centered on the number) and text beside it.
 */

.wpct-steps {
	display: flex;
	flex-direction: row;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 32px;
}

.wpct-step {
	display: grid;
	flex: 1 1 0;
	grid-template-columns: var(--wpct-step-cols, minmax(0, 1fr));
	align-content: start;
	column-gap: var(--wpct-step-side-gap, 20px);
	min-width: 0;
}

.wpct-step-top {
	display: flex;
	flex-direction: var(--wpct-step-top-dir, row);
	grid-area: var(--wpct-step-top-area, auto);
	align-items: center;
	margin-bottom: var(--wpct-step-top-mb, var(--wpct-step-number-spacing, 24px));
}

.wpct-step-number {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 52px;
	border-radius: 50%;
	line-height: 1;
	font-weight: 800;
}

.wpct-step-connector {
	flex: 1 1 auto;
	align-self: center;
	width: 0;
	min-width: 0;
	height: 0;
	margin: var(--wpct-conn-margin, 0 0 0 var(--wpct-conn-space, 12px));
	border-style: var(--wpct-conn-style, dashed);
	border-color: var(--wpct-conn-color, #9eb0c2);
	border-width: var(--wpct-conn-top-w, var(--wpct-conn-width, 1px)) 0 0 var(--wpct-conn-left-w, 0);
}

.wpct-step-title {
	display: var(--wpct-step-title-display, block);
	grid-area: var(--wpct-step-title-area, auto);
	align-items: center;
	min-height: var(--wpct-step-title-min-h, 0);
	margin: 0 0 8px;
}

.wpct-step-title a {
	color: inherit;
	text-decoration: none;
}

.wpct-step-desc {
	grid-area: var(--wpct-step-desc-area, auto);
	margin: 0;
}
