.hsp-step-block {
	--hsp-step-accent: var(--ark-color--main, #333);
	--hsp-step-border: var(--ark-color--border, rgba(200, 200, 200, 0.5));
	--hsp-step-card-bg: #fff;
	--hsp-step-card-shadow: rgba(0, 0, 0, 0.05);

	counter-reset: hsp-step;
	margin: 2em 0;
}

.hsp-step-block__item {
	position: relative;
	counter-increment: hsp-step;
}

.hsp-step-block__head {
	display: flex;
	align-items: flex-start;
	position: relative;
}

.hsp-step-block__number {
	display: flex;
	z-index: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 3.5em;
	height: 3.5em;
	border-radius: 999px;
	background: var(--hsp-step-accent);
	color: #fff;
	font-family: Arial, sans-serif;
	font-weight: 700;
	line-height: 1;
}

.hsp-step-block__number::after {
	content: counter(hsp-step);
	display: block;
	font-size: 1.35em;
}

.hsp-step-block__label {
	display: block;
	margin-bottom: 0.18em;
	font-size: 0.62em;
	letter-spacing: 0;
}

.hsp-step-block__title {
	min-width: 0;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.6;
	overflow-wrap: anywhere;
	white-space: normal;
}

.hsp-step-block__body {
	min-width: 0;
	margin-top: 1em;
	line-height: 1.8;
	overflow-wrap: anywhere;
	white-space: normal;
}

.hsp-step-block__body > :first-child {
	margin-top: 0;
}

.hsp-step-block__body > :last-child {
	margin-bottom: 0;
}

.hsp-step-block--default .hsp-step-block__item {
	padding: 0 0 3em;
}

.hsp-step-block--default > .hsp-step-block__item:last-child {
	padding-bottom: 0;
}

.hsp-step-block--default .hsp-step-block__number {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	margin-right: 16px;
}

.hsp-step-block--default .hsp-step-block__title {
	align-self: center;
}

.hsp-step-block--default .hsp-step-block__body {
	margin-left: 64px;
}

.hsp-step-block--default.hsp-step-block--has-connector .hsp-step-block__item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 23px;
	border-left: 1px dashed var(--hsp-step-border);
}

.hsp-step-block--card .hsp-step-block__item {
	display: block;
	padding: 2em;
	background: var(--hsp-step-card-bg);
	box-shadow: var(--arkb-shadow, 0 4px 14px var(--hsp-step-card-shadow));
}

.hsp-step-block--card .hsp-step-block__item + .hsp-step-block__item {
	margin-top: 56px;
}

.hsp-step-block--card .hsp-step-block__head {
	align-items: center;
	justify-content: flex-start;
}

.hsp-step-block--card .hsp-step-block__number {
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 2em;
	height: auto;
	margin-right: 1em;
	border-radius: 0;
	background: transparent;
	color: #333;
}

.hsp-step-block--card .hsp-step-block__number::after {
	font-size: 24px;
}

.hsp-step-block--card .hsp-step-block__label {
	min-width: 2em;
	margin-right: 0.25em;
	margin-bottom: 0;
	padding-top: 2px;
	font-size: 10px;
}

.hsp-step-block--card .hsp-step-block__body {
	margin-top: 1em;
	padding-top: 0;
}

.hsp-step-block--card.hsp-step-block--has-connector .hsp-step-block__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(100% + 28px);
	left: 50%;
	border: solid 12px transparent;
	border-top-color: var(--hsp-step-border);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
	transform: translateX(-50%) translateY(-6px);
}

@media (max-width: 600px) {
	.hsp-step-block--default.hsp-step-block--has-connector .hsp-step-block__item:not(:last-child)::before {
		left: 17px;
	}

	.hsp-step-block--default .hsp-step-block__number {
		width: 36px;
		height: 36px;
		margin-right: 12px;
	}

	.hsp-step-block--default .hsp-step-block__number::after {
		margin-top: -1px;
		font-size: 16px;
	}

	.hsp-step-block--default .hsp-step-block__label {
		transform: scale(0.75);
	}

	.hsp-step-block--default .hsp-step-block__body {
		margin-left: 48px;
	}

	.hsp-step-block--card .hsp-step-block__item {
		padding: 1.5em;
	}
}
