/**
 * ZYMARG Shipping — order header, item rows, and invoice button.
 *
 * Owned centrally here (see includes/couriers/order-panel.php) so the
 * seller dashboard and the buyer theme both render identical markup
 * instead of each styling their own copy.
 */

.zymarg-ship-order-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.zymarg-ship-order-header__main {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

.zymarg-ship-order-header__order {
	font-size: 1rem;
	font-weight: 800;
}

.zymarg-ship-order-header__meta {
	font-size: .82rem;
	opacity: .75;
}

.zymarg-ship-order-header__dot {
	margin: 0 4px;
	opacity: .55;
}

.zymarg-ship-order-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.zymarg-ship-order-header__status {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	background: #eee;
	color: #333;
	white-space: nowrap;
}
.zymarg-ship-order-header__status--processing { background: #e6f0ff; color: #1657c8; }
.zymarg-ship-order-header__status--completed { background: #e3f7ec; color: #1a8a52; }
.zymarg-ship-order-header__status--on-hold { background: #fff3df; color: #b9770a; }
.zymarg-ship-order-header__status--cancelled,
.zymarg-ship-order-header__status--refunded { background: #fdecec; color: #c0392b; }

[data-theme="dark"] .zymarg-ship-order-header__status--processing { background: rgba(22, 87, 200, .18); color: #8db4ff; }
[data-theme="dark"] .zymarg-ship-order-header__status--completed { background: rgba(26, 138, 82, .18); color: #6fdca0; }
[data-theme="dark"] .zymarg-ship-order-header__status--on-hold { background: rgba(185, 119, 10, .2); color: #f0b64f; }
[data-theme="dark"] .zymarg-ship-order-header__status--cancelled,
[data-theme="dark"] .zymarg-ship-order-header__status--refunded { background: rgba(192, 57, 43, .2); color: #ff9a8c; }

.zymarg-ship-invoice-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 8px;
	font-size: .78rem;
	font-weight: 700;
	background: transparent;
	border: 1px solid currentColor;
	opacity: .85;
	text-decoration: none;
	white-space: nowrap;
}
.zymarg-ship-invoice-btn:hover {
	opacity: 1;
	text-decoration: none;
}

.zymarg-ship-order-items__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 4px 0;
}
.zymarg-ship-order-items__item-img {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}
.zymarg-ship-order-items__item-emoji {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1rem;
	background: rgba(127, 127, 127, .12);
	border-radius: 6px;
}
.zymarg-ship-order-items__item-main {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	gap: 2px;
}
.zymarg-ship-order-items__item-name {
	font-weight: 600;
	font-size: .86rem;
	word-break: break-word;
}
.zymarg-ship-order-items__item-name a {
	color: inherit;
	text-decoration: none;
}
.zymarg-ship-order-items__item-name a:hover,
.zymarg-ship-order-items__item-name a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.zymarg-ship-order-items__item-qty {
	font-size: .78rem;
	opacity: .65;
	white-space: nowrap;
}
.zymarg-ship-order-items__item-price {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: .86rem;
	white-space: nowrap;
}
.zymarg-ship-order-items__item--empty {
	opacity: .65;
	font-style: italic;
	font-size: .85rem;
}
