$break-large: 1024px;

.bzg-tab-set {
  // overflow: hidden;

  &__bzg-tab--secondary {
    background-color: $bz-neutral-200;
  }

  &__btn {
    align-items: center;
    background-color: $bz-neutral-100;
    border-bottom: 1px solid $bz-neutral-300;
    display: flex;
    list-style: none;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    white-space: nowrap;

    &::-webkit-scrollbar {
      width: 0px;
      visibility: hidden;
      height: 0;
      background: transparent;
    }

    &--primary {
      background-color: $bz-neutral-200;
    }

    &--secondary {
      background-color: transparent;
    }

    li {
      border: none;
      flex: 1 1 auto;
      font-weight: $bz-font-weight-regular;
      list-style: none;
      margin: 0;
      padding: 0;
      position: relative;
      text-align: center;
      text-transform: uppercase;
      top: 1px;
      cursor: pointer;

      &.active {
        border-bottom: 2px solid $bz-theme-400;

        .bz-tab-button {
          color: $bz-neutral-600;
        }
      }

      .bz-tab-button {
        color: $bz-neutral-500;
        display: flex;
        font-size: $bz-font-size-body-small;
        letter-spacing: 1px;
        padding: $bz-space-inset-squish-s;
        text-decoration: none;
        background: transparent;
        border: 0;
        text-transform: unset;
        cursor: pointer;

        .bz-btn-icn {
          background: $bz-neutral-100;;
          opacity: 0;
          position: absolute;
          right: 0;
          top: 1px;
          transition: opacity .15s;

          &:focus{
            opacity: 1;
          }
        }
      }

      .bz-tab-button:hover .bz-btn-icn {
        opacity: 1;
      }
    }
  }

  &__badge {
    margin-left: $bz-space-inline-xs;
    margin-top: -$bz-space-inline-xs;
  }
}

@media only screen and (min-width: $break-large) {
  ul.bzg-tab-set__btn {
    li {
      flex: none;
    }
  }
}
