@import '../../src/style/tools.css';

.bx-step-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;

  & .bx-steps-hr {
    position: absolute;
    width: 100%;
    top: 9px;
    right: 0;
    border: none;
    border-bottom: 1px solid var(--color-line-split);
  }

  &:first-child {
    & .bx-steps-hr {
      width: 50%;
    }
  }

  &:last-child {
    & .bx-steps-hr {
      width: 50%;
      right: 50%;
    }
  }

  & .bx-step-item-h {
    & .bx-step-number {
      position: relative;
      display: block;
      width: 18px;
      height: 18px;
      line-height: 18px;
      margin: 0 auto;
      padding: 0;
      border: none;
      border-radius: 18px;
      background: var(--color-line-split);
      font-size: 12px;
      color: #fff;
      text-align: center;
    }

    & .bx-step-check {
      font-size: 12px;
      font-weight: bold;
    }

    & .bx-step-item-title {
      margin-top: 9px;
      font-size: 13px;
      color: var(--color-type-default);
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    & .bx-step-item-desc {
      display: block;
      margin-top: 5px;
      font-size: 12px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      border: none;
    }
  }

  & .bx-step-item-tail {
    position: relative;
    height: 40px;
    line-height: 40px;
    vertical-align: top;
    background: #fff;

    & .bx-step-item-title {
      position: relative;
      font-size: 13px;
      color: var(--color-type-default);
      width: 100%;
      height: 40px;
      line-height: 40px;
      padding-left: 12px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      z-index: var(--step-zindex);
      box-sizing: border-box;
    }

    & .bx-step-tail-arrow1,
    & .bx-step-tail-arrow2 {
      position: absolute;
      top: 0;
      right: -6px;
      background: #fff;
      width: 15px;
      height: 20px;
      transform: skewX(30deg);
      z-index: var(--step-zindex);
      border-right: 1px solid var(--color-line-split);
    }

    & .bx-step-tail-arrow2 {
      top: inherit;
      bottom: 0;
      transform: skewX(-30deg);
    }

    &.bx-step-tail-no-border {
      & .bx-step-tail-arrow1,
      & .bx-step-tail-arrow2 {
        border-right: none;
      }
    }
  }
}
