.shop-tabs-fixed {
  position: fixed !important;
  top: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  z-index: 2 !important;
}

.shop-tabs-absolute {
  position: absolute !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0;
  width: 100%;
  z-index: 2 !important;
}

.shop-tabs-wrapper {
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  position: absolute;
  height: 48px;
  z-index: 100;
  background: #fafafa;
}

.shop-tabs-item-wrapper {
  padding: 10px 10px 0;
  background: #ffffff;
  height: 44px;
}

.shop-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  position: relative;

  height: 100%;
  padding-bottom: 15px !important;
  -moz-box-sizing: content-box;
  box-sizing: content-box;

  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


.shop-tabs-container {
  padding-top: 44px;
  position: relative;
}

.shop-tabs-miniprogram {
  position: relative;
  white-space: nowrap;
  transition: all .5s;

  .shop-tab {
    width: 100px;
  }
}

.shop-tabs-line {
  .shop-tab > span {
    padding: 0 5px;
    line-height: 34px;
  }
}

.shop-tabs-container-gost {
  .shop-tabs-line {
    background-color: #fff;
    border-top: 1px solid rgba(230, 230, 230, 1);
    border-bottom: 1px solid rgba(230, 230, 230, 1);

    .shop-tab-active {
      color: @danger;
      position: relative;

      &:after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: @danger;
        position: absolute;
        bottom: 1px;
        left: 50%;
        margin-left: -20px;
      }
    }

    .shop-tab {
      margin-right: 10px;
    }

  }
}

@tabsTotalHeight: 50px;
@tabsHeight: 33px;
.shop-tabs-container-circle {
  padding-top: @tabsTotalHeight;
  margin-top: 10px;

  .shop-tabs-wrapper {
    height: @tabsTotalHeight;
    left: @goods-space;
    right: @goods-space;
  }

  .shop-tab {
    line-height: @tabsHeight;
    height: @tabsHeight;
    margin-right: 10px;

    > span {
      padding: 0;
    }
  }

  .shop-tab-active {
    background: @danger;
    border-radius: 22px;
    color: #ffffff;
  }
}

.shop-tabs-container-default {
  padding-top: @tabsTotalHeight;

  .shop-tabs-wrapper {
    height: 48px;
    left: 0;
    right: 0;
  }

  .shop-tab {
    line-height: @tabsHeight;
    height: @tabsHeight;
    margin-right: 10px;

    > span {
      padding: 0 2px;
      width: 100%;
    }
  }

  .shop-tab-active {
    position: relative;

    &::after {
      content: '';
      display: block;
      width: 0;
      height: 0;
      border-top: 4px solid @danger;
      border-left: 4px solid @danger;
      border-bottom: 4px solid transparent;
      border-right: 4px solid transparent;
      position: absolute;
      top: 29px;
      left: 50%;
      margin-left: -4px;
      transform: rotate(-135deg);
    }

    > span {
      background: @danger;
      color: #ffffff;
      position: relative;
      border-radius: 2px;
    }
  }
}