/* Корзина и заявка (план §7.8): панель справа, заявка — второй шаг в той же панели. */
.cart__list { display: grid; }
.ci { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--tone-2); align-items: start; }
.ci__media { width: 72px; height: 90px; background: var(--tone); position: relative; }
.ci__media .gm { position: absolute; inset: 6px; width: auto; height: auto; }
.ci__info { display: grid; gap: 2px; font-size: var(--fs-s); line-height: var(--lh-s); min-width: 0; }
.ci__info b { font-weight: 500; font-size: var(--fs-m); line-height: var(--lh-m); }
.ci__info .t-mute { overflow-wrap: anywhere; }
.ci__act { display: grid; justify-items: end; gap: 6px; }
.ci__rm { font-size: var(--fs-s); color: var(--mute); min-height: 32px; display: inline-flex; align-items: center; }
.ci__rm:hover { color: var(--ink); }
.cart__empty { padding: 40px 0; color: var(--mute); font-size: var(--fs-s); line-height: var(--lh-s); display: grid; gap: 12px; justify-items: start; }
.cart__tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-m); }
.cart__tot small { color: var(--mute); }
.cart__note { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--mute); }

/* Шаг заявки */
.ord { display: grid; gap: 18px; padding-top: 6px; }
.ord__sum { font-size: var(--fs-s); line-height: var(--lh-s); display: grid; gap: 6px; }
.ord__sum li { display: flex; justify-content: space-between; gap: 12px; }
.ord__sum li span:first-child { overflow-wrap: anywhere; }
.ord__pre {
  margin: 0;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--tone-2);
  font: 400 var(--fs-s) / var(--lh-s) var(--font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 32vh;
  overflow: auto;
}
.ord__id { font: 500 var(--fs-l) / 1 var(--disp); }
.ord__row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.ord__fields { display: grid; gap: 14px; }
.ord__sum li.ord__sub { padding-left: 12px; color: var(--mute); }
.ord__sum b { font-weight: 500; }
.ord__warn { display: block; color: var(--err); }
.ord__tots { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--tone-2); }
.ord__terms { font-size: var(--fs-s); line-height: var(--lh-s); }
.ord__how, .ord__status { font-size: var(--fs-s); line-height: var(--lh-s); }
.ord__status { font-size: var(--fs-m); line-height: var(--lh-m); }
.ord__status[data-status="failed"], .ord__status[data-status="partial"], .ord__status[data-status="saved"], .ord__status[data-status="unknown"] { color: var(--err); }
.ord__files { display: grid; gap: 6px; font-size: var(--fs-s); line-height: var(--lh-s); }
.ord__files li { display: flex; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }

/* Длинная подпись корзины и пошива переносится внутри чёрного прямоугольника. */
.cart .panel__foot .btn:not(.btn--ghost),
button.btn[data-sew-send]:not(.btn--ghost) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 0 !important;
  background: #000 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  white-space: normal !important;
  text-align: center;
  overflow-wrap: break-word;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.cart .panel__foot .btn:not(.btn--ghost) > span,
button.btn[data-sew-send]:not(.btn--ghost) > span {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.brief__row:has(> button.btn[data-sew-send]) { width: 100%; min-width: 0; }
