.infografika {
  --bt: 4px;
}

.infografika-legend-item {
  max-width: 20%;
  display: flex;
  align-items: center;
  margin: calc(var(--bt) * 1);
}

.infografika-legend-item > * + * {
  margin-left: calc(var(--bt) * 1);
}

.infografika-legend-item .infografika-legend-item__label {
  line-height: 16px;
}

.infografika-legend-item__label {
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.infografika-legend-item__value {
  font-size: 12px;
}

.infografika-legend-item__color {
  flex: none;
  width: 16px;
  height: 16px;
}

.infografika-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.infografika-legend--default > * + * {
  margin-left: calc(var(--bt) * 2);
}

.infografika-legend--column {
  flex-direction: column;
}

.infografika-legend--column > * + * {
  margin-top: calc(var(--bt) * 2);
}

.infografika-legend--start {
  justify-content: flex-start;
}
.infografika-legend--end {
  justify-content: flex-end;
}
.infografika-legend--center {
  justify-content: center;
}

.infografika-legend-gradient {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-direction: row;
}

.infografika-legend-gradient.infografika-legend-gradient--reverse {
  flex-direction: row-reverse;
}

.infografika-legend__gradient {
  width: 100%;
  height: 16px;
  margin: 0 calc(var(--bt) * 2);
}

.infografika-legend-gradient--vertical .infografika-legend__gradient {
  width: 16px;
  height: 100%;
  margin: calc(var(--bt) * 2) 0;
}

.infografika-legend-gradient--vertical {
  height: 100%;
  flex-direction: column;
}

.infografika-legend-gradient--vertical.infografika-legend-gradient--reverse {
  height: 100%;
  flex-direction: column-reverse;
}
