@use '@/styles/variables' as *;
@use '@/styles/mixins' as *;

.regionDistribution {
  height: 100%;

  &__content {
    display: flex;
    align-items: center;
    gap: $spacing-xxl;

    @include respond-below(md) {
      flex-direction: column;
    }
  }

  &__chart {
    flex: 1;
    min-width: 250px;
  }

  &__legend {
    display: flex;
    flex-direction: column;
    gap: $spacing-md;
    min-width: 200px;
  }

  &__legendItem {
    @include flex-start;
    gap: $spacing-sm;
  }

  &__legendColor {
    width: 12px;
    height: 12px;
    border-radius: $border-radius-sm;
    flex-shrink: 0;
  }

  &__legendLabel {
    flex: 1;
    font-size: $font-size-sm;
    color: $text-primary;
  }

  &__legendValue {
    font-family: $font-family-number;
    font-size: $font-size-sm;
    font-weight: $font-weight-medium;
    color: $text-primary;
  }
}
