.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-xs) var(--space-2);
  align-items: start;
  min-height: 28px;
  padding: 2px 0;
}

.swatch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.mainRow {
  grid-row: 1;
  grid-column: 1 / -1;
  min-width: 0;
}

.detailRow {
  grid-row: 2;
  grid-column: 1 / -1;
  min-width: 0;
}

.detailStack {
  justify-content: flex-start;
}

.hasSwatch .detailRow {
  padding-left: calc(10px + var(--space-2));
}

.labelGroup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
}

.label,
.description,
.meta {
  color: var(--text-tertiary);
}

.label,
.labelGroup,
.value,
.description,
.meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.meta {
  flex: 0 0 auto;
  text-align: right;
}

.detailStack .meta {
  text-align: left;
}

.value {
  color: var(--text-primary);
  font-weight: var(--font-weight-regular);
  text-align: right;
}

.valueBody {
  font-size: var(--font-size-3);
}

.valueCaption {
  font-size: var(--typo-caption-size);
  line-height: var(--typo-caption-line-height);
}

.sample-swatch {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
}

.color-swatch {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--swatch-color);
}
