/*
 * TLT Order Tracking — built on the Blocksy global variables so it follows the theme:
 * palette-1 brand red, palette-4 headings, palette-3 text, palette-5 borders, palette-6/7 panels.
 * Inputs and buttons are left to the theme's own form/button styles.
 */
/* Theme tokens: also on account pages, so WooCommerce's own account forms can use them. */
.tlt-ot,
.tlt-account-page .woocommerce {
	--tlt-ot-accent: var(--theme-palette-color-1, #cc0b24);
	--tlt-ot-ink: var(--theme-headings-color, var(--theme-palette-color-4, #111));
	--tlt-ot-text: var(--theme-text-color, var(--theme-palette-color-3, #666));
	--tlt-ot-line: var(--theme-border-color, var(--theme-palette-color-5, #dfdfdf));
	--tlt-ot-panel: var(--theme-palette-color-6, #f2f5f7);
	--tlt-ot-soft: var(--theme-palette-color-7, #fafbfc);
	--tlt-ot-base: var(--theme-palette-color-8, #fff);
	--tlt-ot-caps-spacing: var(--theme-button-letter-spacing, 0.75px);
}

.tlt-ot {
	max-width: 820px;
	margin: 0 auto 40px;
	color: var(--tlt-ot-text);
}

.tlt-ot p { margin: 0; }

/* Shared small-caps label style, matching the theme's uppercase buttons. */
.tlt-ot-field label,
.tlt-ot-eyebrow,
.tlt-ot-awb span,
.tlt-ot-label {
	font-size: 12px;
	letter-spacing: var(--tlt-ot-caps-spacing);
	text-transform: uppercase;
}

/* ---------- Form ---------- */
.tlt-ot-form {
	padding: 28px;
	background: var(--tlt-ot-soft);
	border: 1px solid var(--tlt-ot-line);
}
.tlt-ot .tlt-ot-intro { margin-bottom: 18px; }
.tlt-ot-fields {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 16px;
	align-items: end;
}
.tlt-ot-field { display: grid; gap: 6px; }
.tlt-ot-field label { color: var(--tlt-ot-ink); font-weight: 500; }
.tlt-ot-field input { width: 100%; box-sizing: border-box; background: var(--tlt-ot-base); }
.tlt-ot-submit { white-space: nowrap; }

.tlt-ot .tlt-ot-notice {
	margin-top: 20px;
	padding: 14px 18px;
	background: var(--tlt-ot-panel);
	border-left: 3px solid var(--tlt-ot-accent);
	color: var(--tlt-ot-ink);
}

/* ---------- Result ---------- */
.tlt-ot-result {
	margin-top: 28px;
	border: 1px solid var(--tlt-ot-line);
	background: var(--tlt-ot-base);
}

.tlt-ot-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding: 28px;
	border-bottom: 1px solid var(--tlt-ot-line);
}
.tlt-ot-head-main {
	padding-left: 16px;
	border-left: 3px solid var(--tlt-ot-accent); /* same accent bar as the theme's page titles */
}
.tlt-ot-eyebrow { color: var(--tlt-ot-text); }
.tlt-ot .tlt-ot-headline {
	margin: 4px 0 6px;
	color: var(--tlt-ot-ink);
	font-size: clamp(24px, 4vw, 32px);
	line-height: 1.15;
}
.tlt-ot-placed { font-size: 14px; }
.tlt-ot-placed strong { color: var(--tlt-ot-ink); font-weight: 500; }

/* ---------- Steps: horizontal on wide screens ---------- */
.tlt-ot .tlt-ot-steps {
	list-style: none;
	margin: 0;
	padding: 32px 28px 28px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
}
.tlt-ot-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 0 4px;
	margin: 0;
}
/* Connector to the previous step. */
.tlt-ot-step + .tlt-ot-step::before {
	content: "";
	position: absolute;
	top: 7px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var(--tlt-ot-line);
}
.tlt-ot-step.is-done::before,
.tlt-ot-step.is-current::before,
.tlt-ot-step.is-end::before { background: var(--tlt-ot-ink); }

.tlt-ot-dot {
	position: relative;
	z-index: 1;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 2px solid var(--tlt-ot-line);
	background: var(--tlt-ot-base);
	margin-bottom: 8px;
}
.tlt-ot-step.is-done .tlt-ot-dot { border-color: var(--tlt-ot-ink); background: var(--tlt-ot-ink); }
.tlt-ot-step.is-current .tlt-ot-dot {
	border-color: var(--tlt-ot-accent);
	background: var(--tlt-ot-accent);
	box-shadow: 0 0 0 5px var(--tlt-ot-panel);
}
.tlt-ot-step.is-final .tlt-ot-dot { border-color: var(--tlt-ot-accent); background: var(--tlt-ot-accent); }

/* Outcome step of a stopped order (RTO, cancelled, refunded): red cross. */
.tlt-ot-step.is-end .tlt-ot-dot {
	border-color: var(--tlt-ot-accent);
	background:
		linear-gradient(45deg, transparent 43%, var(--tlt-ot-base) 43%, var(--tlt-ot-base) 57%, transparent 57%),
		linear-gradient(-45deg, transparent 43%, var(--tlt-ot-base) 43%, var(--tlt-ot-base) 57%, transparent 57%),
		var(--tlt-ot-accent);
}
.tlt-ot-step.is-end .tlt-ot-label { color: var(--tlt-ot-accent); }
.tlt-ot-step.is-end.is-current .tlt-ot-dot { box-shadow: 0 0 0 5px var(--tlt-ot-panel); }

.tlt-ot-label { color: var(--tlt-ot-ink); font-weight: 500; }
.tlt-ot-step.is-todo .tlt-ot-label { color: var(--tlt-ot-text); opacity: 0.6; font-weight: 400; }
.tlt-ot-sub { color: var(--tlt-ot-accent); font-size: 13px; }
.tlt-ot-date { font-size: 13px; }

/* ---------- Courier ---------- */
.tlt-ot-courier {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin: 0 28px 28px;
	padding: 18px 20px;
	background: var(--tlt-ot-panel);
}
.tlt-ot-awb { display: grid; gap: 2px; }
.tlt-ot-awb strong {
	color: var(--tlt-ot-ink);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 1px;
	font-variant-numeric: tabular-nums;
}

/* ---------- Items ---------- */
.tlt-ot .tlt-ot-items {
	list-style: none;
	margin: 0;
	padding: 0 28px;
	border-top: 1px solid var(--tlt-ot-line);
}
.tlt-ot-item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	margin: 0;
}
.tlt-ot-item + .tlt-ot-item { border-top: 1px solid var(--tlt-ot-line); }
.tlt-ot-thumb {
	width: 56px;
	height: 56px;
	background: var(--tlt-ot-panel);
	overflow: hidden;
}
.tlt-ot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlt-ot-item-main { display: grid; gap: 2px; min-width: 0; }
.tlt-ot .tlt-ot-item-name { color: var(--tlt-ot-ink); font-size: 15px; line-height: 1.4; text-decoration: none; }
.tlt-ot a.tlt-ot-item-name:hover { color: var(--tlt-ot-accent); }
.tlt-ot-item-qty { font-size: 13px; }
.tlt-ot .tlt-ot-review-link {
	font-size: 12px;
	letter-spacing: var(--tlt-ot-caps-spacing);
	text-transform: uppercase;
	color: var(--tlt-ot-accent);
	white-space: nowrap;
}

/* ---------- Help line ---------- */
.tlt-ot .tlt-ot-help {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--tlt-ot-line);
	font-size: 14px;
	text-align: center;
}

/* ---------- Small screens: stacked form, vertical steps ---------- */
@media (max-width: 689.98px) {
	.tlt-ot-form,
	.tlt-ot-head { padding: 20px; }
	.tlt-ot-fields { grid-template-columns: 1fr; }
	.tlt-ot-submit { width: 100%; }

	.tlt-ot .tlt-ot-steps {
		grid-auto-flow: row;
		padding: 24px 20px;
	}
	.tlt-ot-step {
		display: grid;
		grid-template-columns: 16px 1fr auto;
		align-items: baseline;
		column-gap: 14px;
		text-align: left;
		padding: 0 0 22px;
	}
	.tlt-ot-step:last-child { padding-bottom: 0; }
	.tlt-ot-step + .tlt-ot-step::before { display: none; }
	.tlt-ot-step:not(:last-child)::after {
		content: "";
		position: absolute;
		left: 7px;
		top: 19px;
		bottom: -3px;
		width: 2px;
		background: var(--tlt-ot-line);
	}
	.tlt-ot-step.is-linked::after { background: var(--tlt-ot-ink); }
	.tlt-ot-dot { grid-row: 1 / span 2; align-self: start; margin: 3px 0 0; }
	.tlt-ot-label { grid-column: 2; }
	.tlt-ot-date { grid-column: 3; grid-row: 1; white-space: nowrap; }
	.tlt-ot-sub { grid-column: 2; }

	.tlt-ot-courier { margin: 0 20px 20px; padding: 16px; }
	.tlt-ot-track-link { width: 100%; text-align: center; }
	.tlt-ot .tlt-ot-items { padding: 0 20px; }
	.tlt-ot-item { grid-template-columns: 48px 1fr; gap: 6px 14px; }
	.tlt-ot-thumb { width: 48px; height: 48px; grid-row: 1 / span 2; align-self: start; }
	.tlt-ot .tlt-ot-review-link { grid-column: 2; }
}

/* ---------- Empty wishlist (My Account → Wishlist and the wishlist page) ---------- */
.tlt-ot.tlt-wishlist-empty {
	max-width: 520px;
	margin: 0 auto 40px;
	padding: 40px 24px;
	text-align: center;
	border: 1px solid var(--tlt-ot-line);
	background: var(--tlt-ot-soft);
}
.tlt-wishlist-empty svg { color: var(--tlt-ot-accent); margin-bottom: 10px; }
.tlt-ot .tlt-wishlist-empty-title { margin-bottom: 6px; color: var(--tlt-ot-ink); font-weight: 500; font-size: 18px; }
.tlt-wishlist-empty .button { margin-top: 18px; }
