/* Checkout Steps — Cart → Information → Shipping → Payment on the ink band
   (design.md §Cart & checkout). Desktop/mobile switch at 1099px, like the
   rest of the store design. */

.tt-checkout-steps {
	padding: 24px calc(50px + var(--tt-bleed));
	background: var(--wp--preset--color--ink, #141412);
	color: #fff;
}

.tt-checkout-steps__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.tt-checkout-steps__list {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

.tt-checkout-steps__step {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
}

/* 40 × 1 connector before every step but the first. */
.tt-checkout-steps__step + .tt-checkout-steps__step::before {
	content: "";
	flex: 0 0 40px;
	height: 1px;
	background: #4e4e4a;
}

.tt-checkout-steps__label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
	text-decoration: none !important;
	transition: color 0.25s ease;
}

a.tt-checkout-steps__label:hover {
	color: #fff !important;
}

/* The number square: outlined (to do), red (current), #30302e + ✓ (done). */
.tt-checkout-steps__num {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--grey, #73736f);
	font-size: 12px;
	letter-spacing: 0;
	color: #fff;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.tt-checkout-steps__num::before {
	content: attr(data-n);
}

.tt-checkout-steps__step--active .tt-checkout-steps__label {
	color: #fff !important;
}

.tt-checkout-steps__step--active .tt-checkout-steps__num {
	background: var(--wp--preset--color--red, #cf2026);
	box-shadow: none;
}

.tt-checkout-steps__step--done .tt-checkout-steps__num {
	background: #30302e;
	box-shadow: none;
}

.tt-checkout-steps__step--done .tt-checkout-steps__num::before {
	content: "✓";
}

.tt-checkout-steps__name--short {
	display: none;
}

.tt-checkout-steps__back {
	flex-shrink: 0;
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 1099px) {
	.tt-checkout-steps {
		padding: 0;
	}

	.tt-checkout-steps__inner {
		display: block;
	}

	/* One scrolling row (it fits at 375+, scrolls on anything narrower). */
	.tt-checkout-steps__list {
		gap: 12px;
		padding: 14px 16px;
		overflow-x: auto;
		scrollbar-width: none;
		font-size: 12px;
		letter-spacing: 0.6px;
		white-space: nowrap;
	}

	.tt-checkout-steps__list::-webkit-scrollbar {
		display: none;
	}

	.tt-checkout-steps__step {
		flex-shrink: 0;
		gap: 12px;
	}

	.tt-checkout-steps__step + .tt-checkout-steps__step::before {
		flex-basis: 16px;
	}

	.tt-checkout-steps__label {
		gap: 8px;
	}

	.tt-checkout-steps__num {
		flex-basis: 22px;
		width: 22px;
		height: 22px;
		font-size: 11px;
	}

	/* Visually hidden, not display:none — the short label is aria-hidden, so
	   screen readers still read the full one. */
	.tt-checkout-steps__name--full {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.tt-checkout-steps__name--short {
		display: inline;
	}

	/* Mobile moves "Keep shopping" into the cart head; checkout has none. */
	.tt-checkout-steps__back {
		display: none;
	}
}
