@import "tab-item";
@import "tab-set";

.bz-tabs {
  border-bottom: 1px solid $bz-neutral-300;
  margin-bottom: $bz-space-stack-m;
  overflow-y: hidden;
  padding: 0;
  position: relative;
  scroll-behavior: smooth;
  white-space: nowrap;

  &--right {
    display: flex;
    justify-content: flex-end;
  }

  &--secondary {
    border: 0;
  }

  .bz-indicator-bar {
    -webkit-transition: left .2s ease;
    background: $bz-theme-400;
    bottom: 0;
    display: block;
    height: 1px;
    left: 0;
    position: absolute;
    transition: left .2s ease;
    will-change: left, width;
    z-index: 10;
  }
}

.bz-tab {
  border-bottom: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  margin: 0 $bz-space-inline-s;
  padding: 0 $bz-space-inset-squish-s;
  position: relative;
  top: 1px;

  > a {
    color: $bz-theme-400;
    display: inline-block;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
  }

  &.active {
    border-bottom-color: $bz-theme-400;
    border-bottom-width: 2px;

    > a {
      color: $bz-theme-400;
    }
  }
}

.bz-tab-inner {
  background-color: $bz-neutral-200;
  margin-bottom: $bz-space-stack-m;
  padding: $bz-space-inset-m;
}
