.sui-m-tabs {
  display: flex;
  align-items: flex-start;
  padding: 0 $sui-space-md;
  border-bottom: $sui-size-border solid $sui-color-border;

  // Include without prefix for default modifier
  @include suiTabsModifiers();

  // Loop over media query modifiers to generate
  // your modifiers for each breakpoints
  @each $breakpoint in $sui-breakpoint-modifiers {
    @include suiMediaMin(nth($breakpoint, 1)) {
      @include suiTabsModifiers(nth($breakpoint, 2));
    }
  }

  &__wrapper {
    display: flex;
    align-items: flex-start;
    flex: 1;
  }

  &__item {
    position: relative;
    display: inline-block;
    font-size: $sui-font-size-md;
    margin-bottom: -$sui-size-border;
    min-width: $sui-size-xs + $sui-space-md*2;
    padding: $sui-space-sm $sui-space-md;
    transition: color .2s;
    cursor: pointer;
    text-decoration: none;
    color: $sui-color-brand-denim-600;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;

    &::before,
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      right: 50%;
      opacity: 0;
      height: $sui-size-border*3;
      transition: .2s;
    }

    &:hover,
    &:focus {
      color: $sui-color-text;

      &::after {
        left: 0;
        right: 0;
        background: currentColor;
        opacity: 1;
      }
    }

    &.as--active {
      color: $sui-color-text;

      &::after {
        left: 0;
        right: 0;
        background: currentColor;
        opacity: 1;
      }
    }

    &.as--disabled {
      opacity: .3;
      pointer-events: none;
    }
  }

  // -------------------------
  //    Size modifiers
  // -------------------------

  // Small
  &.as--sm {
    padding: 0 $sui-space-sm;
  }

  &.as--sm &__item {
    font-size: $sui-font-size-ms;
    min-width: $sui-size-xs + $sui-space-sm*2;
  }

  // Large
  &.as--lg &__item {
    font-size: $sui-font-size-ml;
    min-width: $sui-size-xs + $sui-space-lg*2;
    padding: $sui-space-md $sui-space-lg;
  }
}
