@include prefix(tab-group) {
  $background: plv(secondary-light-1);
  $border: plv(border-color);

  &.tabs-head-type-shadow {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 4px 0px rgba(0, 0, 0, 0.04);
    border: solid 1px $border;
    box-sizing: border-box;

    & + * {
      margin-top: 16px;
    }

    .tabs-header.tabs-header-horizontal.tabs-header-type-shadow {
      background-color: $background;

      .tabs-header-item {
        line-height: 45px;
        padding: 0 20px;
        color: plv(text-2);
        box-sizing: border-box;
        transition: background-color linear 300ms;
        border-left: solid 1px transparent;
        border-right: solid 1px transparent;
        border-bottom: solid 1px $border;

        &:first-child {
          border-left: none;
        }

        &:hover, &.tabs-header-item-active {
          color: plv(primary-6);
        }

        &:before {
          position: absolute;
          background-color: transparent;
          left: 0;
          right: 0;
          height: 1px;
          content: '';
          transition: all linear 300ms;
        }

        &.tabs-header-item-active {
          position: relative;
          background-color: plv(background-light);
          border-color: $border;
          border-bottom-color: transparent;

          &:before {
            background-color: plv(background-light);
          }
        }
      }

      & > .tabs-header-list {
        &:after {
          flex: 1;
          content: ' ';
          display: block;
          align-self: stretch;
          border-bottom: solid 1px $border;
        }
      }

      &.tabs-header-pos-top {
        .tabs-header-list {
          border-bottom: solid 1px $background;

          .tabs-header-item-active:before {
            top: 100%
          }
        }
      }

      &.tabs-header-pos-bottom {
        .tabs-header-list {
          border-top: solid 1px $background;

          .tabs-header-item-active:before {
            bottom: 100%
          }
        }
      }
    }
  }
}
