.pure-segmented {
  --pure-segmented-bg-color: var(--el-bg-color);
  --pure-segmented-item-color: var(--el-text-color-regular);
  --pure-segmented-item-selected-color: var(--el-text-color-primary);
  --pure-segmented-item-selected-bg-color: var(--el-bg-color-page);
  --pure-segmented-item-hover-color: var(--el-text-color-primary);
  --pure-segmented-border-radius: var(--el-border-radius-base);
  --pure-segmented-padding: 2px;

  position: relative;
  display: inline-block;
  padding: var(--pure-segmented-padding);
  background-color: var(--pure-segmented-bg-color);
  border-radius: var(--pure-segmented-border-radius);
  box-sizing: border-box;
  font-size: 14px;
  color: var(--pure-segmented-item-color);
}

.pure-segmented-block {
  display: flex;
  width: 100%;
}

.pure-segmented-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pure-segmented-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background-color: var(--pure-segmented-item-selected-bg-color);
  border-radius: var(--pure-segmented-border-radius);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08),
    0 4px 12px -4px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease-in-out, width 0.2s ease-in-out;
}

.pure-segmented-item-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pure-segmented-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  min-height: 28px;
  cursor: pointer;
  border-radius: var(--pure-segmented-border-radius);
  transition: color 0.2s ease-in-out;
  z-index: 1;
}

.pure-segmented-item:hover {
  color: var(--pure-segmented-item-hover-color);
}

.pure-segmented-item.is-selected {
  color: var(--pure-segmented-item-selected-color);
}

.pure-segmented-item-icon {
  margin-right: 4px;
  font-size: 16px;
}

.pure-segmented-item-label {
  white-space: nowrap;
}
