/* Order tracking — IMPEERCOL */
.order-track-page {
	background: #f7f7f8;
	min-height: 50vh;
}

.order-track-layout,
.order-ready {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 1.5rem;
	align-items: start;
}

.order-track-card,
.order-ready__notice,
.order-status-card,
.order-track-hint-panel {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(20, 20, 20, 0.05);
	padding: 1.6rem;
}

.order-track-card__title,
.order-ready__notice h1 {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 0.6rem;
	color: #1a1a1a;
}

.order-track-card__lead,
.order-ready__notice > p {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.5;
	margin-bottom: 1.25rem;
}

.order-track-field {
	margin-bottom: 1rem;
}
.order-track-field label,
.cart-field__hint {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 0.35rem;
}
.cart-field__hint {
	font-size: 0.95rem;
	font-weight: 500;
	color: #666;
	margin-top: 0.35rem;
}
.order-track-field input {
	width: 100%;
	border: 1.5px solid #d8d8d8;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	font-size: 1.15rem;
}
.order-track-field input:focus {
	outline: none;
	border-color: #cd0b0b;
	box-shadow: 0 0 0 3px rgba(205, 11, 11, 0.12);
}

.order-track-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	background: #1a1a1a;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
	border: none;
	cursor: pointer;
}
.order-track-btn:hover { background: #cd0b0b; color: #fff; }
.order-track-btn--pay { background: #cd0b0b; }
.order-track-btn--pay:hover { background: #9e0808; }
.order-track-btn--lg { font-size: 1.25rem; padding: 1.15rem 1.4rem; margin-top: 0.5rem; }
.order-track-btn--ghost {
	background: #fff;
	color: #1a1a1a;
	border: 2px solid #1a1a1a;
}
.order-track-btn--ghost:hover { background: #1a1a1a; color: #fff; }

.order-track-help {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #ececec;
	font-size: 1.05rem;
	color: #555;
	line-height: 1.45;
}
.order-track-wa {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.75rem;
	color: #146c43;
	font-weight: 700;
	font-size: 1.1rem;
}

.order-track-alert {
	padding: 0.95rem 1.1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
	font-size: 1.05rem;
	font-weight: 500;
}
.order-track-alert--err {
	background: #fdebec;
	color: #9e0808;
	border: 1px solid #f3c4c4;
}

.order-track-hint-panel h2 {
	font-size: 1.35rem;
	font-weight: 800;
	margin-bottom: 0.85rem;
}
.order-track-hint-panel ol {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 1.1rem;
	color: #444;
	line-height: 1.6;
}

.order-ready__keys {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
}
.order-ready__keys > div {
	background: #f7f7f8;
	border-radius: 12px;
	padding: 0.95rem 1rem;
}
.order-ready__keys span {
	display: block;
	font-size: 0.95rem;
	color: #666;
	margin-bottom: 0.25rem;
}
.order-ready__keys strong {
	font-size: 1.25rem;
	color: #1a1a1a;
	word-break: break-all;
}
.order-ready__tip {
	background: #fff8e8;
	border: 1px solid #f0d9a0;
	border-radius: 12px;
	padding: 1rem 1.1rem;
	font-size: 1.05rem;
	color: #5a4a20;
	line-height: 1.5;
	margin-bottom: 1.15rem;
}
.order-ready__tip a { color: #cd0b0b; font-weight: 700; }
.order-ready__note {
	margin-top: 0.85rem;
	font-size: 1rem;
	color: #666;
	text-align: center;
}
.order-ready__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.order-status-card__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1.25rem;
}
.order-status-card__label {
	margin: 0;
	font-size: 0.95rem;
	color: #777;
}
.order-status-card__code {
	margin: 0.15rem 0 0;
	font-size: 1.55rem;
	font-weight: 800;
}
.order-status-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-end;
}
.order-status-pill {
	display: inline-flex;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
	background: #eee;
	color: #333;
}
.order-status-pill--pay.is-paid { background: #e8f8ef; color: #146c43; }
.order-status-pill--pay:not(.is-paid) { background: #fff3cd; color: #856404; }
.order-status-pill--pay.is-cod { background: #e7f1ff; color: #0b5ed7; }
.order-status-pill--log { background: #e8f0fe; color: #1a4b8c; }

.order-status-timeline {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0.35rem 0 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	position: relative;
}
.order-status-timeline::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 12.5%;
	right: 12.5%;
	height: 4px;
	background: #e4e4e4;
	border-radius: 999px;
	z-index: 0;
}
.order-status-timeline::after {
	content: "";
	position: absolute;
	top: 18px;
	left: 12.5%;
	height: 4px;
	width: calc((100% - 25%) * var(--progress, 0) / 3);
	max-width: 75%;
	background: linear-gradient(90deg, #cd0b0b, #e53935);
	border-radius: 999px;
	z-index: 1;
	transition: width 0.35s ease;
}
.order-status-timeline[data-progress="0"] { --progress: 0; }
.order-status-timeline[data-progress="1"] { --progress: 1; }
.order-status-timeline[data-progress="2"] { --progress: 2; }
.order-status-timeline[data-progress="3"] { --progress: 3; }

.order-status-timeline__item {
	text-align: center;
	position: relative;
	z-index: 2;
	padding: 0 0.25rem;
}
.order-status-timeline__node {
	display: flex;
	justify-content: center;
	margin-bottom: 0.55rem;
}
.order-status-timeline__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #d5d5d5;
	color: #fff;
	font-size: 0.7rem;
	box-shadow: 0 0 0 4px #fff;
}
.order-status-timeline__item.is-done .order-status-timeline__dot {
	background: #cd0b0b;
	border-color: #cd0b0b;
}
.order-status-timeline__item.is-active .order-status-timeline__dot {
	background: #cd0b0b;
	border-color: #cd0b0b;
	box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(205, 11, 11, 0.18);
}
.order-status-timeline__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
}
.order-status-timeline__label {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #888;
	line-height: 1.25;
}
.order-status-timeline__item.is-done .order-status-timeline__label {
	color: #444;
}
.order-status-timeline__item.is-active .order-status-timeline__label {
	color: #cd0b0b;
	font-weight: 800;
}

.order-status-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.1rem;
}
.order-status-meta span {
	display: block;
	font-size: 0.9rem;
	color: #777;
}
.order-status-meta strong {
	font-size: 1.1rem;
}

.order-status-items {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border-top: 1px solid #eee;
}
.order-status-items li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid #f3f3f3;
	font-size: 1.05rem;
}

.order-status-totals {
	display: grid;
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding-top: 0.35rem;
	border-top: 1px solid #eee;
}
.order-status-totals > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.98rem;
}
.order-status-totals span { color: #777; }
.order-status-totals > div:last-child strong {
	color: #cd0b0b;
	font-size: 1.15rem;
}

@media (max-width: 991px) {
	.order-track-layout,
	.order-ready,
	.order-ready__keys,
	.order-ready__actions,
	.order-status-meta {
		grid-template-columns: 1fr;
	}
	.order-status-timeline {
		grid-template-columns: 1fr;
		gap: 0;
		padding-left: 0.25rem;
	}
	.order-status-timeline::before,
	.order-status-timeline::after {
		left: 13px;
		right: auto;
		top: 14px;
		bottom: 14px;
		width: 4px;
		height: auto;
		max-width: none;
	}
	.order-status-timeline::after {
		height: calc((100% - 28px) * var(--progress, 0) / 3);
		width: 4px;
	}
	.order-status-timeline__item {
		display: grid;
		grid-template-columns: 28px 1fr;
		gap: 0.75rem;
		align-items: center;
		text-align: left;
		padding: 0.7rem 0;
	}
	.order-status-timeline__node {
		margin-bottom: 0;
	}
}

/* Thanks / payment confirmation */
.thanks-hero {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(20, 20, 20, 0.06);
	padding: 2rem 1.75rem;
	text-align: center;
	max-width: 760px;
	margin: 0 auto 1.5rem;
}
.thanks-hero--ok {
	border-top: 5px solid #25d366;
}
.thanks-hero--pending {
	border-top: 5px solid #f0ad4e;
}
.thanks-hero__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.2rem;
}
.thanks-hero--ok .thanks-hero__icon {
	background: #e8f8ef;
	color: #146c43;
}
.thanks-hero--pending .thanks-hero__icon {
	background: #fff6e5;
	color: #b76b00;
}
.thanks-hero__title {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 0.65rem;
	color: #1a1a1a;
}
.thanks-hero__lead {
	font-size: 1.2rem;
	color: #444;
	line-height: 1.5;
	margin: 0 auto 1.4rem;
	max-width: 34rem;
}
.thanks-advisor {
	display: flex;
	gap: 1rem;
	text-align: left;
	align-items: flex-start;
	background: #eef7ff;
	border: 1px solid #c5ddf5;
	border-radius: 14px;
	padding: 1.1rem 1.2rem;
	margin-bottom: 1.35rem;
}
.thanks-advisor--closed {
	background: #fff6e5;
	border-color: #f0d9a0;
}
.thanks-advisor--closed .thanks-advisor__icon {
	color: #b76b00;
}
.thanks-advisor__hours {
	margin: 0.65rem 0 0;
	font-size: 0.98rem;
	color: #7a5a10;
	font-weight: 600;
}
.thanks-advisor__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
	color: #1a4b8c;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}
.thanks-advisor strong {
	display: block;
	font-size: 1.15rem;
	color: #1a1a1a;
	margin-bottom: 0.25rem;
}
.thanks-advisor p {
	margin: 0;
	font-size: 1.05rem;
	color: #445566;
	line-height: 1.45;
}
.thanks-hero__keys {
	text-align: left;
	margin-bottom: 1.15rem;
}
.thanks-hero__tip {
	text-align: left;
}
.thanks-hero__actions {
	margin-top: 0.35rem;
}
.thanks-hero__refresh {
	margin: 1rem 0 0;
	font-size: 0.98rem;
	color: #777;
}
.thanks-status-wrap {
	max-width: 760px;
	margin: 0 auto;
}
