/* stylelint-disable */
@import "../../settings/includes/colors";
@import "../../settings/includes/font-sizes";
@import "../../settings/includes/font-weights";

.c-tab-navigation {
  &__tablist {
    position: relative;
    display: inline-flex;

    &--full {
      width: 100%;
    }
  }

  &__text {
    &--xxs {
      line-height: 1.2;
      font-size: $font-size-small;
      font-weight: $font-weight-700;
    }

    &--xs {
      line-height: 1.25;
      font-size: $font-size-paragraph;
      font-weight: $font-weight-700;
    }

    &--s {
      line-height: 1.25;
      font-size: $font-size-h5;
      font-weight: $font-weight-700;
    }

    &--m {
      line-height: 1.33;
      font-size: $font-size-h4;
      font-weight: $font-weight-700;
    }

    &--l {
      line-height: 1.33;
      letter-spacing: 0.18px;
      font-size: $font-size-h3;
      font-weight: $font-weight-900;
    }

    &--xl {
      line-height: 1.33;
      font-size: $font-size-h2;
      font-weight: $font-weight-900;
    }

    &--xxl {
      line-height: 1.36;
      letter-spacing: 0.5px;
      font-size: $font-size-h1;
      font-weight: $font-weight-900;
    }
  }

  &__tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: $Mono;
    line-height: 1;
    cursor: pointer;
    min-width: 144px;
    font-weight: bold;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid map-get($MonoPalette, 50);

    &--xxs {
      padding-left: 2rem;
      padding-right: 2rem;
    }

    &--xs,
    &--s {
      padding-left: 3rem;
      padding-right: 3rem;
    }

    &--m,
    &--l {
      padding-left: 3.5rem;
      padding-right: 3.5rem;
    }

    &--xl,
    &--xxl {
      padding-left: 4rem;
      padding-right: 4rem;
    }

    &:not(&--disabled) {
      &:hover {
        color: $Fiord;
        cursor: pointer;
      }
    }

    &--underline {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 4px;
      margin-bottom: -0.5px;
      will-change: left, width;
      background-color: $Pacific;
      transition: left 0.2s, width 0.2s;
    }

    &--disabled {
      color: $Mono;
      cursor: not-allowed;

      &.c-tab-navigation__tab--active {
        > .c-tab-navigation__text {
          color: $Mono;
        }
      }

      + .c-tab-navigation__tab--underline {
        background-color: $Mono;
      }
    }

    &--active {
      color: $Fiord;
    }
  }
}
