@import 'main';

.filters {
  @include flexbox();
  @include flex-wrap(wrap);
}

.item {
  margin-right: 16px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid $color_grey;
  background-color: $color_paper;
  @include border-radius(18px);
  min-width: 100px;
  max-width: 240px;
  color: $color_grey;
  cursor: pointer;
  @include box-shadow($box_shadow_light);
  @include transition();
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  @include no-text-selection();
  overflow: hidden;

  &:last-child {
    margin-right: 0;
  }

  &.disabled {
    background-color: $color_light;
  }

  &:hover, &.active {
    border-color: $color_primary;
  }

  &.active {
    background-color: $color_primary;
    color: $color_paper;
  }
}
