/* Condition describes the part. Availability keeps its existing colored badge. */
.ct04-condition {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 14px !important;
  font-style: normal;
  font-weight: 500 !important;
  line-height: 1.35;
  text-transform: none;
  white-space: normal !important;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.ct04-condition-used {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}
.ct04-condition-unknown {
  border-style: dashed;
  background: #fff;
  color: #64748b;
}
.product-layout .stats.ct04-identity .stats-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 5px 8px;
  min-width: 0;
}
.product-layout .stats.ct04-identity .stats-group > span {
  flex: 0 1 auto !important;
  max-width: 100%;
}
.product-layout .ct04-identity .ct04-condition { margin: 0; }
.product-stats .ct04-condition { margin: 3px 0 3px 8px; }
@media (max-width: 480px) {
  .product-layout .ct04-identity .stats-group { gap: 5px 6px; }
  .ct04-condition { font-size: 14px !important; padding: 3px 6px; }
  .product-stats .product-sku, .product-stats .product-model {
    flex-wrap: wrap;
    align-items: center;
  }
}

/* A29: wrap article text and condition independently at every width. */
.product-layout .stats.ct04-identity,
.product-layout .stats.ct04-identity .stats-group { min-width: 0; max-width: 100%; }
.product-layout .stats.ct04-identity .stats-group > span:not(.ct04-condition),
.product-layout .stats.ct04-identity .stats-group > span:not(.ct04-condition) > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
.product-stats .product-sku,
.product-stats .product-model {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  max-width: 100%;
}
.product-stats .product-sku > span,
.product-stats .product-model > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.product-stats .product-sku > .ct04-condition,
.product-stats .product-model > .ct04-condition { margin: 0; }
.ct04-condition { min-width: 0; flex-shrink: 1; }
.product-layout .ct04-identity .stat-sku, .product-layout .ct04-identity .stat-model, .product-layout .ct04-identity .ct04-article { flex-wrap: wrap; gap: 2px 4px; }
.product-layout .ct04-identity .stats-label { white-space: nowrap !important; overflow-wrap: normal; flex: 0 0 auto; }
