/*
 * Bestellstatus im Kundenkonto, woogency 13.11.2026.
 * Fortschrittsbalken mit Stationen und die verlinkte Sendungsnummer.
 */

.fw-fortschritt {
	--fw-ton: #007fa3;
	--fw-grau: #c9ced2;
	/* Schmaler wird es nicht lesbar: dann brechen die Namen mitten im Wort */
	min-width: 210px;
	text-align: left;
}

.fw-fortschritt-stationen {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin: 0 0 0.4em;
	padding: 0;
	list-style: none;
}

/* Die Linie laeuft von der Mitte der ersten bis zur Mitte der letzten Station,
   deshalb links und rechts je ein Sechstel Abstand bei drei Stationen. */
.fw-fortschritt-stationen::before,
.fw-fortschritt-stationen::after {
	content: "";
	position: absolute;
	top: 13px;
	left: 16.666%;
	right: 16.666%;
	height: 2px;
	background: var(--fw-grau);
}

.fw-fortschritt-stationen::after {
	right: auto;
	width: calc( ( 100% - 33.333% ) * var(--fw-anteil, 0%) / 100% );
	background: var(--fw-ton);
}

.fw-fortschritt-station {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	margin: 0;
	padding: 0;
}

.fw-fortschritt-station::before {
	content: none; /* Astra setzt bei Listen sonst eigene Zaehler */
}

.fw-fortschritt-punkt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0 auto 4px;
	border: 2px solid var(--fw-grau);
	border-radius: 50%;
	background: #ffffff;
	color: var(--fw-grau);
}

.fw-fortschritt-punkt svg {
	width: 14px;
	height: 14px;
	display: block;
}

.fw-fortschritt-station.ist-fertig .fw-fortschritt-punkt {
	border-color: var(--fw-ton);
	background: var(--fw-ton);
	color: #ffffff;
}

.fw-fortschritt-name {
	display: block;
	font-size: 11px;
	line-height: 1.25;
	color: #63666a;
	padding: 0 2px;
	hyphens: auto;
}

.fw-fortschritt-station.ist-fertig .fw-fortschritt-name {
	color: #222222;
	font-weight: 600;
}

.fw-sendung {
	margin: 0.5em 0 0;
	font-size: 12px;
	line-height: 1.35;
}

.fw-sendung a {
	font-weight: 600;
	word-break: break-all;
}

.fw-sendung-dienst {
	display: block;
	color: #63666a;
}

/* In der Bestellliste wird die Statusspalte sonst mittig gesetzt */
.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status {
	text-align: left;
}
