/* Landera Delivery Timeline styling; freshness alerts are admin-only in v0.1.8. */
.ldt-wrap {
	clear: both;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 14px 0 10px;
}

.ldt-wrap *,
.ldt-wrap *::before,
.ldt-wrap *::after {
	box-sizing: border-box;
}

.ldt-title {
	margin: 0 0 12px;
	grid-column: 1 / -1;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

.ldt-preorder-message {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	background: #f7f7f7;
	color: #1d1d1f;
	font-size: 14px;
	line-height: 1.4;
	--ldt-ink: #1d1d1f;
	--ldt-icon-bg: #ffffff;
}

/* Pre-order notice: icon circle and red text centred together on one row. */
.ldt-preorder-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
}

.ldt-preorder-row .ldt-icon {
	flex: none;
	margin: 0;
}

.ldt-preorder-copy {
	color: #b42318;
	font-weight: 700;
	white-space: pre-line;
}

.ldt-timeline {
	--ldt-ink: #1d1d1f;
	--ldt-muted: #6f7275;
	--ldt-line: #d4d6d8;
	--ldt-panel: #f7f7f7;
	--ldt-icon-bg: #ffffff;
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	width: 100%;
	min-width: 0;
	padding: 15px 8px 12px;
	border-radius: 8px;
	background: var(--ldt-panel);
	color: var(--ldt-ink);
	font-size: 14px;
	line-height: 1.25;
	overflow: hidden;
}

.ldt-timeline.ldt-no-phone {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ldt-line {
	position: absolute;
	top: 73px;
	left: 12.5%;
	right: 12.5%;
	height: 1px;
	background: var(--ldt-line);
	z-index: 0;
}

.ldt-no-phone .ldt-line {
	left: 16.666%;
	right: 16.666%;
}

.ldt-stage {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ldt-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 8px;
	border: 1px solid #d8dadd;
	border-radius: 50%;
	background: var(--ldt-icon-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
	color: var(--ldt-ink);
}

.ldt-icon svg {
	display: block;
	width: 38px;
	height: 38px;
	fill: none;
	stroke: currentColor;
	stroke-width: 0.91;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* House + truck icon: drawn larger than the others; its parts are scaled, so the line width is fixed in pixels to match. */
.ldt-icon svg.ldt-combo {
	width: 48px;
	height: 48px;
	stroke-width: 1.4px;
}

.ldt-combo * {
	vector-effect: non-scaling-stroke;
}

/* Hides the house wall behind the parked truck. */
.ldt-icon .ldt-mask {
	fill: var(--ldt-icon-bg);
	stroke: none;
}

.ldt-stage-phone .ldt-icon {
	width: 36px;
	height: 36px;
	margin-top: 11px;
	margin-bottom: 19px;
	border: 0;
	border-radius: 0;
	box-shadow: 0 0 0 5px var(--ldt-panel);
	background: var(--ldt-panel);
	color: var(--ldt-muted);
}

.ldt-stage-phone .ldt-icon svg {
	width: 27px;
	height: 27px;
	stroke-width: 1.06;
}

.ldt-label {
	display: block;
	max-width: 100%;
	padding: 0 3px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.ldt-stage-phone .ldt-label {
	color: var(--ldt-muted);
	font-size: 12px;
	font-weight: 600;
}

.ldt-date {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
}

/* Arrival ranges may wrap at the dash on narrow screens; each date stays whole. */
.ldt-stage-arrive .ldt-date {
	white-space: normal;
}

/* Christmas cut-off strip (v0.1.26): joined to the bottom of the timeline panel. */
.ldt-timeline.ldt-has-xmas {
	border-radius: 8px 8px 0 0;
}

/* v0.1.29: one row per cut-off (guaranteed delivery, dispatch), left-aligned in a centred column. */
.ldt-xmas {
	display: grid;
	justify-content: center;
	row-gap: 6px;
	padding: 9px 14px 11px;
	border-top: 1px solid #e3e3e3;
	border-radius: 0 0 8px 8px;
	background: #f7f7f7;
	color: #1d1d1f;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
}

.ldt-xmas-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ldt-xmas-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	line-height: 0;
}

.ldt-xmas-icon svg {
	width: 26px;
	height: 31px;
}

.ldt-xmas-icon svg.ldt-xmas-truck {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: #1f7a3a;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ldt-xmas-truck .ldt-mask {
	fill: #f7f7f7;
	stroke: none;
}

.ldt-xmas-note {
	max-width: 520px;
	margin: 2px 0 0 40px;
	color: #6f7275;
	font-size: 12.5px;
	line-height: 1.35;
}

.ldt-xmas strong {
	color: #c8102e;
	font-weight: 700;
	white-space: nowrap;
}

/* Hover lift on the icon circles: mouse devices only, and off when the visitor prefers reduced motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.ldt-stage:not(.ldt-stage-phone) .ldt-icon,
	.ldt-preorder-row .ldt-icon {
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	.ldt-stage:not(.ldt-stage-phone):hover .ldt-icon,
	.ldt-preorder-row:hover .ldt-icon {
		transform: translateY(-3px);
		box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
	}
}

@media (max-width: 420px) {
	.ldt-timeline {
		padding-right: 4px;
		padding-left: 4px;
	}

	.ldt-icon {
		width: 53px;
		height: 53px;
	}

	.ldt-icon svg {
		width: 35px;
		height: 35px;
	}

	.ldt-icon svg.ldt-combo {
		width: 44px;
		height: 44px;
	}

	.ldt-stage-phone .ldt-icon {
		margin-top: 8px;
		margin-bottom: 17px;
	}

	.ldt-line {
		top: 70px;
	}

	.ldt-label {
		padding: 0 2px;
		font-size: 11.5px;
	}

	.ldt-stage-phone .ldt-label,
	.ldt-date {
		font-size: 11px;
	}

	.ldt-xmas {
		padding: 8px 10px 10px;
		font-size: 13px;
	}

	.ldt-xmas-row {
		gap: 8px;
	}

	.ldt-xmas-icon {
		width: 24px;
	}

	.ldt-xmas-icon svg {
		width: 22px;
		height: 27px;
	}

	.ldt-xmas-icon svg.ldt-xmas-truck {
		width: 24px;
		height: 24px;
	}

	.ldt-xmas-note {
		margin-left: 32px;
		font-size: 12px;
	}
}

/* 22 Oct 2026: the [landera_delivery_timeline] copy, e.g. at the top of the Delivery info tab. */
.ldt-shortcode .ldt-wrap {
	margin: 0 0 22px;
}
