.#{$segment-prefix-cls} {
  display: flex;
  min-height: $segment-item-height;
  overflow: hidden;
  border-radius: $border-radius;

  &__item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: $segment-font-size;
    color: $brand-primary;
    background: $white;
    border: $border-width solid $brand-primary;
    border-left-width: 0;
    transition: background $transition-time;

    &:first-child {
      border-left-width: $border-width;
      border-radius: $border-radius 0 0 $border-radius;
    }

    &:last-child {
      border-radius: 0 $border-radius $border-radius 0;
    }

    &--selected {
      color: $white;
      background: $brand-primary;
    }
  }
}
