
/* Store courier delivery handoff */
body.tm-sc-handoff {
	margin: 0;
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(128, 122, 248, 0.18), transparent 55%),
		radial-gradient(900px 420px at 100% 0%, rgba(51, 197, 200, 0.14), transparent 50%),
		#f3f4f8;
	font-family: Tajawal, sans-serif;
}
.tm-delivery {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.tm-delivery__card {
	width: 100%;
	max-width: 520px;
	background: #fff;
	border: 1px solid #e6e8f0;
	border-radius: 20px;
	padding: 28px 24px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.tm-delivery__brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 18px;
}
.tm-delivery__store {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}
.tm-delivery__eyebrow {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}
.tm-delivery__header {
	margin-bottom: 18px;
}
.tm-delivery__title {
	margin: 0 0 4px;
	font-size: 30px;
	line-height: 1.15;
}
.tm-delivery__awb {
	margin: 0 0 10px;
	color: #64748b;
	font-weight: 700;
	letter-spacing: 0.03em;
}
.tm-delivery__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: #eef2ff;
	color: #3730a3;
}
.tm-delivery__badge--pickup { background: #fff7ed; color: #9a3412; }
.tm-delivery__badge--deliver { background: #ecfeff; color: #0e7490; }
.tm-delivery__badge--done { background: #ecfdf5; color: #047857; }
.tm-delivery__steps {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.tm-delivery__steps li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
}
.tm-delivery__steps li span {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
	color: #64748b;
	font-weight: 800;
}
.tm-delivery__steps li.is-current { color: #0f172a; }
.tm-delivery__steps li.is-current span {
	background: #807af8;
	color: #fff;
}
.tm-delivery__steps li.is-done { color: #047857; }
.tm-delivery__steps li.is-done span {
	background: #22c55e;
	color: #fff;
}
.tm-delivery__kv {
	list-style: none;
	margin: 0 0 20px;
	padding: 16px;
	display: grid;
	gap: 14px;
	background: #f8fafc;
	border-radius: 14px;
}
.tm-delivery__kv li {
	display: grid;
	gap: 4px;
}
.tm-delivery__kv span {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	text-transform: none;
}
.tm-delivery__kv strong {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.45;
}
.tm-delivery__address br { display: block; }
.tm-delivery__contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.tm-delivery__contact-actions .tm-btn {
	min-height: 40px;
	padding-inline: 14px;
}
.tm-delivery__home {
	width: 100%;
	justify-content: center;
	min-height: 44px;
	margin-top: 4px;
}
.tm-delivery__actions {
	display: grid;
	gap: 10px;
}
.tm-delivery__action,
.tm-delivery__complete {
	width: 100%;
	justify-content: center;
	min-height: 48px;
	font-size: 16px;
}
.tm-delivery__hint {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	text-align: center;
}
.tm-delivery__done,
.tm-delivery__status {
	margin: 0;
	font-weight: 700;
	color: #166534;
	text-align: center;
}

body.tm-sc-track-page {
	margin: 0;
}

/* My Account → Deliveries (assigned store courier) */
.tm-courier-orders {
	margin: 0 0 8px;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
	max-width: none;
}
.tm-courier-orders h2 { margin: 0 0 12px; }
.tm-courier-orders__empty { margin: 0; color: #64748b; }
.tm-courier-orders__list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent;
	display: grid;
	gap: 0;
}
.tm-courier-orders__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 0;
	padding: 14px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #e6e8f0;
	border-radius: 0;
	box-shadow: none;
}
.tm-courier-orders__item:last-child { border-bottom: 0; }
.tm-courier-orders__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	min-width: 0;
	flex: 1 1 auto;
}
.tm-courier-orders__number { font-size: 1em; }
.tm-courier-orders__name,
.tm-courier-orders__city,
.tm-courier-orders__phone {
	color: #475569;
	font-size: 14px;
}
.tm-courier-orders__phone { unicode-bidi: isolate; }
.tm-courier-orders__status {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	background: rgba(128, 122, 248, 0.12);
	color: #5b54d6;
}
.tm-courier-orders__status.tm-badge--warning { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.tm-courier-orders__status.tm-badge--info { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.tm-courier-orders__status.tm-badge--success { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.tm-courier-orders__status.tm-badge--danger { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.tm-courier-orders__status.tm-badge--muted { background: rgba(107, 114, 128, 0.12); color: #4b5563; }
.tm-courier-orders__actions {
	margin: 0;
	flex: 0 0 auto;
}
.tm-courier-orders__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border: 1px solid #d9d6fe;
	border-radius: 10px;
	background: #fff;
	color: #5b54d6;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
}
.tm-courier-orders__view:hover,
.tm-courier-orders__view:focus {
	background: linear-gradient(135deg, #807af8 0%, #33c5c8 100%);
	border-color: transparent;
	color: #fff;
	text-decoration: none;
}


/* Customer order view block */
.tm-sc-order-block { margin: 24px 0; }
.tm-sc-order-block .tm-card { padding: 16px 18px; border: 1px solid #e6e8f0; border-radius: 14px; background: #fff; }
.tm-sc-order-block h2 { margin: 0 0 10px; font-size: 1.1em; }
.woocommerce-orders-table .woocommerce-button.tm_sc_track { margin-inline-start: 4px; }
