/* ==================================================================
   Track Your Order (inc/track-order.php)

   Replaces the old TrackShip [trackship-track-order] form skin — every
   .ts_from_* / .order_track_form / .trackship_branding rule that used to
   live here is gone with the widget.

   The timeline block below is a deliberate COPY of the thank-you page's
   timeline (assets/css/checkout.css:1427-1510, .sp-tc__*) renamed to
   .sp-to__*. It is copied rather than shared because checkout.css is 48 KB
   and is only enqueued on checkout — pulling it in here to reuse ~84 lines
   would undo the theme's per-page CSS split. Keep the two in sync by hand.

   ⚠️ Cascade guardrails, learned the hard way twice: text rules are scoped
   `.sp-to__step > div > span` (never a bare descendant span, which would
   also hit the icon wrappers), and every svg dimension is !important —
   `.elementor img{height:auto}` and `.parent span{display:block}` have both
   silently wrecked this exact markup before.

   main.css IS loaded on this page, so --navy/--sage/--line/--font are
   available. The timeline greys have no variable equivalents anywhere in
   the theme and stay as literals, matching checkout.css.
   ================================================================== */

.sp-to {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 0 40px;
	font-family: var(--font, Carlito, sans-serif);
}

.sp-to *,
.sp-to *::before,
.sp-to *::after {
	box-sizing: border-box;
}

/* ---- lookup form ---- */
.sp-to__form {
	background: #fff;
	border: 1px solid #e7eaf1;
	border-radius: 16px;
	padding: 26px;
	box-shadow: 0 1px 2px rgba(45, 50, 101, .04);
}

.sp-to__form-intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: #626c7d;
	line-height: 1.55;
}

.sp-to__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sp-to__fields label {
	display: block;
}

.sp-to__fields label > span {
	display: block;
	font-size: 13px;
	font-weight: 650;
	color: #16181f;
	margin: 0 0 6px;
}

.sp-to__fields input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #e7eaf1;
	border-radius: 9px;
	font-size: 15px;
	font-family: inherit;
	color: #16181f;
	background: #fff;
}

.sp-to__fields input:focus {
	outline: none;
	border-color: var(--navy, #2d3265);
	box-shadow: 0 0 0 3px rgba(45, 50, 101, .10);
}

.sp-to__submit {
	margin-top: 16px;
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 9px;
	background: var(--navy, #2d3265);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.sp-to__submit:hover {
	background: var(--navy-d, #1f264a);
}

.sp-to__submit[disabled] {
	opacity: .6;
	cursor: default;
}

.sp-to__error {
	margin: 0 0 14px;
	padding: 11px 13px;
	border-radius: 9px;
	background: #fdf2f2;
	border: 1px solid #f3d3d3;
	color: #8c2f2f;
	font-size: 13.5px;
	line-height: 1.5;
}

.sp-to__out {
	margin-top: 22px;
}

/* ---- result shell ---- */
.sp-to__result {
	margin-top: 4px;
}

.sp-to__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	flex-wrap: wrap;
}

.sp-to__head strong {
	font-size: 18px;
	font-weight: 700;
	color: #16181f;
}

.sp-to__head span {
	font-size: 13.5px;
	color: #626c7d;
}

.sp-to__card {
	background: #fff;
	border: 1px solid #e2e6f0;
	border-radius: 14px;
	padding: 30px 28px;
	margin: 0 0 18px;
	box-shadow: 0 1px 2px rgba(45, 50, 101, .04);
}

.sp-to__ship-label {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #626c7d;
	margin: 0 0 14px;
}

/* ---- timeline (source parity: checkout.css:1427-1510) ---- */
.sp-to__steps {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
}

.sp-to__steps li {
	list-style: none !important;
	margin: 0 !important;
}

.sp-to__step {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 13px;
	position: relative;
	padding: 0 0 30px !important;
}

.sp-to__step:last-child {
	padding-bottom: 0 !important;
}

.sp-to__step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 26px;
	bottom: -4px;
	width: 2px;
	background: #e6eaf3;
}

.sp-to__step.is-done:not(:last-child)::before {
	background: #cbdcbd;
}

.sp-to__dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #dfe4ef;
	background: #fff;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	color: #fff;
	position: relative;
	z-index: 1;
}

.sp-to__step.is-done .sp-to__dot {
	background: #81a368;
	border-color: #81a368;
}

/* active — hollow navy ring with a small solid core */
.sp-to__step.is-active .sp-to__dot {
	border-color: var(--navy, #2d3265);
	color: var(--navy, #2d3265);
	background: #fff;
}

/* alert — amber ring, dark glyph */
.sp-to__step.is-alert .sp-to__dot {
	border-color: #d99b22;
	background: #fff8e9;
	color: #a4700e;
}

.sp-to__dot svg {
	width: 14px !important;
	height: 14px !important;
}

.sp-to__step strong {
	display: block;
	font-size: 14px;
	font-weight: 650;
	color: #16181f;
	line-height: 1.35;
}

.sp-to__step.is-pending strong {
	color: #8b93a3;
}

/* scoped to > div > span so the icon wrapper is never caught */
.sp-to__step > div > span {
	display: block;
	font-size: 13px;
	color: #626c7d;
	line-height: 1.6;
	margin-top: 6px;
}

/* ---- footer bits ---- */
.sp-to__eta {
	margin-top: 16px;
	padding-top: 15px;
	border-top: 1px solid #edf0f7;
	font-size: 13.5px;
	font-weight: 650;
	color: #16181f;
}

.sp-to__track {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--navy, #2d3265) !important;
	text-decoration: none !important;
}

.sp-to__track:hover {
	text-decoration: underline !important;
}

.sp-to__stale {
	margin-top: 10px;
	font-size: 12.5px;
	color: #8b93a3;
	line-height: 1.5;
}

.sp-to__details {
	display: inline-block;
	margin: 0 0 18px;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--navy, #2d3265) !important;
	text-decoration: none !important;
}

.sp-to__details:hover {
	text-decoration: underline !important;
}

/* ---- alert banner ---- */
.sp-to__alert {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: 11px;
	margin: 0 0 18px;
	border: 1px solid #f0dcae;
	background: #fff8e9;
}

.sp-to__alert--bad {
	border-color: #f3d3d3;
	background: #fdf2f2;
}

.sp-to__alert-icon {
	display: inline-flex !important;
	flex: 0 0 auto;
	width: 18px !important;
	height: 18px !important;
	margin-top: 1px;
	color: #a4700e;
}

.sp-to__alert--bad .sp-to__alert-icon {
	color: #8c2f2f;
}

.sp-to__alert-icon svg {
	width: 18px !important;
	height: 18px !important;
}

.sp-to__alert strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #16181f;
}

.sp-to__alert > div > span {
	display: block;
	font-size: 13px;
	color: #55606f;
	line-height: 1.55;
	margin-top: 3px;
}

.sp-to__alert-raw {
	font-style: italic;
	color: #7a8496 !important;
}

/* ---- logged-in order list ---- */
.sp-to__list {
	border: 1px solid #e7eaf1;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.sp-to__row + .sp-to__row {
	border-top: 1px solid #eef0f5;
}

.sp-to__row-btn {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto 18px;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px 18px;
	background: #fff;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.sp-to__row-btn:hover {
	background: #fafbfe;
}

.sp-to__row-id {
	font-size: 14.5px;
	font-weight: 700;
	color: #16181f;
}

.sp-to__row-date {
	font-size: 13px;
	color: #626c7d;
}

.sp-to__caret {
	font-size: 12px;
	color: #8b93a3;
	transition: transform .15s ease;
}

.sp-to__row-btn[aria-expanded="true"] .sp-to__caret {
	transform: rotate(180deg);
}

.sp-to__row-body {
	padding: 4px 18px 18px;
	background: #fafbfe;
}

.sp-to__row-body .sp-to__card {
	margin-bottom: 0;
}

.sp-to__row-body .sp-to__head,
.sp-to__row-body .sp-to__support {
	display: none;
}

/* ---- chips ---- */
.sp-to__chip {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.sp-to__chip--ok   { background: #eaf3e4; color: #3f6b2c; }
.sp-to__chip--live { background: #e9ecf7; color: #2d3265; }
.sp-to__chip--warn { background: #fff3d9; color: #8a6410; }
.sp-to__chip--bad  { background: #fdeaea; color: #8c2f2f; }

/* ---- support ---- */
.sp-to__support {
	margin-top: 22px;
	padding: 20px 22px;
	border-radius: 14px;
	background: var(--navy, #2d3265);
	color: #fff;
}

.sp-to__support strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.sp-to__support > span {
	display: block;
	font-size: 13.5px;
	line-height: 1.6;
	color: #c9cee8;
	margin-top: 5px;
}

.sp-to__support a {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: underline !important;
}

.sp-to__empty {
	padding: 26px;
	border: 1px solid #e7eaf1;
	border-radius: 14px;
	background: #fff;
	text-align: center;
	font-size: 14px;
	color: #626c7d;
}

.sp-to__loading {
	padding: 18px;
	font-size: 13.5px;
	color: #626c7d;
}

/* ---- mobile ---- */
@media (max-width: 600px) {
	.sp-to__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.sp-to__card {
		padding: 20px 17px;
	}

	.sp-to__form {
		padding: 20px 17px;
	}

	.sp-to__row-btn {
		grid-template-columns: minmax(0, 1fr) auto;
		row-gap: 6px;
	}

	.sp-to__row-date {
		grid-column: 1;
	}

	.sp-to__caret {
		grid-column: 2;
		grid-row: 1;
	}
}

/* ---- embedded in My Account → view order ---- */
.sp-to--embedded { max-width: none; margin: 0 0 26px; padding: 0; }
.sp-to--embedded .sp-to__card { margin-bottom: 0; }
.sp-to--embedded .sp-to__card + .sp-to__card { margin-top: 16px; }


/* == SP MOBILE TYPE LAYER v2 (generated 2026-08-12) — desktop untouched; sub-15px rules +3 capped at 17, body 17px, on <=768px. Delete this block to revert. == */
@media (max-width: 768px) {
	.sp-to__form-intro { font-size: 17px !important; }
	.sp-to__fields label > span { font-size: 16px !important; }
	.sp-to__error { font-size: 16.5px !important; }
	.sp-to__head span { font-size: 16.5px !important; }
	.sp-to__ship-label { font-size: 15.5px !important; }
	.sp-to__step strong { font-size: 17px !important; }
	.sp-to__step > div > span { font-size: 16px !important; }
	.sp-to__eta { font-size: 16.5px !important; }
	.sp-to__track { font-size: 16.5px !important; }
	.sp-to__stale { font-size: 15.5px !important; }
	.sp-to__details { font-size: 16.5px !important; }
	.sp-to__alert strong { font-size: 17px !important; }
	.sp-to__alert > div > span { font-size: 16px !important; }
	.sp-to__row-id { font-size: 17px !important; }
	.sp-to__row-date { font-size: 16px !important; }
	.sp-to__caret { font-size: 15px !important; }
	.sp-to__chip { font-size: 15px !important; }
	.sp-to__support > span { font-size: 16.5px !important; }
	.sp-to__support a { font-size: 17px !important; }
	.sp-to__empty { font-size: 17px !important; }
	.sp-to__loading { font-size: 16.5px !important; }
}
