/*
 * A swatch, a name and its count — the row that names a chart's colours. 130px is a wish for column
 * alignment, not a floor; only the label gives way. The 8px swatch matches `TotalsLine`'s, since
 * both annotate the same charts.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-legend-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 1;
    min-width: 130px;
    gap: var(--lotics-space-8);
  }

  .lotics-legend-item__swatch {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: calc(var(--lotics-radius-control) - var(--lotics-space-8));
    background-color: var(--lotics-legend-item-swatch);
  }

  .lotics-legend-item__label {
    flex-shrink: 1;
    min-width: 0;
  }
}
