/* WooCommerce UI Components - Loading States, Progress Steps, Overlays, and Utilities */

/* BlockUi Loading */
.blockUI.blockOverlay {
	display: flex;
	align-items: center;
	justify-content: center;
}

.blockUI.blockOverlay::before {
	content: "";
	position: absolute;
	width: 2.0833333333rem;
	height: 2.0833333333rem;
	border: 4px solid var(--color-gray-f1);
	border-top: 4px solid var(--color-primary);
	animation: spinCustom 0.4s linear infinite;
	border-radius: 50%;
	margin-bottom: 0;
}

/* Loading Fixed */
.loading-fixed {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.5);
	z-index: 1005;
}

.loading-fixed .loader {
	width: 60px;
	height: 60px;
	display: block;
	margin: 15px auto;
	position: relative;
	color: #fff;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
}

.loading-fixed .loader::after,
.loading-fixed .loader::before {
	content: '';
	box-sizing: border-box;
	position: absolute;
	width: 30px;
	height: 30px;
	top: 50%;
	left: 50%;
	transform: scale(0.5) translate(0, 0);
	background-color: #000;
	border-radius: 50%;
	animation: animloader 1s infinite ease-in-out;
}

.loading-fixed .loader::before {
	background-color: var(--color-primary);
	transform: scale(0.5) translate(-60px, -60px);
}

/* Loading Bar */
.loading-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 4px;
	background-color: var(--color-primary);
	width: 0;
	transition: 0.3s all ease-in-out;
}

/* Progress Steps */
.wrap-progress-steps {
	max-width: 600px;
	margin: 0 auto;
}

@media (max-width: 575.98px) {
	.wrap-progress-steps {
		max-width: 62%;
	}

	.wrap-progress-steps .step .label {
		font-size: 14px;
	}
}

.wrap-progress-steps .progress-steps {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	margin-bottom: 3.0833333333rem;
}

.wrap-progress-steps .step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
}

.wrap-progress-steps .circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #e0e0e0;
	color: #666666;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	font-weight: bold;
	border: 2px solid #e0e0e0;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	position: relative;
	z-index: 2;
}

.wrap-progress-steps .label {
	font-size: 0.9895833333rem;
	color: #777;
	margin-top: 0.5208333333rem;
	font-weight: 500;
	white-space: nowrap;
	position: absolute;
	top: 100%;
}

.wrap-progress-steps .connector {
	flex-grow: 1;
	height: 2px;
	background-color: #e0e0e0;
	position: relative;
	top: 17px;
	z-index: 0;
	transition: background-color 0.3s ease;
	min-width: 20px;
}

.wrap-progress-steps .step:not(.active):not(.completed) .circle {
	background-color: white;
	border: 2px solid white;
	color: var(--color-primary);
}

.wrap-progress-steps .step:not(.active):not(.completed) .label {
	color: #777;
}

.wrap-progress-steps .step.completed .circle {
	background-color: white;
	border-color: white;
	color: var(--color-primary);
}

.wrap-progress-steps .step.completed .label {
	color: #fff;
}

.wrap-progress-steps .step.active .circle {
	background-color: transparent;
	border-color: white;
	color: white;
}

.wrap-progress-steps .step.active .label {
	color: white;
	font-weight: bold;
}

.wrap-progress-steps .step.active~.step .circle {
	background-color: white;
	border: 2px solid white;
	color: white;
}

.wrap-progress-steps .step.active~.step .label {
	color: #777;
}

.wrap-progress-steps .step.completed+.connector {
	background-color: white;
}

/* Animations */
@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes animloader {
	50% {
		transform: scale(1) translate(-50%, -50%);
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}