/**
 * طلباتي — header link and the order list / detail / tracking form.
 * Light paper on purpose, same as the cart and checkout surfaces.
 */

.nav-actions .nav-orders-link,
.mobile-menu a.mobile-orders-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 44px;
	min-width: 44px;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	background: #ffd814;
	color: #0f1111;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.nav-actions .nav-orders-link .nav-icon,
.mobile-menu a.mobile-orders-link .nav-icon {
	width: 1.1rem;
	height: 1.1rem;
}

.nav-actions .nav-orders-link.is-current,
.mobile-menu a.mobile-orders-link.is-current {
	box-shadow: inset 0 0 0 2px #0f1111;
}

.mobile-menu a.mobile-orders-link {
	margin: 0.35rem 0.75rem;
}

.gst-orders-page {
	background: #eaeded;
	color: #0f1111;
	padding: 1.25rem 1rem 3rem;
	font-family: "Readex Pro", "Cairo", sans-serif;
}

.gst-orders {
	width: min(60rem, 100%);
	margin-inline: auto;
	display: grid;
	gap: 1rem;
}

.gst-orders h1,
.gst-orders h2,
.gst-orders h3 {
	font-family: "Cairo", "Readex Pro", sans-serif;
	color: #0f1111;
	margin: 0;
}

.gst-orders h1 {
	font-size: clamp(1.6rem, 2vw + 1rem, 2rem);
}

.gst-orders h2 {
	font-size: 1.15rem;
}

.gst-orders h3 {
	font-size: 1rem;
}

.gst-order-card,
.gst-orders-login {
	background: #fff;
	border: 1px solid #d5d9d9;
	border-radius: 8px;
	padding: 1rem;
}

.gst-orders-login {
	margin: 0;
}

.gst-order-list,
.gst-order-card,
.gst-order-detail {
	display: grid;
	gap: 0.85rem;
}

.gst-order-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.gst-orders-ref,
.gst-orders-ref a {
	font-variant-numeric: tabular-nums;
}

.gst-orders-code {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

.gst-orders-step time {
	direction: ltr;
	unicode-bidi: isolate;
	width: fit-content;
	justify-self: start;
}

.gst-orders-item__price,
.gst-order-total strong {
	direction: ltr;
	unicode-bidi: isolate;
}

.gst-orders a {
	color: #007185;
	text-underline-offset: 0.15em;
}

.gst-orders a:hover {
	color: #c7511f;
}

.gst-order-status {
	margin: 0;
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: #fff6e0;
	color: #0f1111;
	font-weight: 800;
	border: 1px solid #fcd200;
}

.gst-order-status--delivered,
.gst-order-status--confirmed {
	background: #e7f5e7;
	border-color: #a5d6a7;
}

.gst-order-status--cancelled {
	background: #fff5f5;
	border-color: #f0c2b8;
	color: #b12704;
}

.gst-order-date,
.gst-order-total,
.gst-orders-empty,
.gst-order-ship p {
	margin: 0;
}

.gst-order-total {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.35rem;
	border-top: 1px solid #e3e6e6;
	font-size: 1.05rem;
}

.gst-orders-items,
.gst-orders-thumbs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.gst-orders-item {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
}

.gst-orders-item__img,
.gst-orders-item__ph {
	width: 4.5rem;
	height: 4.5rem;
	object-fit: contain;
	background: #fff;
	border: 1px solid #d5d9d9;
	border-radius: 8px;
}

.gst-orders-item__ph {
	display: block;
	background: #f7f8f8;
}

.gst-orders-item__text {
	min-width: 0;
}

.gst-orders-item__text p,
.gst-orders-more-items {
	margin: 0.15rem 0 0;
	color: #565959;
}

.gst-orders-item__price {
	white-space: nowrap;
}

.gst-orders-timeline {
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
}

.gst-orders-step {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	column-gap: 0.75rem;
	position: relative;
	padding-bottom: 1rem;
}

.gst-orders-step:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-inline-start: 0.32rem;
	top: 1rem;
	bottom: 0;
	width: 2px;
	background: #d5d9d9;
}

.gst-orders-step__dot {
	width: 0.85rem;
	height: 0.85rem;
	margin-top: 0.25rem;
	border-radius: 50%;
	background: #d5d9d9;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d5d9d9;
	z-index: 1;
}

.gst-orders-step.is-done .gst-orders-step__dot,
.gst-orders-step.is-done:not(:last-child)::after {
	background: #067d62;
}

.gst-orders-step.is-done .gst-orders-step__dot {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #067d62;
}

.gst-orders-step.is-current .gst-orders-step__dot {
	background: #ff8f00;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ff8f00;
}

.gst-orders-step.is-cancelled .gst-orders-step__dot {
	background: #b12704;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b12704;
}

.gst-orders-step__body {
	display: grid;
	gap: 0.1rem;
}

.gst-orders-step__name {
	font-weight: 800;
}

.gst-orders-step.is-upcoming .gst-orders-step__name {
	color: #565959;
	font-weight: 600;
}

.gst-orders-now {
	display: inline-block;
	margin-inline-start: 0.35rem;
	color: #0f1111;
	font-size: 0.85rem;
	font-weight: 700;
}

.gst-orders-step time {
	color: #565959;
	font-size: 0.92rem;
}

.gst-orders-back {
	margin: 0;
}

.gst-orders-form {
	display: grid;
	gap: 0.85rem;
}

.gst-orders-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	gap: 0.85rem;
}

.gst-orders-form legend {
	font-weight: 800;
	margin-bottom: 0.35rem;
}

.gst-orders-form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 700;
}

.gst-orders-form input {
	width: 100%;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	border: 1px solid #888c8c;
	border-radius: 8px;
	background: #fff;
	color: #0f1111;
	font: inherit;
}

.gst-orders-form input:focus-visible,
.gst-orders a:focus-visible,
.gst-orders button:focus-visible,
.nav-orders-link:focus-visible,
.mobile-orders-link:focus-visible {
	outline: 3px solid #007185;
	outline-offset: 2px;
}

.gst-orders-form input:user-invalid {
	border-color: #b12704;
}

.gst-orders-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1rem;
	border: 1px solid #fcd200;
	border-radius: 8px;
	background: #ffd814;
	color: #0f1111;
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.gst-orders-btn:hover {
	background: #f7ca00;
	color: #0f1111;
}

.gst-orders-alert {
	margin: 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid #f0c2b8;
	border-radius: 8px;
	background: #fff5f5;
	color: #b12704;
	font-weight: 700;
}

@media (max-width: 768px) {
	.gst-orders-page {
		padding-bottom: 6.5rem;
		scroll-padding-bottom: 6.5rem;
	}

	.gst-orders-form input,
	.gst-orders-form .gst-orders-btn {
		scroll-margin-bottom: 5.5rem;
	}
}

@media (max-width: 420px) {
	.nav-actions .nav-orders-link {
		padding-inline: 0.55rem;
		font-size: 0.85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gst-orders-page *,
	.nav-orders-link,
	.mobile-orders-link {
		scroll-behavior: auto;
		transition: none;
	}
}
