/* Woo Order Tracker — styles */
.wot, .wot *, .wot *::before, .wot *::after { box-sizing: border-box; }

.wot {
	--wot-ink: #1B1F3B;
	--wot-accent: #F5A524;
	--wot-surface: #F3F4FA;
	--wot-card: #fff;
	--wot-line: #E3E5F0;
	--wot-muted: #6B7089;
	--wot-ok: #108A4B;
	--wot-warn: #A8680A;
	--wot-bad: #CF2C48;
	--wot-info: #3454D1;
	--wot-r: 22px;

	max-width: 880px;
	margin: 0 auto 40px;
	font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.85;
	color: var(--wot-ink);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}
.wot h2, .wot h4, .wot p, .wot ul, .wot ol { margin: 0; padding: 0; }
.wot ul, .wot ol { list-style: none; }
.wot .wot-i { width: 20px; height: 20px; flex: none; display: block; }
.wot [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.wot .wot-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 44px 44px 112px;
	border-radius: 28px;
	background-color: var(--wot-ink);
	background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.4px);
	background-size: 22px 22px;
	color: #fff;
	overflow: hidden;
}
.wot .wot-hero__text { max-width: 440px; position: relative; z-index: 1; }
.wot .wot-hero h2 {
	font-size: 34px;
	line-height: 1.4;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
}
.wot .wot-hero p { color: rgba(255,255,255,.78); font-size: 15.5px; }
.wot .wot-art { width: 300px; max-width: 42%; height: auto; flex: none; overflow: visible; }
.wot .wot-art .r { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.wot .wot-art .d { fill: var(--wot-accent); }
.wot .wot-art .t { fill: #fff; }
.wot .wot-art .l { fill: rgba(255,255,255,.55); }
.wot .wot-art .rt { fill: rgba(255,255,255,.78); }
.wot .wot-art .tape { fill: none; stroke: var(--wot-accent); stroke-width: 14; }
.wot .wot-art .pin { fill: var(--wot-accent); }
.wot .wot-art .pd { fill: var(--wot-ink); }

/* ---------- Form card ---------- */
.wot .wot-card {
	position: relative;
	z-index: 2;
	margin: -68px 24px 0;
	padding: 22px;
	background: var(--wot-card);
	border-radius: var(--wot-r);
	box-shadow: 0 24px 60px -24px rgba(27,31,59,.45), 0 0 0 1px rgba(27,31,59,.05);
}
.wot .wot-empty { color: var(--wot-muted); text-align: center; padding: 18px; }

.wot .wot-tabs {
	display: flex;
	gap: 6px;
	padding: 6px;
	margin-bottom: 20px;
	background: var(--wot-surface);
	border-radius: 16px;
}
.wot button.wot-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 8px 12px;
	margin: 0;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wot-muted);
	background: transparent;
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	text-transform: none;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.wot button.wot-tab:hover { color: var(--wot-ink); background: rgba(27,31,59,.05); }
.wot button.wot-tab.is-active { background: var(--wot-ink); color: #fff; }
.wot button.wot-tab.is-active .wot-i { color: var(--wot-accent); }

.wot .wot-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.wot .wot-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.wot .wot-row.cols-2 { grid-template-columns: 1fr 1fr; }
.wot .wot-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wot-ink);
}
.wot .wot-input { position: relative; }
.wot .wot-input .wot-i {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	color: var(--wot-muted);
	pointer-events: none;
	transition: color .2s;
}
.wot .wot-input input[type="text"] {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 48px 0 16px;
	font: inherit;
	font-size: 15.5px;
	color: var(--wot-ink);
	background: #fff;
	border: 1.5px solid var(--wot-line);
	border-radius: 14px;
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.wot .wot-input input[type="text"]::placeholder { color: #A3A7BD; opacity: 1; }
.wot .wot-input input[type="text"]:hover { border-color: #C9CCE0; }
.wot .wot-input input[type="text"]:focus {
	border-color: var(--wot-ink);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wot-accent) 38%, transparent);
}
.wot .wot-input:focus-within .wot-i { color: var(--wot-ink); }
.wot .wot-field.has-error input[type="text"] { border-color: var(--wot-bad); }
.wot .wot-hint { margin-top: 10px; font-size: 13px; color: var(--wot-muted); }

.wot .wot-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	padding: 12px 14px;
	font-size: 14px;
	color: #8C1B30;
	background: #FDECEF;
	border: 1px solid #F6C6CF;
	border-radius: 14px;
}
.wot .wot-alert .wot-i { margin-top: 3px; width: 18px; height: 18px; color: var(--wot-bad); }

.wot .wot-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.wot button.wot-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 220px;
	height: 54px;
	padding: 0 28px;
	margin: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	color: var(--wot-ink);
	background: var(--wot-accent);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--wot-accent) 85%, #000);
	text-transform: none;
	cursor: pointer;
	transition: transform .15s, filter .2s, box-shadow .2s;
}
.wot button.wot-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.wot button.wot-btn:active { transform: translateY(0); }
.wot button.wot-btn .wot-spin { display: none; }
.wot button.wot-btn.is-loading { pointer-events: none; }
.wot button.wot-btn.is-loading .wot-i { display: none; }
.wot button.wot-btn.is-loading .wot-spin {
	display: block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(27,31,59,.25);
	border-top-color: var(--wot-ink);
	border-radius: 50%;
	animation: wot-rot .7s linear infinite;
}
.wot .wot-safe {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wot-muted);
}
.wot .wot-safe .wot-i { width: 17px; height: 17px; color: var(--wot-ok); }

/* ---------- Results ---------- */
.wot .wot-results { margin: 26px 24px 0; }
.wot .wot-results:empty { margin: 0; }
.wot .wot-count { margin: 0 4px 12px; font-size: 14px; color: var(--wot-muted); }

.wot .wot-order {
	margin-bottom: 14px;
	background: var(--wot-card);
	border: 1px solid var(--wot-line);
	border-radius: var(--wot-r);
	overflow: hidden;
	--tone: var(--wot-info);
}
.wot .wot-order.tone-ok { --tone: var(--wot-ok); }
.wot .wot-order.tone-warn { --tone: var(--wot-warn); }
.wot .wot-order.tone-bad { --tone: var(--wot-bad); }
.wot .wot-order.is-open { box-shadow: 0 18px 40px -26px rgba(27,31,59,.5); }

.wot button.wot-order__head {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 18px 20px;
	font: inherit;
	color: var(--wot-ink);
	text-align: right;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	cursor: pointer;
}
.wot .wot-order__ico {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: none;
	color: var(--wot-ink);
	background: color-mix(in srgb, var(--wot-accent) 30%, #fff);
	border-radius: 14px;
}
.wot .wot-order__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wot .wot-order__meta strong { font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.wot .wot-order__meta small { font-size: 13px; color: var(--wot-muted); line-height: 1.6; }
.wot .wot-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px 5px 12px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--tone);
	background: color-mix(in srgb, var(--tone) 11%, #fff);
	border-radius: 999px;
	white-space: nowrap;
}
.wot .wot-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.wot .wot-chev { color: var(--wot-muted); transition: transform .25s; }
.wot .wot-order.is-open .wot-chev { transform: rotate(180deg); }
.wot .wot-order__body { padding: 8px 24px 26px; border-top: 1px dashed var(--wot-line); }

/* ---------- Steps ---------- */
.wot .wot-steps { display: flex; padding: 34px 0 10px; }
.wot .wot-step { position: relative; flex: 1; text-align: center; }
.wot .wot-step__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0 auto 12px;
	color: #9A9EB6;
	background: var(--wot-surface);
	border: 3px solid var(--wot-surface);
	border-radius: 50%;
	transition: background .3s, color .3s;
}
.wot .wot-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 20px;
	left: calc(-50% + 26px);
	width: calc(100% - 52px);
	height: 4px;
	background: var(--wot-line);
	border-radius: 4px;
}
.wot .wot-step.is-done:not(:last-child)::after { background: var(--wot-accent); }
.wot .wot-step.is-done .wot-step__dot { background: var(--wot-accent); border-color: var(--wot-accent); color: var(--wot-ink); }
.wot .wot-step.is-active .wot-step__dot {
	color: var(--wot-ink);
	background: #fff;
	border-color: var(--wot-accent);
	animation: wot-pulse 2s ease-out infinite;
}
.wot .wot-step__txt { display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.wot .wot-step__txt b { font-size: 14.5px; font-weight: 800; line-height: 1.6; }
.wot .wot-step__txt span { font-size: 12.8px; color: var(--wot-muted); line-height: 1.7; }
.wot .wot-step__txt time { margin-top: 4px; font-size: 12px; color: var(--wot-ink); background: var(--wot-surface); padding: 1px 10px; border-radius: 999px; }
.wot .wot-step.is-todo .wot-step__txt b { color: #9A9EB6; }
.wot .wot-step.is-active .wot-step__txt span { color: var(--wot-ink); font-weight: 500; }

/* ---------- Banner (cancelled / failed / refunded) ---------- */
.wot .wot-banner {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-top: 22px;
	padding: 18px;
	background: color-mix(in srgb, var(--tone) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--tone) 25%, #fff);
	border-radius: 18px;
}
.wot .wot-banner__ico {
	display: grid; place-items: center; width: 48px; height: 48px; flex: none;
	color: #fff; background: var(--tone); border-radius: 50%;
}
.wot .wot-banner b { font-size: 16px; font-weight: 800; }
.wot .wot-banner p { font-size: 13.5px; color: var(--wot-muted); }

.wot a.wot-pay {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 18px; padding: 11px 22px;
	font-weight: 800; font-size: 14.5px; line-height: 1.4;
	color: var(--wot-ink); background: var(--wot-accent);
	border-radius: 12px; text-decoration: none;
}
.wot a.wot-pay:hover { filter: brightness(.96); }

/* ---------- Facts ---------- */
.wot .wot-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 24px; }
.wot .wot-fact, .wot .wot-track {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px;
	background: var(--wot-surface);
	border-radius: 16px;
}
.wot .wot-fact__ico {
	display: grid; place-items: center; width: 40px; height: 40px; flex: none;
	color: var(--wot-ink); background: #fff; border-radius: 12px;
}
.wot .wot-fact small, .wot .wot-track small { display: block; font-size: 12.5px; color: var(--wot-muted); line-height: 1.6; }
.wot .wot-fact b, .wot .wot-track b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.6; }

.wot .wot-track { margin-top: 12px; background: var(--wot-ink); color: #fff; }
.wot .wot-track small { color: rgba(255,255,255,.7); }
.wot .wot-track .wot-fact__ico { background: rgba(255,255,255,.12); color: var(--wot-accent); }
.wot .wot-track > div:nth-child(2) { flex: 1; min-width: 0; }
.wot .wot-code { font-size: 17px !important; letter-spacing: .06em; text-align: right; word-break: break-all; font-variant-numeric: tabular-nums; }
.wot button.wot-copy {
	display: inline-flex; align-items: center; gap: 6px;
	margin: 0; padding: 8px 14px;
	font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4;
	color: var(--wot-ink); background: var(--wot-accent);
	border: 0; border-radius: 10px; box-shadow: none; cursor: pointer;
	text-transform: none;
}
.wot button.wot-copy .wot-i { width: 16px; height: 16px; }

.wot .wot-h { margin: 26px 0 10px; font-size: 15.5px; font-weight: 800; color: var(--wot-ink); }
.wot .wot-items li {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wot-line);
}
.wot .wot-items li:last-child { border-bottom: 0; }
.wot .wot-items img {
	width: 56px; height: 56px; object-fit: cover; flex: none;
	border-radius: 12px; background: var(--wot-surface); margin: 0;
}
.wot .wot-items li > div { flex: 1; min-width: 0; }
.wot .wot-items b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.wot .wot-items small { color: var(--wot-muted); font-size: 12.8px; }
.wot .wot-items li > span { font-weight: 700; font-size: 14px; white-space: nowrap; }

.wot .wot-notes li { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.wot .wot-notes p { font-size: 14px; line-height: 1.9; }
.wot .wot-notes time { display: block; margin-top: 2px; font-size: 12.5px; color: var(--wot-muted); }

.wot .wot-note {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 6px 4px 0;
	font-size: 13.5px; color: var(--wot-muted);
}
.wot .wot-note .wot-i { width: 18px; height: 18px; margin-top: 4px; color: var(--wot-ok); }

.wot .wot-help {
	display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
	margin: 30px 24px 0;
	padding: 16px;
	font-size: 14px; color: var(--wot-muted);
	background: var(--wot-surface);
	border-radius: 18px;
}
.wot .wot-help a { font-weight: 800; color: var(--wot-ink); text-decoration: underline; text-decoration-color: var(--wot-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- Focus ---------- */
.wot button:focus-visible, .wot a:focus-visible {
	outline: 3px solid var(--wot-ink);
	outline-offset: 2px;
}

/* ---------- Motion ---------- */
@keyframes wot-rot { to { transform: rotate(360deg); } }
@keyframes wot-pulse {
	0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wot-accent) 55%, transparent); }
	80%, 100% { box-shadow: 0 0 0 14px transparent; }
}
@media (prefers-reduced-motion: reduce) {
	.wot *, .wot *::before, .wot *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.wot .wot-hero { padding: 30px 24px 96px; border-radius: 22px; }
	.wot .wot-hero h2 { font-size: 26px; }
	.wot .wot-art { display: none; }
	.wot .wot-card { margin: -64px 12px 0; padding: 16px; }
	.wot .wot-results, .wot .wot-help { margin-left: 12px; margin-right: 12px; }
	.wot .wot-row.cols-2 { grid-template-columns: 1fr; }
	.wot button.wot-tab { flex-direction: column; gap: 2px; font-size: 12.5px; min-height: 54px; padding: 6px 4px; }
	.wot button.wot-btn { width: 100%; }
	.wot .wot-safe { width: 100%; justify-content: center; }
	.wot button.wot-order__head { flex-wrap: wrap; padding: 16px; gap: 12px; }
	.wot .wot-order__meta { flex-basis: calc(100% - 100px); }
	.wot .wot-badge { order: 5; }
	.wot .wot-chev { margin-inline-start: auto; }
	.wot .wot-order__body { padding: 4px 16px 20px; }

	/* vertical timeline */
	.wot .wot-steps { flex-direction: column; padding: 22px 0 4px; }
	.wot .wot-step { display: flex; gap: 14px; text-align: right; padding-bottom: 22px; }
	.wot .wot-step:last-child { padding-bottom: 0; }
	.wot .wot-step__dot { margin: 0; }
	.wot .wot-step__txt { align-items: flex-start; padding: 0; }
	.wot .wot-step:not(:last-child)::after {
		top: 46px; bottom: -2px; left: auto; right: 20px;
		width: 4px; height: auto;
	}
}
