/* Wizard резки — только для «Новая» корзина */
html[data-cart-view="new"] .cutting-wizard-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

html[data-cart-view="new"] .cutting-wizard-steps__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f5f7;
  color: #6b7c8a;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #e2e8ee;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

html[data-cart-view="new"] .cutting-wizard-steps__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d8dee6;
  color: #3a5568;
  font-size: 12px;
  font-weight: 700;
}

/* 1. Что режем — стальной / navy */
html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="1"].is-active {
  background: #eef3f8;
  color: #073e71;
  box-shadow: inset 0 0 0 2px #073e71;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="1"].is-active span {
  background: #073e71;
  color: #fff;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="1"].is-done {
  background: #e8eef5;
  color: #1a4a73;
  box-shadow: inset 0 0 0 1px #b7c9db;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="1"].is-done span {
  background: #073e71;
  color: #fff;
}

/* 2. Как режем — янтарный / резка */
html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="2"].is-active {
  background: #fff6eb;
  color: #8a4b00;
  box-shadow: inset 0 0 0 2px #e0a04a;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="2"].is-active span {
  background: #d4891a;
  color: #fff;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="2"].is-done {
  background: #fff8ee;
  color: #8a5a10;
  box-shadow: inset 0 0 0 1px #e8c48a;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="2"].is-done span {
  background: #d4891a;
  color: #fff;
}

/* 3. Итого — зелёный / готово */
html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="3"].is-active {
  background: #eef8ea;
  color: #1f5c16;
  box-shadow: inset 0 0 0 2px #5aad3a;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="3"].is-active span {
  background: #3f9a2a;
  color: #fff;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="3"].is-done {
  background: #eef7e8;
  color: #2d6a1e;
  box-shadow: inset 0 0 0 1px #b5d9a8;
}

html[data-cart-view="new"] .cutting-wizard-steps__item[data-wizard-tab="3"].is-done span {
  background: #3f9a2a;
  color: #fff;
}

html[data-cart-view="new"] .cutting-wizard-lead {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1d3a4d;
}

html[data-cart-view="new"] .cutting-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2ebf1;
}

/* как .cutting-plan-toggle / .cutting-plan__add — компактные, не main-btn */
html[data-cart-view="new"] .cutting-wizard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 0;
  height: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #b7d7ea;
  background: #eef7fc;
  color: #17648d;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

html[data-cart-view="new"] .cutting-wizard-btn:hover {
  background: #e2f1fa;
  border-color: #8fbfd9;
  color: #0f4f70;
}

html[data-cart-view="new"] .cutting-wizard-btn--primary {
  border-color: #3ebbf3;
  background: #3ebbf3;
  color: #fff;
}

html[data-cart-view="new"] .cutting-wizard-btn--primary:hover {
  background: #2aa8e0;
  border-color: #2aa8e0;
  color: #fff;
}

html[data-cart-view="new"] .cutting-wizard-nav .main-btn,
html[data-cart-view="new"] .cutting-wizard-nav .gray-btn {
  /* на случай старой разметки */
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  width: auto !important;
}

html[data-cart-view="new"] .cutting-plan__summary--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  margin-bottom: 0;
}

/* на шаге 1 подсчёты после выбора; на шаге 3 — скрываем дубль (итог в панели) */
html[data-cart-view="new"] .cutting-plan[data-wizard-step="3"] .cutting-plan__summary--compact {
  display: none;
}

html[data-cart-view="new"] .cutting-plan__summary-item--stock {
  display: none;
}

html[data-cart-view="new"] .cutting-plan__hint--legacy,
html[data-cart-view="new"] .cutting-stock-bar,
html[data-cart-view="new"] .cutting-stock-bar__legend {
  display: none !important;
}

html[data-cart-view="new"] .cutting-target__label {
  display: none;
}

html[data-cart-view="new"] .cutting-target__card {
  padding: 10px 12px;
  border-radius: 8px;
}

html[data-cart-view="new"] .cutting-target__card.is-active {
  border-color: #073e71;
  background: #eef3f8;
  box-shadow: 0 0 0 2px rgba(7, 62, 113, 0.12);
}

html[data-cart-view="new"] .cutting-target__card strong {
  font-size: 13px;
}

html[data-cart-view="new"] .cutting-target__card span {
  font-size: 12px;
}

/* primary на шаге 1 — navy; на шаге 2 — янтарь; на шаге 3 — зелёный */
html[data-cart-view="new"] .cutting-plan[data-wizard-step="1"] .cutting-wizard-btn--primary {
  border-color: #073e71;
  background: #073e71;
  color: #fff;
}

html[data-cart-view="new"] .cutting-plan[data-wizard-step="1"] .cutting-wizard-btn--primary:hover {
  background: #0a4f8f;
  border-color: #0a4f8f;
}

html[data-cart-view="new"] .cutting-plan[data-wizard-step="2"] .cutting-wizard-btn--primary {
  border-color: #d4891a;
  background: #d4891a;
  color: #fff;
}

html[data-cart-view="new"] .cutting-plan[data-wizard-step="2"] .cutting-wizard-btn--primary:hover {
  background: #b87412;
  border-color: #b87412;
}

html[data-cart-view="new"] .cutting-plan[data-wizard-step="3"] .cutting-wizard-btn--primary {
  border-color: #3f9a2a;
  background: #3f9a2a;
  color: #fff;
}

html[data-cart-view="new"] .cutting-plan[data-wizard-step="3"] .cutting-wizard-btn--primary:hover {
  background: #348222;
  border-color: #348222;
}

html[data-cart-view="new"] .cutting-wizard-done {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e2ebf1;
  font-size: 14px;
}

html[data-cart-view="new"] .cutting-plan__cost-breakdown[hidden] + .cutting-wizard-done {
  display: block;
}

html[data-cart-view="new"] .cutting-plan__cost-breakdown:not([hidden]) + .cutting-wizard-done {
  display: none;
}

/* Оригинал: подсчёты сверху, как раньше */
html[data-cart-view="original"] .cutting-plan--wizard,
html:not([data-cart-view]) .cutting-plan--wizard {
  display: flex;
  flex-direction: column;
}

html[data-cart-view="original"] .cutting-plan__summary,
html:not([data-cart-view]) .cutting-plan__summary {
  order: -1;
}

/* Оригинал: все панели сразу, без визарда */
html[data-cart-view="original"] .cutting-wizard-steps,
html[data-cart-view="original"] .cutting-wizard-lead,
html[data-cart-view="original"] .cutting-wizard-nav,
html:not([data-cart-view]) .cutting-wizard-steps,
html:not([data-cart-view]) .cutting-wizard-lead,
html:not([data-cart-view]) .cutting-wizard-nav {
  display: none !important;
}

html[data-cart-view="original"] .cutting-wizard-panel,
html:not([data-cart-view]) .cutting-wizard-panel {
  display: block !important;
}

html[data-cart-view="original"] .cutting-wizard-panel[hidden],
html:not([data-cart-view]) .cutting-wizard-panel[hidden] {
  display: block !important;
}

html[data-cart-view="original"] .cutting-wizard-done,
html:not([data-cart-view]) .cutting-wizard-done {
  display: none !important;
}
