.@{yee-steps-prefix-cls}-dot,
.@{yee-steps-prefix-cls}-dot.@{yee-steps-prefix-cls}-small {
  .@{yee-steps-prefix-cls}-item {
    &-title {
      line-height: @yee-line-height-base;
    }
    &-tail {
      top: 2px;
      width: 100%;
      margin: 0 0 0 @yee-steps-desciption-max-width / 2;
      padding: 0;
      &::after {
        width: ~'calc(100% - 20px)';
        height: 3px;
        margin-left: 12px;
      }
    }
    &:first-child .@{yee-steps-prefix-cls}-icon-dot {
      left: 2px;
    }
    &-icon {
      width: @yee-steps-dot-size;
      height: @yee-steps-dot-size;
      margin-left: 67px;
      padding-right: 0;
      line-height: @yee-steps-dot-size;
      background: transparent;
      border: 0;
      .@{yee-steps-prefix-cls}-icon-dot {
        position: relative;
        float: left;
        width: 100%;
        height: 100%;
        border-radius: 100px;
        transition: all 0.3s;
        /* expand hover area */
        &::after {
          position: absolute;
          top: -12px;
          left: -26px;
          width: 60px;
          height: 32px;
          background: fade(@yee-black, 0.1%);
          content: '';
        }
      }
    }
    &-content {
      width: @yee-steps-desciption-max-width;
    }
    &-process .@{yee-steps-prefix-cls}-item-icon {
      width: @yee-steps-current-dot-size;
      height: @yee-steps-current-dot-size;
      line-height: @yee-steps-current-dot-size;
      .@{yee-steps-prefix-cls}-icon-dot {
        top: -1px;
      }
    }
  }
}

.@{yee-steps-prefix-cls}-vertical.@{yee-steps-prefix-cls}-dot {
  .@{yee-steps-prefix-cls}-item-icon {
    margin-top: 8px;
    margin-left: 0;
  }
  // https://github.com/ant-design/ant-design/issues/18354
  .@{yee-steps-prefix-cls}-item > .@{yee-steps-prefix-cls}-item-container > .@{yee-steps-prefix-cls}-item-tail {
    top: 2px;
    left: -9px;
    margin: 0;
    padding: 22px 0 4px;
  }
  .@{yee-steps-prefix-cls}-item:first-child .@{yee-steps-prefix-cls}-icon-dot {
    left: 0;
  }
  .@{yee-steps-prefix-cls}-item-process .@{yee-steps-prefix-cls}-icon-dot {
    left: -2px;
  }
}
