.nut-tabbar {
  border: 0;
  box-shadow: $tabbar-box-shadow;
  border-bottom: $tabbar-border-bottom;
  border-top: $tabbar-border-top;
  width: 100%;
  background: $color-background-overlay;

  &-wrap {
    height: $tabbar-height;
    display: flex;

    &-3 {
      padding: 0 scale-px(16px);
    }

    &-2 {
      padding: 0 scale-px(32px);
    }

    &-horizontal {
      align-items: center;
      .nut-tabbar-item {
        flex-direction: row;
        justify-content: center;
        .nut-icon {
          width: scale-px(20px);
          height: scale-px(20px);
        }
        .nut-tabbar-item-text {
          margin: 0 scale-px(4px) 0 scale-px(6px);
          font-size: $font-size-base;
        }
        .nut-badge-sup {
          &::after {
            border: 0;
          }
        }
      }
    }
  }

  &-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
  }
}

[dir='rtl'] .nut-tabbar,
.nut-rtl .nut-tabbar {
  &:last-child {
    border-right: none;
    border-left: 0;
  }

  &-fixed {
    left: auto;
    right: 0;
  }
}
