/**
 * Checkout Steps Styles
 *
 * @package WoodMart Child
 */

/* Ukryj stary pasek kroków Woodmart i cały page-title */
.wd-checkout-steps {
	display: none !important;
}

.woocommerce-cart .wd-page-title,
.woocommerce-checkout .wd-page-title,
.woocommerce-order-received .wd-page-title {
	display: none !important;
}

.custom-checkout-steps-wrapper {
	background-color: #f9f9f9;
	padding: 15px 0;
	border-bottom: 1px solid #e5e5e5;
}

.custom-checkout-steps {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 80px;
}

.checkout-step {
	position: relative;
	text-align: center;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.checkout-step a,
.checkout-step .step-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	transition: all 0.3s ease;
}

.checkout-step .step-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	margin-bottom: 8px;
	transition: all 0.3s ease;
}

.checkout-step.step-completed .step-icon {
	margin-bottom: 0 !important;
}

.checkout-step.step-active .step-icon {
	margin-bottom: 0 !important;
}

.checkout-step.step-inactive .step-icon {
	margin-bottom: 0 !important;
}

.checkout-step .step-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: all 0.3s ease;
}

.checkout-step .step-name {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

/* Stan: Nieaktywny (szary) */
.checkout-step.step-inactive .step-icon img {
	filter: grayscale(100%) opacity(0.3);
}

.checkout-step.step-inactive .step-name {
	color: #999999;
	font-weight: 400;
}

/* Stan: Aktywny (zielony tekst, czarna ikonka) */
.checkout-step.step-active .step-icon img {
	filter: none;
}

.checkout-step.step-active .step-name {
	color: #83b735;
	font-weight: 700;
}

/* Stan: Zakończony (czarna ikonka, czarny tekst) */
.checkout-step.step-completed .step-icon img {
	filter: none;
}

.checkout-step.step-completed .step-name {
	color: #000000;
	font-weight: 600;
}

/* Hover dla zakończonych kroków z linkiem */
.checkout-step.step-completed a:hover .step-icon img {
	opacity: 1;
}

.checkout-step.step-completed a:hover .step-name {
	color: #333333;
}

/* Separator/linia między krokami */
.checkout-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 40px;
	left: calc(100% + 20px);
	width: 40px;
	height: 2px;
	background-color: #e0e0e0;
}

.checkout-step.step-completed:not(:last-child)::after {
	background-color: #83b735;
}

/* Responsywność - tablet */
@media (max-width: 992px) {
	.custom-checkout-steps {
		gap: 25px;
	}

	.checkout-step:not(:last-child)::after {
		font-size: 18px;
		left: calc(100% + 12px);
	}

	.checkout-step .step-icon {
		width: 70px;
		height: 70px;
	}

	.checkout-step .step-name {
		font-size: 13px;
	}
}

/* Responsywność - mobile */
@media (max-width: 576px) {
	.custom-checkout-steps-wrapper {
		padding: 7px 0;
	}

	.custom-checkout-steps {
		gap: 30px;
	}

	.checkout-step:not(:last-child)::after {
		width: 30px;
		height: 1px;
		top: 32px;
		left: calc(100% + 15px);
	}

	.checkout-step .step-icon {
		width: 65px;
		height: 65px;
	}

	.checkout-step .step-name {
		font-size: 10px;
		letter-spacing: 0.3px;
	}
}
