/* Commerce only: accepted catalogue/sidebar/cards stay untouched. */
.commerce-panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; min-width: 0; overflow-wrap: anywhere; }
.commerce-panel h3, .commerce-panel h4 { margin: 0 0 12px; }
.commerce-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin: 12px 0; }
.commerce-totals dt { opacity: .8; }
.commerce-totals dd { margin: 0; font-weight: 650; text-align: right; }
.commerce-total { border-top: 1px solid var(--line); padding-top: 10px; }
.commerce-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.commerce-card-form { display: grid; gap: 10px; margin-top: 12px; }
.commerce-card-form input { width: 100%; min-width: 0; }
.commerce-error:not(:empty), [data-checkout-error]:not(:empty), [data-inquiry-error]:not(:empty) { color: #a52c1c; }
html[data-theme="dark"] .commerce-error:not(:empty), html[data-theme="dark"] [data-checkout-error]:not(:empty), html[data-theme="dark"] [data-inquiry-error]:not(:empty) { color: #f49c89; }
.commerce-error { overflow-wrap: anywhere; }
.commerce-panel [hidden], .checkout-invoice-note[hidden] { display: none !important; }
.commerce-panel a, .account-order a { text-decoration: underline; text-underline-offset: 3px; }
.commerce-quote-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.commerce-quote-form .field { min-width: 0; }
.commerce-quote-form input, .commerce-quote-form select, .commerce-quote-form textarea { width: 100%; min-width: 0; }
.commerce-quote-form .commerce-wide { grid-column: 1 / -1; }
.commerce-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px; border-top: 1px solid var(--line); }
.commerce-page-note { color: var(--muted); font-size: 12px; padding: 0 14px; }
@media (max-width: 640px) {
  .commerce-panel { padding: 10px; }
  .commerce-quote-form { grid-template-columns: minmax(0, 1fr); }
  .commerce-quote-form .commerce-wide { grid-column: auto; }
  .commerce-pagination span { width: 100%; text-align: center; order: -1; }
  .commerce-actions > .btn { flex: 1 1 auto; }
}
