@include prefix(tab-group) {
  .tabs-header.tabs-header-horizontal.tabs-header-type-card {
    .tabs-header-item {
      line-height: 45px;
      padding: 0 20px;
      border-left: solid 1px plv(border-color);

      &:last-child {
        border-right: solid 1px plv(border-color);
      }

      &:hover, &.tabs-header-item-active {
        color: plv(primary-6);
      }

      &:not(.tabs-header-item-active) {
        background-color: plv(secondary-light-1);
      }
    }

    &.tabs-header-pos-top {
      .tabs-header-list {
        border-bottom: solid 1px plv(border-color);

        .tabs-header-item {
          border-top: solid 1px plv(border-color);

          &:first-child {
            border-top-left-radius: plv(box-size-normal-border-radius);
          }

          &:last-child {
            border-top-right-radius: plv(box-size-normal-border-radius);
          }

          &.tabs-header-item-active {
            position: relative;

            &:before {
              position: absolute;
              background-color: plv(background-light);
              left: 0;
              right: 0;
              top: 100%;
              height: 1px;
              content: '';
            }
          }
        }
      }
    }

    &.tabs-header-pos-bottom {
      .tabs-header-list {
        border-top: solid 1px plv(border-color);

        .tabs-header-item {
          border-bottom: solid 1px plv(border-color);

          &:first-child {
            border-bottom-left-radius: plv(box-size-normal-border-radius);
          }

          &:last-child {
            border-bottom-right-radius: plv(box-size-normal-border-radius);
          }

          &.tabs-header-item-active {
            position: relative;

            &:before {
              position: absolute;
              background-color: plv(background-light);
              left: 0;
              right: 0;
              bottom: 100%;
              height: 1px;
              content: '';
            }
          }
        }
      }
    }
  }
}
