.wa-segment {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  background: var(--color-bg-2, #fff);
  border: 1px solid var(--color-border-2);
  border-radius: var(--wa-input-radius, 8px);
}

.wa-segment-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 28px;
  padding: 0 14px;
  color: var(--color-text-2);
  font-size: 13px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  border: none;
  border-right: 1px solid var(--color-border-2);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.wa-segment-item:last-child {
  border-right: none;
}

.wa-segment-item:hover:not(.is-active) {
  color: rgb(var(--primary-6));
  background: rgba(var(--primary-6), 0.06);
}

.wa-segment-item.is-active {
  color: #fff;
  background: rgb(var(--primary-6));
  border-right-color: rgb(var(--primary-6));
}

.wa-segment-item.is-active + .wa-segment-item {
  border-left-color: transparent;
}

body[arco-theme='dark'] .wa-segment {
  background: var(--color-fill-1, #2a2a2b);
  border-color: var(--color-neutral-3, #484849);
}

body[arco-theme='dark'] .wa-segment-item {
  border-right-color: var(--color-neutral-3, #484849);
}
