/* --- «Прайс бота» во вкладке «AI-бот» (bot-price.js) ------------------------------
   Таблица, которую магазин правит сам: название, цена, «в продаже», хит, состав.
   Свои переключатели вместо чекбоксов — как везде в кабинете. 28.10.2026. */
.bprc { margin-bottom: 14px; }
.bprc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bprc__head h3 small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.bprc__acts { display: flex; gap: 8px; }
.bprc__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.bprc__note { margin: 4px 0 10px; }
.bprc__note a { color: var(--accent-ink, var(--accent)); }
.bprc__dirty { margin: 0 0 10px; color: var(--warm, #d98a12); font-weight: 600; }

.bprc .input {
  width: 100%; min-width: 0; box-sizing: border-box; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.3;
}
.bprc .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.bprc__find { max-width: 260px; }

.bprc__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bprc__sec { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel-2, var(--bg)); }
.bprc__sechead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.bprc__title { font-weight: 700; max-width: 360px; background: transparent !important; border-color: transparent !important; }
.bprc__title:hover, .bprc__title:focus { border-color: var(--line) !important; background: var(--bg) !important; }
.bprc__cnt { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bprc__fold {
  width: 28px; height: 28px; flex: none; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 14px;
}
.bprc__fold:hover { background: var(--panel); color: var(--text); }
.bprc__rows { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px 46px; }
.bprc__add { align-self: flex-start; margin-top: 2px; }

.bprc__row { display: grid; grid-template-columns: minmax(0, 1fr) 118px auto auto auto auto; gap: 6px; align-items: center; }
.bprc__row.is-off .bprc__name, .bprc__row.is-off .bprc__price input { color: var(--muted); }
.bprc__price { position: relative; display: block; }
.bprc__price .input { padding-right: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.bprc__price span { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.bprc__price.is-bad input { border-color: var(--alert); }
.bprc__comp { grid-column: 1 / -1; resize: vertical; font-size: 13px; }

.bprc__tog, .bprc__hit, .bprc__more, .bprc__del {
  height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.bprc__tog { padding: 0 12px; min-width: 96px; }
.bprc__tog.is-on { background: color-mix(in srgb, var(--ok) 14%, var(--bg)); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); color: var(--ok); }
.bprc__hit { width: 32px; font-size: 15px; }
.bprc__hit.is-on { background: var(--warm-tint, #fff1dc); border-color: var(--warm, #d98a12); color: var(--warm, #d98a12); }
.bprc__more { padding: 0 10px; }
.bprc__more.has { color: var(--text); }
.bprc__del { width: 32px; font-size: 16px; font-weight: 400; }
.bprc__del:hover { border-color: var(--alert); color: var(--alert); }
.bprc__del[data-sure="1"] { width: auto; padding: 0 10px; font-size: 12px; border-color: var(--alert); color: var(--alert); }
.bprc__tog:hover, .bprc__hit:hover, .bprc__more:hover { border-color: var(--accent); }

@media (max-width: 720px) {
  .bprc__rows { padding-left: 10px; }
  /* две строки на позицию: название и «×», под ними цена и переключатели */
  .bprc__row { display: flex; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .bprc__name { flex: 1 1 calc(100% - 44px); order: 0; }
  .bprc__del { order: 1; }
  .bprc__price { flex: 0 0 92px; order: 2; }
  .bprc__tog { order: 3; min-width: 0; padding: 0 10px; }
  .bprc__hit { order: 4; }
  .bprc__more { order: 5; padding: 0 9px; }
  .bprc__comp { flex: 1 1 100%; order: 6; }
  .bprc__find { max-width: none; }
}
