.kfci-tss-widget {
	--kfci-tss-indicator-size: 16px;
	--kfci-tss-meta-width: 108px;
	--kfci-tss-line-left: 100px;
	direction: ltr;
}

.kfci-tss-steps-track {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 48px;
	direction: ltr;
	width: 100%;
}

.kfci-tss-steps-track::before {
	content: '';
	position: absolute;
	left: var(--kfci-tss-line-left);
	top: var(--kfci-tss-line-top, calc(var(--kfci-tss-indicator-size) / 2));
	height: var(--kfci-tss-line-height, 0);
	width: 1px;
	background-color: #e7e6e6;
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 0;
}

.kfci-tss-steps-track.no-indicator::before {
	display: none;
}

.kfci-tss-progress-line {
	position: absolute;
	left: var(--kfci-tss-line-left);
	top: var(--kfci-tss-line-top, calc(var(--kfci-tss-indicator-size) / 2));
	height: var(--kfci-tss-line-height, 0);
	width: 2px;
	background-color: #c51414;
	transform: translateX(-50%) scaleY(var(--kfci-tss-progress, 0));
	transform-origin: top center;
	pointer-events: none;
	z-index: 1;
}

.kfci-tss-steps-track.no-indicator .kfci-tss-progress-line {
	display: none;
}

.kfci-tss-step {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 41px;
	width: 100%;
	max-width: 100%;
	opacity: 1;
	transition: opacity 0.4s ease;
	direction: ltr;
}

.kfci-tss-step.is-active {
	opacity: 1;
}

.kfci-tss-step-meta {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	width: var(--kfci-tss-meta-width);
	min-width: var(--kfci-tss-meta-width);
	max-width: var(--kfci-tss-meta-width);
	flex: 0 0 var(--kfci-tss-meta-width);
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	order: 0;
}

.kfci-tss-step-year {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #050101;
	word-break: break-word;
}

.kfci-tss-step-marker {
	flex: 0 0 var(--kfci-tss-indicator-size);
	width: var(--kfci-tss-indicator-size);
	height: var(--kfci-tss-indicator-size);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #e7e6e6;
	color: #050101;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	position: relative;
	flex-shrink: 0;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.kfci-tss--year .kfci-tss-step-marker::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background-color: transparent;
	transition: background-color 0.3s ease;
	pointer-events: none;
}

.kfci-tss-step.is-passed .kfci-tss-step-marker {
	background-color: #c51414;
}

.kfci-tss-step.is-active .kfci-tss-step-marker::after {
	background-color: rgba(197, 20, 20, 0.25);
}

.kfci-tss-step-marker i,
.kfci-tss-step-marker svg {
	width: 20px;
	height: 20px;
	display: block;
}

.kfci-tss-step-marker--icon {
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	flex: 0 0 auto;
	padding: 12px;
	border-radius: 8px;
	background-color: #f5f3f3;
	box-sizing: border-box;
}

.kfci-tss--year .kfci-tss-step-marker--icon::after {
	display: none;
}

.kfci-tss-step-marker--icon i,
.kfci-tss-step-marker--icon svg {
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	flex-shrink: 0;
}

.kfci-tss-step--icon {
	gap: 49px;
}

.kfci-tss-step--icon .kfci-tss-step-meta {
	padding-block: 2px;
}

.kfci-tss-step--icon .kfci-tss-step-meta:not(:has(.kfci-tss-step-year)) {
	width: auto;
	min-width: 0;
	max-width: none;
	flex: 0 0 auto;
	justify-content: flex-start;
}

.kfci-tss-step--icon .kfci-tss-step-body {
	padding-top: 0;
}

.kfci-tss--dot .kfci-tss-step-meta,
.kfci-tss--icon-style .kfci-tss-step-meta,
.kfci-tss-widget:not(.kfci-tss--year) .kfci-tss-step-meta {
	width: auto;
	min-width: 0;
	max-width: none;
	flex: 0 0 auto;
	justify-content: flex-start;
}

.kfci-tss--dot .kfci-tss-step:not(.kfci-tss-step--icon),
.kfci-tss-widget:not(.kfci-tss--year):not(.kfci-tss--icon-style) .kfci-tss-step {
	gap: 24px;
}

.kfci-tss-widget:not(.kfci-tss--year) .kfci-tss-step-marker {
	border-radius: 8px;
}

.kfci-tss-step-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	order: 1;
}

.kfci-tss--year .kfci-tss-step-body {
	padding-top: 3px;
}

.kfci-tss-widget:not(.kfci-tss--year) .kfci-tss-step-body {
	padding-top: calc((var(--kfci-tss-indicator-size) - 1lh) / 2);
}

.kfci-tss-step-title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: #050101;
}

.kfci-tss-step-desc {
	font-size: 16px;
	line-height: 24px;
	color: #332e2e;
	margin: 0;
}

.kfci-tss-step-desc p {
	margin: 0 0 1em;
}

.kfci-tss-step-desc p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.kfci-tss-widget {
		--kfci-tss-indicator-size: 12px;
		--kfci-tss-meta-width: 67px;
	}

	.kfci-tss-steps-track {
		gap: 32px;
	}

	.kfci-tss-step {
		flex-direction: row;
		align-items: flex-start;
		gap: 24px;
	}

	.kfci-tss-step-meta {
		width: var(--kfci-tss-meta-width);
		min-width: var(--kfci-tss-meta-width);
		max-width: var(--kfci-tss-meta-width);
		flex: 0 0 var(--kfci-tss-meta-width);
		gap: 8px;
	}

	.kfci-tss--year .kfci-tss-step-marker::after {
		width: 20px;
		height: 20px;
	}

	.kfci-tss-step--icon {
		gap: 49px;
	}

	.kfci-tss-step-year {
		font-size: 16px;
		line-height: 24px;
	}

	.kfci-tss-step-body {
		gap: 8px;
	}

	.kfci-tss--year .kfci-tss-step-body {
		padding-top: 2px;
	}

	.kfci-tss-step-title {
		font-size: 18px;
		line-height: 28px;
	}

	.kfci-tss-step-desc {
		font-size: 14px;
		line-height: 20px;
	}
}
