/* WC Order Tracking — front-end */

.wcot-wrap {
	--wcot-brand: #2563eb;
	--wcot-ink: #0f172a;
	--wcot-muted: #64748b;
	--wcot-line: #e2e8f0;
	--wcot-bg: #ffffff;
	--wcot-soft: #f8fafc;
	max-width: 720px;
	margin: 0 auto 28px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--wcot-ink);
}

.wcot-card {
	background: var(--wcot-bg);
	border: 1px solid var(--wcot-line);
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* ---------- form ---------- */

.wcot-form-title {
	margin: 0 0 4px;
	font-size: 22px;
	line-height: 1.2;
}

.wcot-form-sub {
	margin: 0 0 18px;
	color: var(--wcot-muted);
	font-size: 14px;
}

.wcot-form-row {
	margin-bottom: 14px;
}

.wcot-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
}

.wcot-form-row input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--wcot-line);
	border-radius: 9px;
	font-size: 15px;
	background: var(--wcot-soft);
	box-sizing: border-box;
}

.wcot-form-row input:focus {
	outline: 2px solid color-mix(in srgb, var(--wcot-brand) 35%, transparent);
	border-color: var(--wcot-brand);
	background: #fff;
}

.wcot-btn {
	display: inline-block;
	background: var(--wcot-brand);
	color: #fff;
	border: 0;
	border-radius: 9px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s ease;
}

.wcot-btn:hover {
	filter: brightness(.93);
	color: #fff;
}

.wcot-btn[disabled] {
	opacity: .6;
	cursor: progress;
}

.wcot-btn--ghost {
	background: transparent;
	color: var(--wcot-brand);
	border: 1px solid var(--wcot-brand);
}

.wcot-btn--ghost:hover {
	background: var(--wcot-brand);
	color: #fff;
}

.wcot-msg {
	margin-top: 12px;
	font-size: 14px;
	color: #b91c1c;
	min-height: 20px;
}

.wcot-alert {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	margin: 0 0 16px;
}

.wcot-alert--error {
	background: #fef2f2;
	color: #b91c1c;
}

.wcot-alert--warn {
	background: #fffbeb;
	color: #92400e;
}

/* ---------- header ---------- */

.wcot-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	flex-wrap: wrap;
}

.wcot-eyebrow {
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wcot-muted);
	font-weight: 700;
}

.wcot-order-no {
	margin: 2px 0 2px;
	font-size: 24px;
	line-height: 1.1;
}

.wcot-placed {
	margin: 0;
	font-size: 13px;
	color: var(--wcot-muted);
}

.wcot-badge {
	background: color-mix(in srgb, var(--wcot-brand) 12%, #fff);
	color: var(--wcot-brand);
	border: 1px solid color-mix(in srgb, var(--wcot-brand) 30%, #fff);
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.wcot-badge--warn {
	background: #fffbeb;
	color: #b45309;
	border-color: #fcd34d;
}

/* ---------- progress ---------- */

.wcot-progress {
	height: 6px;
	background: var(--wcot-line);
	border-radius: 999px;
	margin: 20px 0 4px;
	overflow: hidden;
}

.wcot-progress-bar {
	display: block;
	height: 100%;
	background: var(--wcot-brand);
	border-radius: 999px;
	transition: width .5s ease;
}

/* ---------- steps ---------- */

.wcot-steps {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}

.wcot-step {
	position: relative;
	display: flex;
	gap: 14px;
	padding: 0 0 22px 0;
}

.wcot-step:last-child {
	padding-bottom: 0;
}

.wcot-step::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 34px;
	bottom: 2px;
	width: 2px;
	background: var(--wcot-line);
}

.wcot-step:last-child::before {
	display: none;
}

.wcot-step.is-done::before {
	background: var(--wcot-brand);
}

.wcot-step-icon {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wcot-soft);
	border: 2px solid var(--wcot-line);
	color: var(--wcot-muted);
	position: relative;
	z-index: 1;
}

.wcot-step-icon svg {
	width: 17px;
	height: 17px;
}

.wcot-step.is-done .wcot-step-icon {
	background: var(--wcot-brand);
	border-color: var(--wcot-brand);
	color: #fff;
}

.wcot-step.is-active .wcot-step-icon {
	background: #fff;
	border-color: var(--wcot-brand);
	color: var(--wcot-brand);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--wcot-brand) 15%, transparent);
}

.wcot-step-body {
	padding-top: 6px;
}

.wcot-step-label {
	display: block;
	font-weight: 600;
	color: var(--wcot-muted);
}

.wcot-step.is-done .wcot-step-label,
.wcot-step.is-active .wcot-step-label {
	color: var(--wcot-ink);
}

.wcot-step.is-active .wcot-step-label {
	color: var(--wcot-brand);
}

.wcot-step-desc {
	display: block;
	font-size: 13px;
	color: var(--wcot-muted);
	margin-top: 2px;
}

/* ---------- meta ---------- */

.wcot-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-top: 22px;
	padding: 16px;
	background: var(--wcot-soft);
	border-radius: 11px;
}

.wcot-meta-item span {
	display: block;
	font-size: 12px;
	color: var(--wcot-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 3px;
}

.wcot-meta-item strong {
	font-size: 15px;
	word-break: break-word;
}

.wcot-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

/* ---------- log / items ---------- */

.wcot-sub {
	margin: 26px 0 12px;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--wcot-muted);
}

.wcot-log {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--wcot-line);
}

.wcot-log li {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 0 0 16px 16px;
}

.wcot-log-dot {
	position: absolute;
	left: -6px;
	top: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wcot-brand);
}

.wcot-log p {
	margin: 2px 0;
	font-size: 14px;
}

.wcot-log small {
	color: var(--wcot-muted);
	font-size: 12.5px;
}

.wcot-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcot-items li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--wcot-line);
	font-size: 14px;
}

.wcot-items-total {
	border-bottom: 0;
	font-weight: 700;
}

.wcot-address {
	margin-top: 16px;
	font-size: 14px;
	color: var(--wcot-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {

	.wcot-card {
		padding: 18px 16px;
	}

	.wcot-order-no {
		font-size: 20px;
	}

	.wcot-actions .wcot-btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

.wcot-thankyou {
	margin: 18px 0 26px;
}
