/* stylelint-disable */
@import "../../settings/includes/colors";

.c-tab-bar {
  &__tablist {
    background: $White;
    padding: 0 24px 8px;
    display: inline-flex;
    justify-content: space-evenly;

    &--full {
      width: 100%;
    }
  }

  &__text {
    padding-bottom: 8px;
  }

  &__tab {
    line-height: 1;
    color: $Pacific;
    text-align: center;
    margin-bottom: 3px;
    padding: 8px 8px 0 8px;

    &:not(&--disabled) {
      &:hover {
        color: $Fiord;
        cursor: pointer;
      }
    }

    &--disabled {
      color: $Mono;
      cursor: not-allowed;
    }

    &--active {
      color: $Fiord;

      & > .c-tab-bar__text {
        margin-bottom: 6px;
        border-bottom: 2px solid $Pacific;
      }

      &.c-tab-bar__tab--disabled > .c-tab-bar__text {
        color: $Mono;
        border-bottom: 2px solid $Mono;
      }
    }
  }
}
