@include prefix(segment-group) {

  background-color: plv(secondary-light-2);
  display: inline-flex;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 3px;

  @include prefix(segment) {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: transparent;
    transition: all ease 300ms;

    & + span {
      margin-left: 3px;
    }
    &:hover {
      color: plv(primary-6);
      cursor: pointer;
    }
    &.segment-active {
      background-color: plv(background-color);
      color: plv(primary-6);
    }
  }

  @include sizeMixin(segment-group, (font-size, height)) {

    &.segment-group-shape-square {
      border-radius: $border-radius;
      @include prefix(segment) {
        border-radius: $border-radius;
      }
    }

    &.segment-group-shape-round {
      border-radius: $height;
      @include prefix(segment) {
        border-radius: $height;
      }
    }
  }
}
