/* order track */

.order-track-form-group {
	position: relative;
	display: flex;
	gap: 16px;
}

.order-track-form-group input {
	height: 50px;
	border-radius: 5px;
	padding: 0 20px;
	background: transparent;
	border: 1px solid hsl(var(--border));
}

.order-track-form-group button {
	height: 50px;
	background: hsl(var(--base));
	color: hsl(var(--white));
	border-radius: 5px;
	padding: 0 20px;
	flex-shrink: 0;
	font-weight: 500;
}

@media screen and (max-width: 575px) {

	.order-track-form-group{
		gap: 12px;
	}

	.order-track-form-group input,
	.order-track-form-group button{
		height: 42px;
		padding-inline: 16px;
	}
}

.order-track-item {
	width: 25%;
	padding: 0 15px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	--circle-wh: 80px;
}

/* ── Upcoming (default) ── */
.order-track-item .thumb {
	z-index: 1;
	width: var(--circle-wh);
	height: var(--circle-wh);
	background: hsl(var(--border));
	border-radius: 50%;
	position: relative;
	margin: 0 auto 10px;
	display: grid;
	place-content: center;
	transition: background 0.35s ease;
}

.order-track-item .thumb::before {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: hsl(var(--white));
	transition: all ease 0.3s;
}

.order-track-item .thumb i {
	position: relative;
	font-size: 2rem;
	color: hsl(var(--border));
	transition: color 0.35s ease;
}

.order-track-item .title {
	font-weight: 500;
	color: hsl(var(--body-color) / .45);
	transition: color 0.35s ease;
}

/* ── Completed (active) ── solid green, white icon, checkmark badge */
.order-track-item.active .thumb {
	background: hsl(var(--success));
}

.order-track-item.active .thumb::before {
	background: hsl(var(--success));
}

.order-track-item.active .thumb i {
	color: hsl(var(--white));
}

.order-track-item.active .title {
	color: hsl(var(--success));
}

/* tiny ✓ badge on completed steps */
.order-track-item.active:not(.current) .thumb::after {
	content: '';
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: calc(var(--circle-wh) * 0.34);
	height: calc(var(--circle-wh) * 0.34);
	background: hsl(var(--success)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat;
	border-radius: 50%;
	border: 2px solid hsl(var(--white));
	z-index: 2;
}

/* ── Current (last active step) ── primary ring, pulsing glow */
.order-track-item.current .thumb {
	background: hsl(var(--base));
	box-shadow: 0 0 0 5px hsl(var(--base) / .18);
	animation: track-pulse 1.8s ease-in-out infinite;
}

.order-track-item.current .thumb::before {
	background: hsl(var(--white));
}

.order-track-item.current .thumb i {
	color: hsl(var(--base));
}

.order-track-item.current .title {
	color: hsl(var(--base));
	font-weight: 700;
}

/* "Current" badge below title */
.order-track-item.current .current-badge {
	display: inline-block;
	margin-top: 4px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: hsl(var(--base));
	color: hsl(var(--white));
	border-radius: 20px;
	padding: 1px 8px;
}

.order-track-item:not(.current) .current-badge {
	display: none;
}

@keyframes track-pulse {
	0%, 100% { box-shadow: 0 0 0 4px hsl(var(--base) / .20); }
	50%       { box-shadow: 0 0 0 9px hsl(var(--base) / .08); }
}

/* ── Connector lines ── */
.order-track-item::after {
	position: absolute;
	content: '';
	left: 0;
	top: calc(var(--circle-wh) / 2);
	transform: translateX(-50%);
	width: 100%;
	border-top: 2px dashed hsl(var(--border));
	transition: border-color 0.35s ease;
}

.order-track-item.active::after {
	border-color: hsl(var(--success));
	border-style: solid;
}

.order-track-item.current::after {
	border-color: hsl(var(--success));
	border-style: solid;
}

.order-track-item:first-child::after {
	display: none;
}

@media (max-width: 1199px) {
	.order-track-item {
		--circle-wh: 60px;
	}

	.order-track-item .thumb i {
		font-size: 1.5rem;
	}
}

@media (max-width: 767px) {
	.order-track-item .title {
		font-size: 0.82rem;
	}

	.order-track-item {
		padding: 0;
		--circle-wh: 48px;
	}

	.order-track-item .thumb i {
		font-size: 1.125rem;
	}

	.order-track-item .thumb::before {
		inset: 2px;
	}

	.order-track-item::after {
		border-top: 1px dashed hsl(var(--black) / .2);
	}
}

@media (max-width: 424px) {
	.order-track-item {
		--circle-wh: 36px;
	}

	.order-track-item .title {
		font-size: 0.75rem;
		font-weight: 400;
	}
}

/* order track */