.wot-tracking-widget {
	direction: rtl;
	text-align: right;
	max-width: 480px;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
	color: #1e1e1e;
}

.wot-tracking-widget *,
.wot-tracking-widget *::before,
.wot-tracking-widget *::after {
	box-sizing: border-box;
}

.wot-tracking-form {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px;
}

.wot-field {
	margin: 0 0 14px;
}

.wot-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 13px;
}

.wot-field input[type="text"],
.wot-field input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	color: #1e1e1e;
}

.wot-field input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.wot-hp-field {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.wot-submit-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
}

.wot-submit-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 11px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.wot-submit-btn:hover {
	background: #195d8f;
}

.wot-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.wot-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(34, 113, 177, 0.25);
	border-top-color: #2271b1;
	border-radius: 50%;
}

.wot-spinner.is-active {
	display: inline-block;
	animation: wot-spin 0.7s linear infinite;
}

@keyframes wot-spin {
	to {
		transform: rotate(360deg);
	}
}

.wot-form-msg {
	margin-top: 12px;
	font-size: 13px;
}

.wot-form-msg.is-error {
	color: #d63638;
}

.wot-tracking-result {
	margin-top: 18px;
}

.wot-track-result {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px;
}

.wot-track-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	background: color-mix(in srgb, var(--wot-status-color) 12%, #fff);
	border: 1px solid var(--wot-status-color);
	color: var(--wot-status-color);
	border-radius: 999px;
	padding: 6px 16px;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 16px;
}

.wot-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wot-status-color);
	flex: 0 0 auto;
}

.wot-track-info {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
	font-size: 14px;
}

.wot-track-info th,
.wot-track-info td {
	text-align: right;
	padding: 6px 0;
	vertical-align: middle;
}

.wot-track-info th {
	color: #666;
	font-weight: 600;
	width: 38%;
	white-space: nowrap;
}

.wot-copyable {
	display: inline-block;
	background: #f6f7f7;
	border-radius: 4px;
	padding: 2px 8px;
	margin-inline-end: 6px;
}

.wot-copy-btn {
	background: #f0f0f1;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 2px 10px;
	font-size: 12px;
	cursor: pointer;
}

.wot-copy-btn:hover {
	background: #e2e2e2;
}

.wot-track-link {
	color: #2271b1;
	text-decoration: none;
	font-weight: 600;
}

.wot-track-link:hover {
	text-decoration: underline;
}

.wot-timeline {
	border-top: 1px solid #eee;
	padding-top: 14px;
	margin-bottom: 16px;
}

.wot-timeline strong {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
}

.wot-timeline ul {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.wot-timeline li {
	position: relative;
	padding-inline-start: 18px;
	padding-bottom: 12px;
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	border-inline-start: 2px solid #e0e0e0;
	margin-inline-start: 4px;
}

.wot-timeline li:last-child {
	padding-bottom: 0;
}

.wot-timeline-dot {
	position: absolute;
	inset-inline-start: -6px;
	top: 3px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #2271b1;
}

.wot-timeline-label {
	font-weight: 600;
}

.wot-timeline-time {
	color: #888;
	direction: ltr;
	unicode-bidi: embed;
}

.wot-order-summary {
	border-top: 1px solid #eee;
	padding-top: 14px;
}

.wot-order-summary strong {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
}

.wot-order-items {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	font-size: 14px;
}

.wot-order-items li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 0;
	border-bottom: 1px dashed #eee;
}

.wot-item-qty {
	color: #666;
	white-space: nowrap;
}

.wot-order-total {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px solid #eee;
}

@media (max-width: 480px) {
	.wot-tracking-widget {
		max-width: 100%;
	}

	.wot-track-info th {
		width: 45%;
	}
}

/* ===== پنل کاربری (My Account) — فاز ۵ ===== */

.wot-myaccount-box {
	direction: rtl;
	text-align: right;
	max-width: 100%;
	margin-bottom: 24px;
	font-size: 15px;
	line-height: 1.6;
	color: #1e1e1e;
}

.wot-myaccount-box *,
.wot-myaccount-box *::before,
.wot-myaccount-box *::after {
	box-sizing: border-box;
}

.wot-timeline-compact {
	margin-bottom: 0;
}

/* برچسب وضعیت مرسوله کنار وضعیت سفارش در جدول «سفارشات من» */
.wot-order-list-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: color-mix(in srgb, var(--wot-status-color) 12%, #fff);
	border: 1px solid var(--wot-status-color);
	color: var(--wot-status-color);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 700;
	margin-top: 4px;
	white-space: nowrap;
}

.wot-order-list-badge .wot-status-dot {
	width: 7px;
	height: 7px;
}
