.commerce-card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; min-width:0; }
.commerce-card-heading strong { overflow-wrap:anywhere; }
.commerce-card-heading > div { display:grid; gap:5px; min-width:0; }
.commerce-secondary { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.commerce-badge { display:inline-flex; flex-shrink:0; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; padding:5px 9px; border:1px solid var(--line); border-radius:8px; font-size:11px; background:var(--panel); color:var(--muted); }
.commerce-badge.success { color:var(--mint); background:rgba(96,222,200,.08); }
.commerce-badge.warning { color:var(--amber); }
.commerce-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:12px 0; }
.commerce-facts > div { display:grid; gap:4px; min-width:0; }
.commerce-facts small { color:var(--muted); font-size:11px; }
.commerce-facts strong { font-size:14px; overflow-wrap:anywhere; }
.commerce-product-list .shop-manager-row { align-items:start; padding:16px; }
.commerce-product-list .shop-row-pick { font-size:11px; margin-bottom:8px; }
.commerce-product-list .shop-manager-row-main { min-width:0; }
.commerce-order-card { display:block !important; padding:18px !important; }
.commerce-order-card > .commerce-facts { grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--line); padding-top:12px; }
.commerce-order-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:10px 0; }
.commerce-amount { white-space:nowrap; color:var(--mint); font-size:16px; }
.commerce-catalog-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,180px) minmax(120px,160px); align-items:center; gap:10px; margin-bottom:16px; }
.commerce-catalog-toolbar > .commerce-secondary { grid-column:1/-1; }
.commerce-catalog-toolbar input,.commerce-catalog-toolbar select { min-width:0; width:100%; border:1px solid var(--line); border-radius:10px; padding:11px; background:var(--bg); color:var(--text); font:inherit; }
.commerce-product-card { display:block !important; padding:18px !important; }
.commerce-product-details,.commerce-stock-editor,.commerce-create { border-top:1px solid var(--line); padding-top:12px; }
.commerce-product-details > summary,.commerce-stock-editor > summary,.commerce-create > summary { cursor:pointer; font-weight:650; color:var(--mint); padding:8px 0; }
.commerce-create { margin-top:18px; }
.commerce-create > .notice,.commerce-create > div { margin-top:14px; }
.commerce-catalog-more { border:1px solid var(--line); border-radius:10px; padding:9px 12px; }
.commerce-catalog-more summary { cursor:pointer; color:var(--muted); }
.commerce-catalog-more[open] .btn { margin-top:10px; }
.commerce-bulk-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:14px; }
.commerce-select { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; margin-bottom:12px; }
.commerce-select input { accent-color:var(--mint); }
.commerce-bulk-preview { overflow-wrap:anywhere; margin-top:14px; }
.commerce-catalog .shop-bulk-selection > button { margin:4px 8px 4px 0; }
.commerce-catalog .shop-bulk-selection[hidden] { display:none!important; }
.commerce-create .governance-section { border:0; }
.commerce-client-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:18px 0; }
.commerce-client-tabs button { border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--muted); padding:10px 12px; cursor:pointer; font:inherit; font-size:12px; }
.commerce-client-tabs button[aria-selected="true"] { color:var(--mint); border-color:var(--mint); background:rgba(96,222,200,.08); }
.commerce-client-content { display:block !important; }
.commerce-client-panel { display:grid; gap:14px; }
.commerce-client-order { padding:14px; margin-top:10px; border:1px solid var(--line); border-radius:12px; display:grid; gap:7px; }
.commerce-client-order .btn { justify-self:start; }
#subscriberOverlay .form-modal { width:min(840px,calc(100vw - 28px)); }
#subscriberCardBody { min-width:0; }
.shop-bulk-selection[hidden] { display:none !important; }
.commerce-product-card[hidden],.commerce-client-panel[hidden] { display:none !important; }
.commerce-product-list .shop-manager-row-main { flex:1; }
.commerce-product-list .shop-manager-row-main strong { white-space:normal; overflow:visible; }
#shopSelectPage { margin:0 0 12px; }
@media(max-width:820px) {
  .shop-view-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
  .shop-view-nav button { min-width:0; min-height:44px; padding:9px 4px; font-size:11px; white-space:normal; }
  .commerce-product-list .shop-manager-row { grid-template-columns:1fr; }
  .commerce-product-list .shop-manager-row-actions { justify-content:flex-end; }
  .commerce-catalog-toolbar { grid-template-columns:minmax(0,1fr); }
  .commerce-facts { gap:8px; }
  .commerce-card-heading { flex-wrap:wrap; }
  .commerce-client-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .commerce-client-tabs button { min-width:0; min-height:44px; padding:8px 4px; font-size:11px; }
  .commerce-stock-editor form { flex-wrap:wrap; }
  .commerce-stock-editor input { max-width:100%; min-width:0 !important; }
}
@media(max-width:600px) {
  .shop-manager-modal .form-modal-actions { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; padding:12px 16px; }
  .shop-manager-modal .form-modal-actions .btn { min-width:0; min-height:44px; margin:0; }
  #saveShopManager { grid-column:1/-1; grid-row:1; }
  #saveShopManagerAgain { grid-column:2; }
  #cancelShopManager { grid-column:1; grid-row:2; }
  .commerce-order-actions .btn { min-height:44px; white-space:normal; }
  .commerce-client-order { overflow-wrap:anywhere; }
}
