/* SP2s Glass — order cards shared by the thank-you and view-order pages. */

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.order-card { border-radius: var(--r-md); padding: 24px; margin-bottom: 16px; }
.order-grid .order-card { margin-bottom: 0; }
.order-card h2 { font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; margin-bottom: 16px; }

.order-store { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.order-store b { font-size: 18px; }
.order-store p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.order-store-badge {
	flex: none; padding: 6px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #fff;
	background: linear-gradient(180deg, #f58220 0 33%, #00843d 33% 66%, #e30613 66%);
}

.order-list, .order-totals { margin: 0; }
.order-list div, .order-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; }
.order-list dt, .order-totals dt { color: var(--text-2); }
.order-list dd, .order-totals dd { margin: 0; font-weight: 600; text-align: right; }

.order-due {
	display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding: 16px 18px; border-radius: 16px;
	background: rgba(0, 113, 227, .08); color: var(--blue);
}
.order-due span { font-weight: 600; }
.order-due b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

.order-items { list-style: none; margin: 0; padding: 0 0 6px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.order-items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.order-thumb { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .8); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.order-item-name small { color: var(--text-3); margin-left: 4px; white-space: nowrap; }
.order-item-total { flex: none; font-weight: 600; font-size: 15px; }
.order-totals { padding-top: 6px; }
.order-totals .is-total { border-top: 1px solid rgba(0, 0, 0, .06); margin-top: 4px; padding-top: 14px; }
.order-totals .is-total dt { color: var(--text); font-weight: 700; }
.order-totals .is-total dd { font-size: 20px; font-weight: 800; }

/* 訂單狀態標籤：依 sp2s_glass_order_status_tone() 分色 */
.status-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
	font-size: 13px; font-weight: 700; white-space: nowrap; background: rgba(0, 113, 227, .1); color: var(--blue);
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.is-wait { background: rgba(245, 158, 11, .14); color: #b45309; }
.status-badge.is-transit { background: rgba(124, 58, 237, .1); color: #6d28d9; }
.status-badge.is-pickup { background: rgba(6, 199, 85, .14); color: #047857; }
.status-badge.is-done { background: rgba(26, 159, 83, .12); color: #15803d; }
.status-badge.is-muted { background: rgba(0, 0, 0, .06); color: var(--text-3); }
.status-badge.is-error { background: rgba(229, 72, 77, .12); color: #e5484d; }

@media (max-width: 760px) {
	.order-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
	.order-card { padding: 18px; }
}
