.shi-shipment-tracking {
	margin: 1.5em 0;
}

.shi-shipment-tracking__heading {
	margin: 0 0 0.75em;
	font-size: 1.2em;
}

.shi-shipment-tracking__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shi-shipment-tracking__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #e4e4e7;
}

.shi-shipment-tracking__item:last-child {
	border-bottom: 0;
}

.shi-shipment-tracking__row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.shi-shipment-tracking__logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 6px;
	background: #f4f4f5;
	flex-shrink: 0;
}

.shi-shipment-tracking__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.shi-shipment-tracking__number,
.shi-shipment-tracking__date {
	font-size: 0.9em;
	opacity: 0.8;
}

.shi-shipment-tracking__button {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 8px;
	background: #111111;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	flex-shrink: 0;
}

.shi-shipment-tracking__button:hover,
.shi-shipment-tracking__button:focus-visible {
	color: #ffffff;
	filter: brightness(1.08);
}

@media (max-width: 600px) {
	.shi-shipment-tracking__item {
		flex-direction: column;
		align-items: stretch;
	}
}

.shi-st-inhouse-wrap {
	padding: 5rem 0;
}

.shi-st-inhouse {
	max-width: 28rem;
	margin: 0 auto;
	padding: 2rem 1.75rem 1.75rem;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	background: #ffffff;
}

.shi-st-inhouse__title {
	margin: 0 0 1.5rem;
	font-size: 1.35rem;
}

.shi-st-timeline {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shi-st-timeline__step {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr);
	column-gap: 1rem;
	position: relative;
}

.shi-st-timeline__step:not(:last-child) {
	padding-bottom: 1.75rem;
}

.shi-st-timeline__step:not(:last-child)::before {
	content: "" / "";
	position: absolute;
	left: 0.875rem;
	top: 1.75rem;
	bottom: 0;
	width: 2px;
	background: #d1d5db;
	transform: translateX(-50%);
}

.shi-st-timeline__marker {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	background: #ffffff;
	display: grid;
	place-items: center;
	color: #ffffff;
	z-index: 1;
}

.shi-st-timeline__step.is-done .shi-st-timeline__marker,
.shi-st-timeline__step.is-current.is-done .shi-st-timeline__marker {
	border-color: #22c55e;
	background: #22c55e;
}

.shi-st-timeline__step.is-current:not(.is-done) .shi-st-timeline__marker {
	border-color: #22c55e;
}

.shi-st-timeline__check {
	display: block;
}

.shi-st-timeline__label {
	display: block;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.95rem;
	line-height: 1.3;
	color: #111111;
}

.shi-st-timeline__step.is-pending .shi-st-timeline__label {
	color: #9ca3af;
}

.shi-st-timeline__when {
	display: block;
	margin-top: 0.2rem;
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.35;
}

.shi-st-timeline__driver {
	margin-top: 0.35rem;
}

.shi-st-timeline__driver .shi-st-inhouse__driver,
.shi-st-timeline__driver .shi-st-inhouse__message {
	margin: 0;
	color: #52525b;
	font-size: 0.95rem;
	line-height: 1.4;
}

.shi-st-timeline__driver .shi-st-inhouse__message {
	margin-bottom: 0.25rem;
}

/* nl2br already emits <br>; a stored blank line would otherwise add a second gap. */
.shi-st-timeline__driver .shi-st-inhouse__message br + br {
	display: none;
}
