/*
 * Ralabs Process (Figma "Process"): grey card (#F6F6F8, r16, padding 40) inside the container; its track of
 * steps (32px gaps, a line through the numbered circles) scrolls sideways. process.js shows only whole steps:
 * as many as fit at >= 280px, stretched to fill the card.
 * Mobile (Figma "AI Services_Mobile screen"): one grey card, padding 24, steps stacked with 48px gaps.
 */
.ra-overflow-clip {
	overflow-x: clip;
}

.ralabs-process {
	--rp-bg: var(--e-global-color-neutral10, #F6F6F8);
	--rp-primary: var(--e-global-color-primary, #027496);
	--rp-text: var(--e-global-color-text, #020205);
	font-family: "IBM Plex Sans", sans-serif;
}

.ralabs-process__card {
	padding: 40px;
	border-radius: 16px;
	background: var(--rp-bg);
}

.ralabs-process__swiper.swiper {
	overflow: hidden;
}

.ralabs-process .ralabs-process__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ralabs-process .ralabs-process__step.swiper-slide {
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
	height: auto;
	margin: 0;
	padding: 0;
}

.ralabs-process__bar {
	position: relative;
	display: flex;
	align-items: center;
	height: 32px;
}

/* the timeline: from this number to the next one (across the 32px gap), dotted as in the other process sliders */
.ralabs-process__step:not(:last-child) .ralabs-process__bar::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 32px;
	right: -32px;
	height: 0;
	border-top: 2px dotted var(--rp-primary);
	transform: translateY(-50%);
}

.ralabs-process__number {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--rp-primary);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
}

.ralabs-process__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-right: 32px;
}

.ralabs-process .ralabs-process__title {
	margin: 0;
	color: var(--rp-text);
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.2px;
}

.ralabs-process__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--rp-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.ralabs-process__body p {
	margin: 0;
}

.ralabs-process__body strong {
	font-weight: 500; /* Figma: IBM Plex Sans Medium (600 isn't loaded, it rendered as 700) */
}

.ralabs-process .ra-slider-dots__list {
	margin-top: 24px;
}

@media (max-width: 767px) {
	/* the list itself is the grey card on mobile */
	.ralabs-process__card {
		padding: 0;
		border-radius: 0;
		background: none;
	}

	.ralabs-process .ralabs-process__list.swiper-wrapper {
		display: flex;
		flex-direction: column;
		gap: 48px;
		box-sizing: border-box;
		width: 100%;
		padding: 24px;
		border-radius: 16px;
		background: var(--rp-bg);
	}

	.ralabs-process .ralabs-process__step.swiper-slide,
	.ralabs-process .ralabs-process__step:first-child,
	.ralabs-process .ralabs-process__step:last-child {
		flex-direction: row;
		flex-shrink: 1;
		gap: 16px;
		box-sizing: border-box;
		width: 100%;
		padding: 0;
		border-radius: 0;
		background: none;
	}

	.ralabs-process__step .ralabs-process__bar::after {
		display: none;
	}

	.ralabs-process__number {
		font-size: 16px;
		line-height: 20px;
		letter-spacing: 0.2px;
	}

	.ralabs-process__text {
		flex: 1 1 auto;
		min-width: 0;
		gap: 8px;
		padding-right: 0;
	}

	.ralabs-process .ralabs-process__title {
		font-size: 16px;
		line-height: 20px;
	}

	.ralabs-process .ra-slider-dots__list {
		display: none;
	}
}
