.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.cart-item-body {
  flex: 1;
}
.cart-item-label {
  font-weight: bold;
  font-size: 14px;
  margin: 0 0 4px;
}
.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.cart-item-price {
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #b91c1c;
}
.cart-item-remove:hover { background: #fee2e2; }

.cart-summary {
  max-width: 640px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 14px;
}
.cart-checkout-btn {
  width: 100%;
}


/* ---- delivery form & payment ---- */
.delivery-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.delivery-form h2 { margin: 0 0 4px; font-size: 18px; }
.delivery-form label { display: grid; gap: 4px; font-size: 13px; font-weight: bold; }
.delivery-form .optional { font-weight: normal; color: var(--muted); }
.delivery-form input,
.delivery-form select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: normal;
  background: #fff;
}
.delivery-form .field-error { border-color: #b91c1c; background: #fef2f2; }
.delivery-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.hidden { display: none !important; }

.payment-notice {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
}
.payment-notice p { margin: 0 0 10px; }

/* ---- orders ---- */
.orders-banner {
  max-width: 640px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  background: #dcfce7;
  color: #166534;
}
.orders-banner.notice { background: #fef3c7; color: #92400e; }
.status-badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.status-paid { background: #dcfce7; color: #166534; }
.status-pending_payment { background: #fef3c7; color: #92400e; }
.status-refunded { background: #fee2e2; color: #991b1b; }
.order-ship { white-space: pre-line; margin-top: 6px; }
.pay-now, .order-invoice { margin-top: 8px; }

/* ---- order progress (customer) ---- */
.status-badge + .status-badge { margin-left: 6px; }
.fs-received { background: #e0ecff; color: #1e3a8a; }
.fs-processing, .fs-printing { background: #fef3c7; color: #92400e; }
.fs-ready { background: #ccfbf1; color: #115e59; }
.fs-shipped { background: #dbeafe; color: #1e40af; }
.fs-delivered { background: #dcfce7; color: #166534; }
.fs-cancelled { background: #e5e7eb; color: #374151; }
.order-update { margin: 4px 0; font-weight: bold; }
.order-timeline { list-style: none; margin: 6px 0 8px; padding: 0; font-size: 12px; color: var(--muted); }
.order-timeline li { margin: 0 0 3px; padding-left: 8px; border-left: 2px solid var(--line); }
