/* NIRSHA — Order tracking timeline (customer + guest). Brand ivory/green/gold. */

.nrs-trk {
	margin: 24px 0;
	padding: 22px 22px 18px;
	background: var(--nirsha-card, #fffdf9);
	border: 1px solid var(--nirsha-border, #e8d9c6);
	border-radius: 16px;
}
.nrs-trk-h {
	margin: 0 0 14px;
	font-size: 1.15rem;
	color: var(--nirsha-espresso, #201713);
}
.nrs-trk-terminal {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	font-weight: 700;
}
.nrs-trk-cancelled, .nrs-trk-failed { background: #fbecea; color: #9c2a19; border: 1px solid #e7b9b0; }
.nrs-trk-refunded { background: #f3ece1; color: #7a5a1f; border: 1px solid #e3cf9f; }

/* Vertical timeline (mobile-first). */
.nrs-trk-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nrs-trk-step {
	position: relative;
	padding: 0 0 20px 30px;
	min-height: 28px;
}
.nrs-trk-step::before {           /* connector line */
	content: "";
	position: absolute;
	left: 9px; top: 4px; bottom: -4px;
	width: 2px;
	background: var(--nirsha-border, #e8d9c6);
}
.nrs-trk-step:last-child::before { display: none; }
.nrs-trk-dot {
	position: absolute;
	left: 0; top: 2px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--nirsha-border, #d9c9b4);
	box-sizing: border-box;
}
.nrs-trk-step.is-done .nrs-trk-dot {
	background: var(--nirsha-green, #3f7d3a);
	border-color: var(--nirsha-green, #3f7d3a);
}
.nrs-trk-step.is-done::before { background: var(--nirsha-green, #3f7d3a); }
.nrs-trk-step.is-current .nrs-trk-dot {
	background: var(--nirsha-gold, #b8893b);
	border-color: var(--nirsha-gold, #b8893b);
	box-shadow: 0 0 0 4px rgba(184, 137, 59, .2);
}
.nrs-trk-label {
	display: block;
	font-weight: 600;
	color: var(--nirsha-espresso, #201713);
	font-size: .98rem;
	line-height: 1.35;
}
.nrs-trk-step:not(.is-done) .nrs-trk-label { color: var(--nrs-muted, #8a7c6d); font-weight: 500; }
.nrs-trk-now {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #fff;
	background: var(--nirsha-gold, #b8893b);
	border-radius: 999px;
	vertical-align: middle;
}
.nrs-trk-time {
	display: block;
	margin-top: 2px;
	font-size: .82rem;
	color: var(--nrs-muted, #8a7c6d);
}

.nrs-trk-courier {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--nirsha-border, #e8d9c6);
}
.nrs-trk-courier p { margin: 0 0 6px; font-size: .92rem; color: var(--nirsha-espresso, #201713); }
.nrs-trk-link.button,
.nrs-trk-submit.button {
	display: inline-block;
	margin-top: 6px;
	padding: 11px 20px;
	border-radius: 10px;
	background: var(--nirsha-cocoa, #3b241b);
	color: #fffaf3 !important;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--nirsha-cocoa, #3b241b);
}
.nrs-trk-link.button:hover,
.nrs-trk-submit.button:hover { background: var(--nirsha-gold-dark, #8c6529); border-color: var(--nirsha-gold-dark, #8c6529); }
.nrs-trk-note { margin: 10px 0 0; color: var(--nrs-muted, #8a7c6d); font-size: .9rem; }

/* Guest tracking form. */
.nrs-trk-guest { max-width: 440px; margin: 0 auto; }
.nrs-trk-form label { display: block; margin: 0 0 4px; font-weight: 600; color: var(--nirsha-espresso, #201713); }
.nrs-trk-form input {
	box-sizing: border-box; width: 100%; min-height: 48px;
	margin-bottom: 14px; padding: 11px 13px;
	border: 1px solid var(--nirsha-border, #e8d9c6); border-radius: 10px;
	background: #fff; color: var(--nirsha-espresso, #201713);
}
.nrs-trk-form input:focus { border-color: var(--nirsha-gold, #b8893b); box-shadow: 0 0 0 3px rgba(184,137,59,.18); outline: none; }
.nrs-trk-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fbecea; color: #9c2a19; border: 1px solid #e7b9b0; }
.nrs-trk-reset { margin-top: 14px; }
.nrs-trk-reset a { color: var(--nirsha-gold-dark, #8c6529); text-underline-offset: 3px; }

/* Horizontal timeline on wider screens. */
@media (min-width: 720px) {
	.nrs-trk-timeline { display: flex; justify-content: space-between; gap: 8px; }
	.nrs-trk-step {
		flex: 1 1 0; text-align: center;
		padding: 34px 4px 0; min-height: 0;
	}
	.nrs-trk-step::before {
		left: 50%; right: auto; top: 11px; bottom: auto;
		width: 100%; height: 2px;
	}
	.nrs-trk-step:last-child::before { display: block; width: 0; }
	.nrs-trk-dot { left: 50%; top: 2px; transform: translateX(-50%); }
	.nrs-trk-label { font-size: .86rem; }
	.nrs-trk-now { display: block; margin: 4px auto 0; width: fit-content; }
}

/* Admin meta box history list. */
.nrs-trk-admin .nrs-trk-hist { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee; font-size: 12px; }
