.product-info {
  flex: 1;
  min-width: 0;
}

.size-row {
  align-items: center;
  min-height: 74px;
  padding-block: 9px;
}

.variant-key { min-width: 0; }

.variant-key .offer {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.new-item-badge {
  background: var(--amber-bg);
  border-radius: 12px;
  color: var(--amber);
  display: inline-block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .45px;
  margin-left: 7px;
  padding: 2px 6px;
  vertical-align: 2px;
}

.ozon-state {
  background: #eef2ee;
  border-radius: 12px;
  color: var(--muted);
  display: inline-block;
  font-size: 9px;
  font-weight: 650;
  margin-left: 6px;
  padding: 2px 6px;
  vertical-align: 2px;
}

.ozon-state-in_sale { background: var(--mint); color: var(--green); }
.ozon-state-archived { background: #f8e9e8; color: var(--red); }

.new-item-row { background: #fffdf6; }

.variant-identifiers {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}

.variant-identifiers summary {
  cursor: pointer;
  list-style-position: inside;
  width: max-content;
}

.variant-identifiers-body {
  background: #f7f9f5;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 7px 8px;
}

.identifier-line {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.identifier-line code {
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.identifier-copy {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 10px;
  padding: 2px;
}

.row-actions .confirm-new-item {
  background: var(--mint);
  border: 1px solid #cddccc;
  border-radius: 6px;
  font-weight: 650;
  padding-inline: 8px;
}

.model-manage {
  align-self: flex-start;
  background: var(--mint);
  border: 1px solid #cddccc;
  border-radius: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  min-height: 36px;
  padding: 7px 10px;
}

.model-manage:hover {
  background: #dcebd9;
}

.model-dialog {
  max-width: 760px;
}

.model-sizes {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 20px;
  max-height: 55vh;
  overflow: auto;
}

.model-sizes > .muted {
  margin: 0;
  padding: 22px;
}

.model-size-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(170px, 1fr) 120px auto;
  padding: 13px 15px;
}

.model-size-row + .model-size-row {
  border-top: 1px solid var(--line);
}

.model-size-row strong,
.model-size-row small {
  display: block;
}

.model-size-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.model-size-state {
  color: var(--green);
  font-size: 13px;
  text-align: right;
}

.model-size-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.model-size-actions .small-action {
  min-height: 36px;
  padding: 6px 10px;
}

.model-size-actions .remove-size {
  color: var(--red);
}

.removed-size {
  background: #f5f5f2;
  color: var(--muted);
}

.removed-size .model-size-state {
  color: var(--red);
}

.removed-row {
  background: #f5f5f2;
  color: var(--muted);
}

.removed-label {
  color: var(--red);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 650px) {
  .product-head {
    align-items: flex-start;
  }

  .model-size-row {
    grid-template-columns: 1fr auto;
  }

  .model-size-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* v19.1: identifiers occupy a full card row */
.variant-identifiers {
  align-self: start;
  grid-column: 2 / -1;
  margin-top: -3px;
  min-width: 0;
}

.variant-identifiers-body {
  width: 100%;
}

.identifier-line {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  min-width: 0;
}

.identifier-line code {
  min-width: 0;
  overflow-x: auto;
  overflow-wrap: normal;
  white-space: nowrap;
}

