/* ===========================
   ORDERS QUEUE
   Read at a packing table, often on a phone. Big targets, high contrast,
   nothing decorative competing with the pick list.
=========================== */

.orders-blk {
	padding-top: 130px;
	padding-bottom: 90px;
}

.orders-title {
	margin-bottom: 24px;
}

/* --- Status tabs --------------------------------------------------------- */

.orders-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 30px;
}

.orders-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--onyx);
	border-radius: 999px;
	background: var(--surface);
	color: var(--silver);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.orders-tab:hover,
.orders-tab:focus-visible {
	border-color: var(--accent);
	color: var(--frost);
}

.orders-tab.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--void);
	font-weight: 600;
}

.orders-count {
	font-size: 11px;
	opacity: 0.85;
}

.orders-empty {
	color: var(--smoke);
	font-size: 15px;
}

/* --- Cards --------------------------------------------------------------- */

.orders-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.order-card {
	background: var(--surface);
	border: 1px solid var(--onyx);
	border-left: 3px solid var(--onyx);
	border-radius: 16px;
	padding: 20px 22px;
}

/* Anything still to pack is the work, so it gets the accent edge. */
.order-card--processing {
	border-left-color: var(--accent);
}

.order-card--on-hold {
	border-left-color: #e0b74a;
}

.order-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--onyx);
	margin-bottom: 16px;
}

.order-number {
	font-family: var(--display);
	font-size: 20px;
	letter-spacing: 0.01em;
	color: var(--frost);
	margin-right: 10px;
}

.order-date {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--smoke);
}

.order-status {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--smoke);
	border: 1px solid var(--onyx);
	border-radius: 999px;
	padding: 5px 12px;
	white-space: nowrap;
}

.order-status--processing {
	color: var(--accent);
	border-color: var(--accent);
}

/* --- Body: items beside the address ------------------------------------- */

.order-body {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 28px;
}

@media (max-width: 720px) {
	.order-body {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.order-item {
	display: flex;
	gap: 12px;
	padding: 8px 0;
}

.order-item + .order-item {
	border-top: 1px solid var(--onyx);
}

/* The quantity is the single most misread thing on a pick list. */
.order-qty {
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 500;
	color: var(--accent);
	min-width: 34px;
}

.order-item-name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--frost);
	line-height: 1.35;
}

/* Colour and size live here. Same weight as the product name, because
   picking the wrong variation is the same mistake as picking the wrong item. */
.order-item-meta {
	font-size: 14px;
	color: var(--silver);
	margin-top: 3px;
}

.order-item-meta p {
	margin: 0;
}

.order-sku {
	display: inline-block;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--smoke);
	margin-top: 4px;
}

.order-ship-label {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--smoke);
	margin: 0 0 8px;
}

.order-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--frost);
	margin: 0 0 4px;
}

.order-address {
	font-size: 14px;
	line-height: 1.55;
	color: var(--silver);
}

.order-method {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--accent);
	margin: 10px 0 0;
}

.order-note {
	background: var(--canvas);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--silver);
	line-height: 1.55;
}

.order-note strong {
	color: var(--frost);
}

.order-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--onyx);
}

.order-total {
	font-family: var(--mono);
	font-size: 15px;
	color: var(--frost);
}

.order-open {
	color: var(--accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.order-open:hover,
.order-open:focus-visible {
	text-decoration: underline;
}

@media (max-width: 700px) {

	.orders-blk {
		padding-top: 100px;
		padding-bottom: 60px;
	}

	.order-card {
		padding: 16px 16px 16px 18px;
	}

}

/* --- Footer actions ------------------------------------------------------ */

.order-actions {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* Present only when postage has already been bought, so its presence is
   itself the signal that the order is ready to go out. */
.order-label {
	display: inline-block;
	background: var(--accent);
	color: var(--void);
	font-family: var(--aeonik);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 9px 18px;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.order-label:hover,
.order-label:focus-visible {
	background: var(--frost);
	color: var(--void);
}
