/**
 * Webifa Checkout Steps - Stylesheet
 * Colors are exposed as CSS custom properties and can be overridden
 * from Settings > Webifa Checkout Steps (values injected via wp_add_inline_style).
 */
.webifa-cs {
	--webifa-cs-accent: #e80645;
	--webifa-cs-accent-soft: color-mix(in srgb, var(--webifa-cs-accent) 14%, #fff);
	--webifa-cs-accent-muted: color-mix(in srgb, var(--webifa-cs-accent) 55%, #fff);
	--webifa-cs-accent-border: color-mix(in srgb, var(--webifa-cs-accent) 28%, #fff);
	--webifa-cs-success: #3eb580;
	--webifa-cs-text: #111827;
	--webifa-cs-desc: #6b7280;
	--webifa-cs-bg: #f5f5f5;
	--webifa-cs-border: #eaeef4;
	box-sizing: border-box;
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	padding: 8px 4px 4px;
	font-family: 'Shabnam', Tahoma, sans-serif;
}
.webifa-cs *,
.webifa-cs *::before,
.webifa-cs *::after {
	box-sizing: border-box;
}
.webifa-cs__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.webifa-cs__list {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.webifa-cs__item {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	min-width: 72px;
	text-align: center;
}
.webifa-cs__node {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
}
.webifa-cs__icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--webifa-cs-bg);
	color: #b0b7c3;
	border: 1px solid transparent;
	transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.webifa-cs__icon svg {
	display: block;
}
.webifa-cs__label {
	margin-top: 10px;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--webifa-cs-desc);
	transition: color 0.35s ease;
}
.webifa-cs__connector {
	flex: 1 1 auto;
	align-self: flex-start;
	min-width: 60px;
	height: 4px;
	margin-top: 23px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--webifa-cs-border);
	list-style: none;
}
.webifa-cs__connector-fill {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: var(--webifa-cs-border);
}
.webifa-cs__connector--done .webifa-cs__connector-fill {
	background: var(--webifa-cs-success);
}
.webifa-cs__connector--active .webifa-cs__connector-fill {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--webifa-cs-accent) 18%, transparent) 0%,
		color-mix(in srgb, var(--webifa-cs-accent) 18%, transparent) 35%,
		color-mix(in srgb, var(--webifa-cs-accent) 95%, transparent) 50%,
		color-mix(in srgb, var(--webifa-cs-accent) 18%, transparent) 65%,
		color-mix(in srgb, var(--webifa-cs-accent) 18%, transparent) 100%
	);
	background-size: 220% 100%;
	animation: webifa-cs-line-flow 1.8s ease-in-out infinite alternate;
}
.webifa-cs--no-animation .webifa-cs__connector--active .webifa-cs__connector-fill {
	animation: none;
	background: var(--webifa-cs-accent);
}
.webifa-cs__item--done .webifa-cs__icon {
	background: color-mix(in srgb, var(--webifa-cs-success) 16%, #fff);
	color: var(--webifa-cs-success);
	border-color: color-mix(in srgb, var(--webifa-cs-success) 35%, transparent);
}
.webifa-cs__item--done .webifa-cs__label {
	color: var(--webifa-cs-text);
}
.webifa-cs__item--current .webifa-cs__icon {
	background: var(--webifa-cs-accent);
	color: #fff;
	border-color: var(--webifa-cs-accent);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--webifa-cs-accent) 35%, transparent);
	transform: scale(1.06);
}
.webifa-cs__item--current .webifa-cs__label {
	color: var(--webifa-cs-accent);
	font-weight: 700;
}
.webifa-cs__pulse {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 16px;
	background: color-mix(in srgb, var(--webifa-cs-accent) 35%, transparent);
	animation: webifa-cs-pulse 1.8s ease-out infinite;
	pointer-events: none;
}
.webifa-cs--no-animation .webifa-cs__pulse {
	display: none;
}
.webifa-cs--no-animation .webifa-cs__item--current .webifa-cs__icon {
	transform: none;
}
.webifa-cs__item--next .webifa-cs__icon {
	background: var(--webifa-cs-accent-soft);
	color: var(--webifa-cs-accent-muted);
	border-color: var(--webifa-cs-accent-border);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--webifa-cs-accent) 10%, transparent);
}
.webifa-cs__item--next .webifa-cs__label {
	color: var(--webifa-cs-accent-muted);
	font-weight: 600;
}
@keyframes webifa-cs-line-flow {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: 0% 0;
	}
}
@keyframes webifa-cs-pulse {
	0% {
		transform: scale(0.92);
		opacity: 0.55;
	}
	70% {
		transform: scale(1.35);
		opacity: 0;
	}
	100% {
		transform: scale(1.35);
		opacity: 0;
	}
}
@media (max-width: 640px) {
	.webifa-cs__list {
		gap: 6px;
	}
	.webifa-cs__item[data-step="1"],
	.webifa-cs__item[data-step="1"] + .webifa-cs__connector {
		display: none;
	}
	.webifa-cs__item {
		min-width: 0;
		flex: 0 1 auto;
	}
	.webifa-cs__node {
		width: 38px;
		height: 38px;
	}
	.webifa-cs__icon {
		width: 34px;
		height: 34px;
		border-radius: 10px;
	}
	.webifa-cs__icon svg {
		width: 16px;
		height: 16px;
	}
	.webifa-cs__label {
		font-size: 0.625rem;
		margin-top: 6px;
	}
	.webifa-cs__connector {
		min-width: 12px;
		height: 3px;
		margin-top: 17px;
	}
	.webifa-cs__pulse {
		border-radius: 12px;
	}
	.webifa-cs__item--current .webifa-cs__icon {
		transform: scale(1.04);
		box-shadow: 0 4px 12px color-mix(in srgb, var(--webifa-cs-accent) 30%, transparent);
	}
	.webifa-cs__item--next .webifa-cs__icon {
		box-shadow: 0 0 0 2px color-mix(in srgb, var(--webifa-cs-accent) 10%, transparent);
	}
}
@media (prefers-reduced-motion: reduce) {
	.webifa-cs__connector--active .webifa-cs__connector-fill,
	.webifa-cs__pulse {
		animation: none;
	}
}
