/* 2Fifty Widgets: process-steps */
/* ==========================================================================
   8) PROCESS STEPS
   ========================================================================== */

.shw-pr {
	--shw-pr-size: 56px;
	--shw-pr-accent: #c9a227;
	--shw-pr-on-accent: #fff;
	--shw-pr-track: #e3e1db;
	--shw-pr-line: 2px;
	--shw-pr-gap: 28px;
	display: flex;
	gap: var(--shw-pr-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.shw-pr__step {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	transition: opacity .6s ease, transform .6s var(--shw-ease, ease);
	transition-delay: calc(var(--i, 0) * 160ms);
}

.shw-pr__head {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 22px;
}

.shw-pr__marker {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--shw-pr-size);
	height: var(--shw-pr-size);
	border: 2px solid var(--shw-pr-accent);
	border-radius: 50%;
	background-color: transparent;
	color: var(--shw-pr-accent);
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.shw-pr__marker svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}

.shw-pr--marker-filled .shw-pr__marker,
.shw-pr--marker-square .shw-pr__marker {
	background-color: var(--shw-pr-accent);
	color: var(--shw-pr-on-accent);
}

.shw-pr--marker-square .shw-pr__marker {
	border-radius: 6px;
}

.shw-pr--marker-plain .shw-pr__marker {
	width: auto;
	min-width: var(--shw-pr-size);
	height: auto;
	border: 0;
	font-size: 44px;
	justify-content: flex-start;
}

.shw-pr__step:hover .shw-pr__marker {
	background-color: var(--shw-pr-accent);
	color: var(--shw-pr-on-accent);
	transform: scale(1.06);
}

.shw-pr--marker-plain .shw-pr__step:hover .shw-pr__marker {
	background-color: transparent;
	color: var(--shw-pr-accent);
}

.shw-pr__line {
	position: relative;
	display: none;
	flex: 1 1 auto;
	height: var(--shw-pr-line);
	margin: 0 calc(14px - var(--shw-pr-gap)) 0 14px;
	overflow: hidden;
	background-color: var(--shw-pr-track);
	border-radius: 4px;
}

.shw-pr--line .shw-pr__line {
	display: block;
}

.shw-pr__step:last-child .shw-pr__line {
	visibility: hidden;
}

.shw-pr__line-fill {
	position: absolute;
	inset: 0;
	background-color: var(--shw-pr-accent);
	transform-origin: left center;
	transition: transform .9s ease;
	transition-delay: calc(var(--i, 0) * 160ms + 250ms);
}

.shw-pr--anim .shw-pr__step {
	opacity: 0;
	transform: translateY(18px);
}

.shw-pr--anim.is-in .shw-pr__step {
	opacity: 1;
	transform: none;
}

.shw-pr--anim .shw-pr__line-fill {
	transform: scaleX(0);
}

.shw-pr--anim.is-in .shw-pr__line-fill {
	transform: none;
}

.shw-pr__title {
	margin: 0 0 8px;
	padding: 0;
	color: #17191c;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.shw-pr__desc {
	margin: 0;
	color: #5a6070;
	font-size: 15px;
	line-height: 1.6;
}

/* Centered horizontal */
.shw-pr-align-center .shw-pr--horizontal .shw-pr__head {
	justify-content: center;
}

.shw-pr-align-center .shw-pr--horizontal .shw-pr__body {
	text-align: center;
}

.shw-pr-align-center .shw-pr--horizontal .shw-pr__line {
	position: absolute;
	top: 50%;
	left: calc(50% + var(--shw-pr-size) / 2 + 12px);
	width: calc(100% + var(--shw-pr-gap) - var(--shw-pr-size) - 24px);
	margin: 0;
	transform: translateY(-50%);
}

/* Vertical timeline */
.shw-pr--vertical {
	flex-direction: column;
	gap: 0;
}

.shw-pr--vertical .shw-pr__step {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 24px;
}

.shw-pr--vertical .shw-pr__head {
	flex-direction: column;
	align-items: center;
	margin: 0;
	min-width: var(--shw-pr-size);
}

.shw-pr--vertical .shw-pr__line {
	flex: 1 1 auto;
	width: var(--shw-pr-line);
	height: auto;
	min-height: 24px;
	margin: 10px 0;
}

.shw-pr--vertical .shw-pr__line-fill {
	transform-origin: center top;
}

.shw-pr--vertical.shw-pr--anim .shw-pr__line-fill {
	transform: scaleY(0);
}

.shw-pr--vertical.shw-pr--anim.is-in .shw-pr__line-fill {
	transform: none;
}

.shw-pr--vertical .shw-pr__body {
	padding-top: calc((var(--shw-pr-size) - 1.6em) / 2);
	padding-bottom: var(--shw-pr-gap);
	text-align: left;
}

.shw-pr--vertical .shw-pr__step:last-child .shw-pr__body {
	padding-bottom: 0;
}

@media (max-width: 767px) {
.shw-pr--stack-mobile {
	flex-direction: column;
	gap: 0;
}

.shw-pr--stack-mobile .shw-pr__step {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 24px;
}

.shw-pr--stack-mobile .shw-pr__head {
	flex-direction: column;
	align-items: center;
	margin: 0;
	min-width: var(--shw-pr-size);
}

.shw-pr--stack-mobile .shw-pr__line {
	flex: 1 1 auto;
	width: var(--shw-pr-line);
	height: auto;
	min-height: 24px;
	margin: 10px 0;
}

.shw-pr--stack-mobile .shw-pr__line-fill {
	transform-origin: center top;
}

.shw-pr--stack-mobile.shw-pr--anim .shw-pr__line-fill {
	transform: scaleY(0);
}

.shw-pr--stack-mobile.shw-pr--anim.is-in .shw-pr__line-fill {
	transform: none;
}

.shw-pr--stack-mobile .shw-pr__body {
	padding-top: calc((var(--shw-pr-size) - 1.6em) / 2);
	padding-bottom: var(--shw-pr-gap);
	text-align: left;
}

.shw-pr--stack-mobile .shw-pr__step:last-child .shw-pr__body {
	padding-bottom: 0;
}

	.shw-pr-align-center .shw-pr--stack-mobile .shw-pr__head { justify-content: flex-start; }
	.shw-pr-align-center .shw-pr--stack-mobile .shw-pr__line {
		position: relative;
		top: auto;
		left: auto;
		width: var(--shw-pr-line);
		transform: none;
		margin: 10px 0;
	}
}
