/**
 * Mimus Configurator — production progress rail.
 *
 * Light-mode only by house rule: one explicit palette, and every block that
 * sets a background also sets a colour, so a client forcing a dark ground
 * cannot produce unreadable text.
 *
 * No class here is named ux-*. Flatsome installs delegated handlers across
 * those, and this renders inside its own page furniture.
 *
 * Never text-transform: uppercase on a label — CSS maps i to I, not to İ, so a
 * Turkish stage name would be shown wrong.
 *
 * Mobile-first: the rail is a vertical list by default and only becomes a
 * horizontal row where there is width for it. Connectors are pseudo-elements
 * rather than absolutely positioned bars, which is what keeps them correct when
 * a long label wraps.
 */

.mimus-track {
	margin: 0 0 2em;
	padding: 1.25em 1.25em 1em;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #ffffff;
	color: #23282d;
}

.mimus-track__title {
	margin: 0 0 0.75em;
	color: #23282d;
	font-size: 1.05em;
	line-height: 1.3;
}

.mimus-track__notice {
	margin: 0 0 1em;
	color: #646970;
	font-size: 0.9em;
	line-height: 1.5;
}

.mimus-track__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.mimus-track__step {
	position: relative;
	margin: 0;
	padding: 0 0 1.1em 1.75em;
	background: transparent;
	color: #646970;
	line-height: 1.45;
}

/* The dot. */
.mimus-track__step::before {
	content: "";
	position: absolute;
	top: 0.28em;
	left: 0;
	width: 0.7em;
	height: 0.7em;
	box-sizing: border-box;
	border: 2px solid #c3c4c7;
	border-radius: 50%;
	background: #ffffff;
}

/* The connector to the next step. */
.mimus-track__step::after {
	content: "";
	position: absolute;
	top: 1.15em;
	left: 0.32em;
	width: 2px;
	height: calc(100% - 1.15em);
	background: #dcdcde;
}

.mimus-track__step:last-child::after {
	display: none;
}

.mimus-track__step[data-state="done"] {
	color: #3c434a;
}

.mimus-track__step[data-state="done"]::before {
	border-color: #4a7c59;
	background: #4a7c59;
}

.mimus-track__step[data-state="done"]::after {
	background: #4a7c59;
}

.mimus-track__step[data-state="current"] {
	color: #23282d;
}

.mimus-track__step[data-state="current"]::before {
	border-color: #4a7c59;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.18);
}

.mimus-track__label {
	display: block;
	color: inherit;
	font-weight: 600;
}

.mimus-track__step[data-state="todo"] .mimus-track__label {
	font-weight: 400;
}

.mimus-track__at {
	display: block;
	margin-top: 0.1em;
	color: #646970;
	font-size: 0.85em;
}

.mimus-track__note {
	display: block;
	margin-top: 0.4em;
	padding: 0.5em 0.7em;
	border-left: 3px solid #4a7c59;
	background: #f6f7f7;
	color: #3c434a;
	font-size: 0.9em;
}

@media (min-width: 600px) {

	.mimus-track__list {
		display: flex;
		flex-wrap: wrap;
		gap: 0;
	}

	.mimus-track__step {
		flex: 1 1 0;
		min-width: 8em;
		padding: 1.6em 0.75em 0 0;
	}

	.mimus-track__step::before {
		top: 0.3em;
		left: 0;
	}

	.mimus-track__step::after {
		top: 0.6em;
		left: 0.9em;
		width: calc(100% - 1.6em);
		height: 2px;
	}

	.mimus-track__note {
		/* A note is prose; it reads badly in a narrow rail column, so it drops
		   out of the row and spans the full width underneath. */
		position: static;
	}
}

/*
 * The signed tracking link's own page (Production\Track_Link, 1.31.0): the rail
 * in the theme's page column, under the order number and nothing else.
 */
.mimus-track-page {
	padding: 2em 0 3em;
	background: #ffffff;
	color: #23282d;
}

.mimus-track-page__title {
	margin: 0 0 0.35em;
	color: #23282d;
	font-size: 1.5em;
	line-height: 1.25;
}

.mimus-track-page__lead {
	margin: 0 0 1.5em;
	color: #50575e;
	line-height: 1.5;
}
