/**
 * Shared checkout flow progress (cart, single product, etc.)
 */

.cart-progress {
	--cart-primary: var(--bs-primary, #e66e00);
	--cart-primary-rgb: var(--bs-primary-rgb, 230, 110, 0);
	--cart-muted: #8e8e93;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.35rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	position: relative;
}

.cart-progress::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	top: 1.15rem;
	height: 2px;
	background: #e5e5e7;
	z-index: 0;
}

.cart-progress__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
	min-width: 0;
}

.cart-progress__icon {
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid #e5e5e7;
	color: var(--cart-muted);
	font-size: 1rem;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cart-progress__label {
	margin-top: 0.4rem;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--cart-muted);
	line-height: 1.2;
}

.cart-progress__item.is-complete .cart-progress__icon {
	border-color: var(--cart-primary);
	background: var(--cart-primary);
	color: #fff;
	box-shadow: none;
}

.cart-progress__item.is-complete .cart-progress__label {
	color: var(--cart-primary);
}

.cart-progress__item.is-active .cart-progress__icon {
	border-color: var(--cart-primary);
	background: #fff;
	color: var(--cart-primary);
	box-shadow: 0 0 0 3px rgba(var(--cart-primary-rgb), 0.18);
}

.cart-progress__item.is-active .cart-progress__label {
	color: var(--cart-primary);
}

@media (max-width: 575.98px) {
	.cart-progress__label {
		font-size: 0.625rem;
	}

	.cart-progress__icon {
		width: 2rem;
		height: 2rem;
		font-size: 0.875rem;
	}
}

/* WooCommerce single product — same bar as style flow pages */
body.store-product-page .store-pdp-checkout-progress {
	width: 100%;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

body.store-product-page .store-pdp-checkout-progress .cart-progress {
	margin-bottom: 0;
}
