.ls-tab-switch {
  display: flex;
  align-items: center;
  position: relative;
  width: fit-content;
  overflow: hidden;
  background: $color-lightgray;
  border-radius: 2rem;
  box-shadow: $shadow-depressed;

  &__slider {
    position: absolute;
    height: 100%;
    border-radius: 2rem;
    background: $color-primary;
    transition-duration: $animation-time;
    box-shadow: $shadow-main;
  }

  &__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 0.5rem 2.75rem,;
    transition-duration: $animation-time;
    opacity: 0.7;
    z-index: 1;
    cursor: pointer;

    &:hover {
      opacity: 1;
    }

    &--active {
      color: $color-white;
      opacity: 1;

      &:hover {

        & ~ .ls-tab-switch__slider {
          background: $color-primary-hover;
        }
      }
    }
  }
}
