/* FR-742 SHP-03a/b: the partners' Shop in cs-admin. Only the panel's own tokens (style.css) — no new colours, fonts or
   sizes; the helpers below are layout only: the «changed» dot of a catalog tab, the sticky bar of the selected rows, the
   price column, and the tables on a phone. */

.shop-subtabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shop-subtabs .subtab-btn { flex: none; white-space: nowrap; }

.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-head-main { min-width: 0; }
.shop-title { margin: 0 0 2px; }
.shop-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

.shop-catalog-tabs { margin-bottom: 10px; }

/* the bar of the selected rows stays at the top of the window while one is ticked, wherever in the list the person is */
.shop-bulk { position: sticky; top: 0; z-index: 5; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; flex-wrap: wrap; align-items: flex-end; }
.shop-bulk-count { font-weight: 600; }
.shop-price { width: 110px; }
.shop-num { white-space: nowrap; }

.shop-group-row td { background: #fafbfc; font-weight: 600; }
.shop-switch { display: inline-flex; align-items: center; gap: 6px; }
.shop-switch-row { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; font-weight: normal; }
.shop-warn { color: #8a5a00; }
.shop-row-changed .shop-price { border-color: var(--accent); }

.shop-section { margin-bottom: 22px; }
.shop-section h3 { margin: 0 0 6px; font-size: 15px; }
.shop-changes { display: flex; flex-direction: column; gap: 2px; }
.shop-change { font-size: 13px; }

.shop-assign-results { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 6px; }
.shop-preview-product { border-top: 1px solid var(--border); padding: 6px 0; }
.shop-preview-name { font-weight: 600; }
.shop-compare-wrap { max-height: 50vh; }

/* the editor and the comparison on a phone: the table scrolls inside its own box, the first column stays readable */
@media (max-width: 760px) {
  .shop-edit { min-width: 720px; }
  .shop-compare { min-width: 640px; }
  .shop-bulk { align-items: stretch; }
  .shop-bulk .btn { flex: 1 1 45%; }
  .shop-head { align-items: stretch; }
  .shop-head > .btn { flex: 1 1 100%; }
}
