@utility segmented-control {
  @apply flex items-center bg-components-segmented-control-bg-normal gap-x-px;
}

@utility segmented-control-regular {
  @apply rounded-lg;

  &.sc-padding {
    @apply p-0.5;
  }
}

@utility segmented-control-large {
  @apply rounded-lg;

  &.sc-padding {
    @apply p-0.5;
  }
}

@utility sc-padding {
  &.segmented-control-large {
    @apply p-0.5;
  }

  & .segmented-control-regular {
    @apply p-0.5;
  }

  &.segmented-control-small {
    @apply p-px;
  }
}

@utility segmented-control-small {
  @apply rounded-md;

  &.sc-padding {
    @apply p-px;
  }
}

@utility sc-no-padding {
  @apply border-[0.5px] border-divider-subtle;
}

@utility segmented-control-item {
  @apply flex items-center justify-center relative border-[0.5px] border-transparent;
}

@utility segmented-control-item-regular {
  @apply px-2 h-7 gap-x-0.5 rounded-lg;
}

@utility segmented-control-item-small {
  @apply p-px h-[22px] rounded-md;
}

@utility segmented-control-item-large {
  @apply px-2.5 h-8 gap-x-0.5 rounded-lg;
}

@utility segmented-control-item-disabled {
  @apply cursor-not-allowed text-text-disabled;
}

@utility sc-default {
  @apply hover:bg-state-base-hover text-text-tertiary hover:text-text-secondary;
}

@utility sc-active {
  @apply border-components-segmented-control-item-active-border bg-components-segmented-control-item-active-bg shadow-xs shadow-shadow-shadow-3 text-text-secondary;

  &.sc-accent {
    @apply text-text-accent;
  }

  &.sc-accent-light {
    @apply text-text-accent-light-mode-only;
  }
}

@utility sc-disabled {
  @apply cursor-not-allowed text-text-disabled hover:text-text-disabled bg-transparent hover:bg-transparent;
}

@utility sc-accent {
  &.sc-active {
    @apply text-text-accent;
  }
}

@utility sc-accent-light {
  &.sc-active {
    @apply text-text-accent-light-mode-only;
  }
}

@utility sc-item-text-regular {
  @apply p-0.5;
}

@utility sc-item-text-small {
  @apply p-0.5 pr-1;
}

@utility sc-item-text-large {
  @apply px-0.5;
}
