.fc-seg-track {
	max-width: 900px;
	margin: 0 auto;
	font-size: 16px;
}

.fc-seg-track__title {
	margin: 0 0 0.5em;
}

.fc-seg-eta {
	margin: 0 0 1.5em;
	padding: 12px 16px;
	background: #f4f6fb;
	border-radius: 6px;
}

.fc-seg-eta p {
	margin: 0 0 0.25em;
}

.fc-seg-eta__delivered {
	color: #2e7d32;
	font-weight: 600;
}

.fc-seg-incident {
	margin: 0 0 1.5em;
	padding: 12px 16px;
	background: #fdecea;
	border-radius: 6px;
	color: #b32d2e;
}

.fc-seg-incident__label {
	font-weight: 600;
}

/* Línea de tiempo — horizontal por defecto (desktop). */
.fc-seg-milestones {
	list-style: none;
	margin: 1.5em 0;
	padding: 0;
	display: flex;
}

.fc-seg-milestone {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: #9a9a9a;
}

.fc-seg-milestone__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #d5d5d5;
	margin-bottom: 8px;
	position: relative;
	z-index: 1;
}

.fc-seg-milestone:not( :last-child )::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 50%;
	width: 100%;
	height: 2px;
	background: #e0e0e0;
	z-index: 0;
}

.fc-seg-milestone.is-done {
	color: #222;
}

.fc-seg-milestone.is-done .fc-seg-milestone__dot {
	background: #2e7d32;
}

.fc-seg-milestone.is-done:not( :last-child )::before {
	background: #2e7d32;
}

.fc-seg-milestone__label {
	font-weight: 600;
	font-size: 0.95em;
}

.fc-seg-milestone__date {
	color: #777;
	font-size: 0.85em;
}

/* Móvil — vertical. */
@media ( max-width: 600px ) {
	.fc-seg-milestones {
		flex-direction: column;
	}

	.fc-seg-milestone {
		flex-direction: row;
		align-items: center;
		text-align: left;
		gap: 0.75em;
		padding: 0.55em 0 0.55em 28px;
	}

	.fc-seg-milestone__dot {
		position: absolute;
		left: 4px;
		margin: 0;
	}

	.fc-seg-milestone:not( :last-child )::before {
		top: 1.7em;
		bottom: -0.55em;
		left: 10px;
		width: 2px;
		height: auto;
	}

	.fc-seg-milestone__label {
		flex: 1;
	}
}

.fc-seg-history {
	margin: 1em 0;
}

.fc-seg-history summary {
	cursor: pointer;
	color: #555;
}

.fc-seg-events {
	list-style: none;
	margin: 1em 0 0;
	padding: 0;
	border-top: 1px solid #eee;
	/* Rejilla de 2 columnas: la fecha se ajusta a la más larga y TODAS las filas
	   comparten ese ancho, así el texto siempre arranca alineado. */
	display: grid;
	grid-template-columns: max-content 1fr;
}

.fc-seg-event {
	display: contents;
}

.fc-seg-event__date,
.fc-seg-event__text {
	padding: 0.5em 0;
	border-bottom: 1px solid #eee;
}

.fc-seg-event__date {
	color: #888;
	white-space: nowrap;
	padding-right: 1.25em;
}

/* Gestión del cliente (p. ej. reprogramación de entrega): se resalta. */
.fc-seg-event.is-highlight .fc-seg-event__date,
.fc-seg-event.is-highlight .fc-seg-event__text {
	color: #1a7f37;
	font-weight: 600;
}

@media (max-width: 480px) {
	/* En móvil se apila: fecha encima del texto, una línea por evento. */
	.fc-seg-events {
		grid-template-columns: 1fr;
	}

	.fc-seg-event__date {
		padding: 0.5em 0 0;
		border-bottom: 0;
	}

	.fc-seg-event__text {
		padding-top: 0.1em;
	}
}

.fc-seg-notfound {
	text-align: center;
	color: #888;
}

/* Formulario "consultar pedido" (nº + email). */
.fc-seg-lookup {
	max-width: 440px;
	margin: 1.5em auto;
	padding: 1.75em;
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
}

.fc-seg-lookup__intro {
	margin: 0 0 1.4em;
	color: #555;
	line-height: 1.5;
}

.fc-seg-lookup__error {
	margin: 0 0 1.25em;
	padding: 0.7em 0.85em;
	border-radius: 6px;
	background: #fdecec;
	border: 1px solid #f5c6c6;
	color: #a12121;
	font-size: 0.95em;
}

.fc-seg-lookup__field {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	margin: 0 0 1.1em;
}

.fc-seg-lookup__field label {
	font-weight: 600;
	font-size: 0.9em;
	color: #333;
}

.fc-seg-lookup__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7em 0.8em;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	font-size: 1em;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fc-seg-lookup__field input:focus {
	outline: none;
	border-color: #111;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.fc-seg-lookup__submit {
	margin: 1.4em 0 0;
}

.fc-seg-lookup__submit button {
	width: 100%;
	padding: 0.8em 1em;
	border: 0;
	border-radius: 6px;
	background: #111;
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.fc-seg-lookup__submit button:hover,
.fc-seg-lookup__submit button:focus {
	background: #333;
}
