/* Order tracking page (inc/order-tracking.php, template-parts/order-tracking-page.php) */

.ot-page {
	padding-bottom: 64px;
	font-family: 'Inter', sans-serif;
	color: #212121;
}

.ot-hero {
	padding: 48px 0 72px;
	background-color: #0f69af;
	background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .14), transparent 45%), linear-gradient(135deg, #0f69af 0%, #0b4f86 100%);
	color: #fff;
}

.ot-hero__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.ot-hero__lead {
	margin: 0;
	color: rgba(255, 255, 255, .9);
	font-size: 17px;
	line-height: 1.6;
}

.ot-wrap {
	max-width: 900px;
}

.lv-ot {
	margin-top: -40px;
	font-family: 'Inter', sans-serif;
	color: #212121;
}

.lv-ot__card {
	padding: 28px;
	border: 1px solid #E6EBF0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
}

.lv-ot__card--form {
	max-width: 680px;
}

.lv-ot .lv-ot__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.lv-ot__lead {
	margin: 0 0 20px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.6;
}

/* Form */
.lv-ot__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lv-ot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 16px;
}

.lv-ot__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.lv-ot__field label {
	color: #374151;
	font-size: 14px;
	font-weight: 600;
}

.lv-ot .lv-ot__field input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #d5dde5;
	border-radius: 10px;
	background: #fff;
	color: #212121;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.lv-ot .lv-ot__field input:focus {
	border-color: #0f69af;
	outline: none;
	box-shadow: 0 0 0 3px rgba(15, 105, 175, .18);
}

.lv-ot__actions {
	margin: 20px 0 0;
}

.lv-ot button.lv-ot__submit,
.lv-ot button.lv-ot__submit:hover,
.lv-ot button.lv-ot__submit:focus,
.lv-ot button.lv-ot__submit:active {
	min-height: 50px;
	padding: 0 28px !important;
	border-radius: 10px !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
}

.lv-ot button.lv-ot__submit:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 3px;
}

.lv-ot__notice {
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px solid #F1F1F1;
	border-left: 4px solid #0f69af;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	line-height: 1.5;
}

.lv-ot__notice--error {
	border-left-color: #e11d48;
	background: #fff5f6;
}

.lv-ot__help {
	margin: 20px 0 0;
	color: #4b5563;
	font-size: 15px;
}

.lv-ot__help a,
.lv-ot__help a:visited {
	color: #0f69af;
	font-weight: 600;
	text-decoration: underline;
}

.lv-ot__help a:hover,
.lv-ot__help a:active {
	color: #0b5590;
}

.lv-ot__help a:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Result */
.lv-ot__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 20px;
}

.lv-ot__eyebrow {
	margin: 0 0 4px;
	color: #6b7280;
	font-size: 14px;
	font-weight: 600;
}

.lv-ot .lv-ot__status {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #0f69af;
}

.lv-ot .lv-ot__status--ok {
	color: #15803d;
}

.lv-ot .lv-ot__status--wait {
	color: #b45309;
}

.lv-ot .lv-ot__status--stop {
	color: #be123c;
}

.lv-ot__date {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

.lv-ot__text {
	margin: 10px 0 0;
	color: #374151;
	font-size: 15px;
	line-height: 1.6;
}

/* Timeline */
.lv-ot-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 26px 0 4px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.lv-ot-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0 4px;
	text-align: center;
}

.lv-ot-steps__item::before {
	content: "";
	position: absolute;
	top: 13px;
	right: 50%;
	left: -50%;
	height: 3px;
	background: #E6EBF0;
}

.lv-ot-steps__item:first-child::before {
	display: none;
}

.lv-ot-steps__item.is-done::before,
.lv-ot-steps__item.is-current::before {
	background: #0f69af;
}

.lv-ot-steps__dot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 3px solid #E6EBF0;
	border-radius: 50%;
	background: #fff;
}

.lv-ot-steps__item.is-done .lv-ot-steps__dot {
	border-color: #0f69af;
	background: #0f69af url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.lv-ot-steps__item.is-current .lv-ot-steps__dot {
	border-color: #0f69af;
	box-shadow: 0 0 0 5px rgba(15, 105, 175, .15);
}

.lv-ot-steps__item.is-current .lv-ot-steps__dot::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #0f69af;
}

.lv-ot-steps__label {
	margin-top: 6px;
	color: #6b7280;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.lv-ot-steps__item.is-done .lv-ot-steps__label,
.lv-ot-steps__item.is-current .lv-ot-steps__label {
	color: #212121;
}

.lv-ot-steps__date {
	color: #6b7280;
	font-size: 13px;
}

/* Boxes */
.lv-ot__grid2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	margin-top: 26px;
}

.lv-ot__box {
	padding: 18px;
	border: 1px solid #E6EBF0;
	border-radius: 12px;
	background: #fafcfe;
}

.lv-ot .lv-ot__box-title {
	margin: 0 0 10px;
	color: #6b7280;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.lv-ot__method {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}

.lv-ot__muted {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
}

.lv-ot__parcels,
.lv-ot__items,
.lv-ot__hours {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lv-ot__parcel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
	padding: 12px;
	border: 1px solid #E6EBF0;
	border-radius: 10px;
	background: #fff;
}

.lv-ot__parcel-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lv-ot__carrier {
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
}

.lv-ot__code {
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

/* Button-like links */
a.lv-ot__track,
a.lv-ot__track:visited,
a.lv-ot__track:hover,
a.lv-ot__track:focus,
a.lv-ot__track:active,
a.lv-ot-btn,
a.lv-ot-btn:visited,
a.lv-ot-btn:hover,
a.lv-ot-btn:focus,
a.lv-ot-btn:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

a.lv-ot__track,
a.lv-ot__track:visited,
a.lv-ot__track:focus,
a.lv-ot__track:active {
	min-height: 40px;
	padding: 0 16px;
	background: #0f69af;
	color: #fff;
	font-size: 14px;
}

a.lv-ot__track:hover {
	background: #0a5087;
	color: #fff;
}

a.lv-ot-btn,
a.lv-ot-btn:visited,
a.lv-ot-btn:hover,
a.lv-ot-btn:focus,
a.lv-ot-btn:active {
	min-height: 46px;
	padding: 0 20px;
	font-size: 15px;
}

a.lv-ot-btn--primary,
a.lv-ot-btn--primary:visited,
a.lv-ot-btn--primary:focus,
a.lv-ot-btn--primary:active {
	background: #0f69af;
	color: #fff;
}

a.lv-ot-btn--primary:hover {
	background: #0a5087;
	color: #fff;
}

a.lv-ot-btn--ghost,
a.lv-ot-btn--ghost:visited,
a.lv-ot-btn--ghost:focus,
a.lv-ot-btn--ghost:active {
	border-color: #cfe0ef;
	background: #fff;
	color: #0f69af;
}

a.lv-ot-btn--ghost:hover {
	border-color: #0f69af;
	background: #f1f7fc;
	color: #0b5590;
}

a.lv-ot__track:focus-visible,
a.lv-ot-btn:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}

/* Items */
.lv-ot__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid #E6EBF0;
}

.lv-ot__item:first-child {
	padding-top: 0;
}

.lv-ot .lv-ot__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border: 1px solid #E6EBF0;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
}

.lv-ot__thumb--empty {
	display: block;
	background: #f1f5f9;
}

.lv-ot__item-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.lv-ot__qty {
	flex: 0 0 auto;
	color: #4b5563;
	font-size: 14px;
	white-space: nowrap;
}

.lv-ot__total {
	display: flex;
	justify-content: space-between;
	margin: 12px 0 0;
	font-size: 15px;
}

/* Pickup */
.lv-ot__pickup {
	padding: 12px;
	border-radius: 10px;
	background: #f1f7fc;
	color: #374151;
	font-size: 14px;
	line-height: 1.5;
}

.lv-ot__pickup strong {
	color: #212121;
}

.lv-ot__hours {
	margin-top: 8px;
}

.lv-ot__hours li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}

.lv-ot__hours li span:last-child {
	flex: 0 0 auto;
	white-space: nowrap;
}

.lv-ot__pickup-note {
	margin: 8px 0 0;
	color: #0f69af;
	font-weight: 500;
}

.lv-ot__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

@media (max-width: 767px) {
	.lv-ot__grid2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 575px) {
	.ot-hero {
		padding: 32px 0 60px;
	}
	.ot-hero__title {
		font-size: 28px;
	}
	.ot-hero__lead {
		font-size: 16px;
	}
	.lv-ot__card {
		padding: 20px 16px;
	}
	.lv-ot__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.lv-ot button.lv-ot__submit {
		width: 100%;
	}
	.lv-ot .lv-ot__status {
		font-size: 22px;
	}
	.lv-ot-steps__label {
		font-size: 12px;
	}
	.lv-ot-steps__date {
		font-size: 11px;
	}
	.lv-ot__foot a.lv-ot-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lv-ot *,
	a.lv-ot-btn,
	a.lv-ot__track {
		transition: none;
	}
}
