/*!
 * IPA Process Step
 * Version: 1.3.0
 */

.ipa-process-step {
	--ipa-process-accent: currentColor;
	--ipa-process-background: #fff;
	--ipa-process-border: rgba(0, 0, 0, 0.12);

	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2rem 1.75rem 2.15rem;
	box-sizing: border-box;
	background-color: var(--ipa-process-background);
	border: 1px solid var(--ipa-process-border);
	box-shadow: inset 0 5px 0 var(--ipa-process-accent);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

/* Appearance presets */
.ipa-process-step-appearance-standard {
	background-color: var(--ipa-process-background);
}

.ipa-process-step-appearance-filled {
	background-color: color-mix(in srgb, var(--ipa-process-accent) 7%, #fff);
}

.ipa-process-step-appearance-outlined {
	background-color: transparent;
	border-width: 2px;
}

.ipa-process-step-appearance-minimal {
	padding: 1.25rem 0;
	background-color: transparent;
	border-width: 0;
	border-top-width: 4px;
	box-shadow: none;
}

.ipa-process-step-appearance-featured {
	box-shadow:
		inset 0 5px 0 var(--ipa-process-accent),
		var(--ipa-shadow-md, 0 8px 24px rgba(11, 19, 32, 0.10));
}

/* Background options */
.ipa-process-step-background-white {
	background-color: #fff;
}

.ipa-process-step-background-inherit {
	background-color: transparent;
}

.ipa-process-step-background-main.main_color,
.ipa-process-step-background-alternate.alternate_color {
	background-image: none;
}

.ipa-process-step-background-custom {
	background-color: var(--ipa-process-background);
}

/* Border options */
.ipa-process-step-border-none {
	border-color: transparent;
}

.ipa-process-step-border-custom {
	border-color: var(--ipa-process-border);
}

/* Shadow options. The inset status bar remains in every non-minimal style. */
.ipa-process-step-shadow-none:not(.ipa-process-step-appearance-featured) {
	box-shadow: inset 0 5px 0 var(--ipa-process-accent);
}

.ipa-process-step-shadow-small {
	box-shadow:
		inset 0 5px 0 var(--ipa-process-accent),
		var(--ipa-shadow-sm, 0 2px 8px rgba(11, 19, 32, 0.06));
}

.ipa-process-step-shadow-medium {
	box-shadow:
		inset 0 5px 0 var(--ipa-process-accent),
		var(--ipa-shadow-md, 0 8px 24px rgba(11, 19, 32, 0.10));
}

.ipa-process-step-shadow-large {
	box-shadow:
		inset 0 5px 0 var(--ipa-process-accent),
		var(--ipa-shadow-lg, 0 14px 36px rgba(11, 19, 32, 0.14));
}

.ipa-process-step-appearance-minimal.ipa-process-step-shadow-none {
	box-shadow: none;
}

/* Radius options */
.ipa-process-step-radius-none { border-radius: 0; }
.ipa-process-step-radius-small { border-radius: var(--ipa-radius-sm, 3px); }
.ipa-process-step-radius-medium { border-radius: var(--ipa-radius-md, 6px); }
.ipa-process-step-radius-large { border-radius: var(--ipa-radius-lg, 10px); }

/* Status treatments */
.ipa-process-step:hover {
	transform: translateY(-2px);
}

.ipa-process-step-complete {
	--ipa-process-accent: #2e7d32;
}

.ipa-process-step-current {
	--ipa-process-accent: #c9a227;
}

.ipa-process-step-upcoming {
	--ipa-process-accent: rgba(0, 0, 0, 0.14);
}

.ipa-process-step-warning {
	--ipa-process-accent: #d17a0a;
}

.ipa-process-step-delayed {
	--ipa-process-accent: #c62828;
}

.ipa-process-step-neutral {
	--ipa-process-accent: currentColor;
}

.ipa-process-step-colors-custom {
	--ipa-process-accent: var(--ipa-process-accent);
}

/* Optional icon */
.ipa-process-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 0 1rem;
	border: 2px solid var(--ipa-process-accent);
	border-radius: 50%;
	color: var(--ipa-process-accent);
	font-size: 20px;
	line-height: 1;
}

.ipa-process-step-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Content hierarchy: STEP, STATUS, TITLE, DESCRIPTION */
.ipa-process-step-kicker {
	display: block;
	margin: 0 0 0.8rem;
	font-family: inherit;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.ipa-process-step-number {
	display: block;
	margin: 0 0 0.75rem;
	color: var(--primary-color, #4a5ba8);
}

.ipa-process-step-number:not(:last-child)::after {
	content: none;
}

.ipa-process-step-status {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	color: var(--ipa-process-accent);
	letter-spacing: 0.22em;
}

.ipa-process-step-complete .ipa-process-step-status::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--ipa-process-accent);
	color: #fff;
	font-size: 0.7rem;
	line-height: 1;
	letter-spacing: 0;
}

.ipa-process-step-current .ipa-process-step-status::before {
	content: "";
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--ipa-process-accent);
	box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.2);
	animation: ipa-process-pulse 2s ease-in-out infinite;
}

.ipa-process-step-title {
	margin: 0 0 0.8rem;
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: inherit;
	line-height: 1.22;
	text-transform: none;
}

.ipa-process-step-content {
	font-family: inherit;
	font-size: inherit;
	line-height: 1.55;
}

.ipa-process-step-content:empty {
	display: none;
}

.ipa-process-step-content p {
	margin-top: 0;
}

.ipa-process-step-content p:last-child {
	margin-bottom: 0;
}

.ipa-process-step-upcoming .ipa-process-step-number,
.ipa-process-step-upcoming .ipa-process-step-status {
	opacity: 0.65;
}

.ipa-process-step-upcoming .ipa-process-step-title,
.ipa-process-step-upcoming .ipa-process-step-content {
	opacity: 0.72;
}

@keyframes ipa-process-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.12);
		opacity: 0.72;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ipa-process-step,
	.ipa-process-step-current .ipa-process-step-status::before {
		transition: none;
		animation: none;
	}
}
