.ant-steps {
  & > * {
    margin-right: 8px;
  }

  .ant-steps-item-container {
    display: flex;
  }

  .ant-steps-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 3px;
    line-height: 27px;
  }

  .ant-steps-item.ant-steps-item-process {
    .ant-steps-item-icon {
      .ant-steps-icon {
        font-weight: 500;
        font-size: 16px;
      }
    }

    .ant-steps-item-container {
      .ant-steps-item-description {
        min-height: 16px;
        margin-top: 5px;
        color: #999999;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.2rem;
      }
    }
  }

  .ant-steps-item-finish {
    .ant-steps-item-container {
      .ant-steps-item-icon {
        background-color: #ffffff;
        border-color: #0070ff;
      }

      .ant-steps-finish-icon {
        width: 12px;
        height: 12px;

        svg {
          width: 12px;
          height: 12px;
        }
      }

      .ant-steps-item-content {
        .ant-steps-item-description {
          min-height: 16px;
          margin-top: 5px;
          color: #8896b0;
          font-weight: 400;
          font-size: 12px;
          line-height: 1.2rem;
        }
      }
    }
  }

  .ant-steps-item-title {
    height: 24px;
    color: #8896b0;
    font-weight: 400;
    font-size: 16px;
    padding-inline-end: 24px;
  }

  .ant-steps-item-content {
    margin-left: 4px;
  }

  .ant-steps-item-error.ant-steps-item-active {
    .ant-steps-item-container {
      .ant-steps-item-icon {
        background-color: #ff4d4f;
      }
    }
  }

  .ant-steps-item-active {
    .ant-steps-item-container {
      .ant-steps-item-icon {
        .ant-steps-icon {
          color: #ffffff;
          font-weight: 500;
          font-size: 16px;
        }
      }

      .ant-steps-item-content {
        .ant-steps-item-description {
          min-height: 16px;
          margin-top: 5px;
          color: #8896b0;
          font-weight: 400;
          font-size: 12px;
          line-height: 1.2rem;
        }
      }
    }
  }

  .ant-steps-item-wait {
    .ant-steps-item-container {
      .ant-steps-item-icon {
        background-color: #ffffff;
        border-color: #dee4ed;

        .ant-steps-icon {
          color: #dee4ed;
          font-weight: 500;
          font-size: 16px;
        }
      }

      .ant-steps-item-description {
        min-height: 16px;
        margin-top: 5px;
        color: #8896b0;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.2rem;
      }
    }
  }
}

.ant-steps-item.ant-steps-item-finish.ant-steps-item-active {
  .ant-steps-item-container {
    .ant-steps-item-tail {
      inset-inline-start: 13px;
      margin: 4px 0;
    }

    .ant-steps-item-icon {
      background-color: #ffffff;
    }
  }
}

.ant-steps.ant-steps-vertical {
  .ant-steps-item .ant-steps-item-icon {
    margin-inline-end: 8px;
  }

  .ant-steps-item {
    .ant-steps-item-container {
      .ant-steps-item-tail {
        inset-inline-start: 13px;
      }
    }
  }

  .ant-steps-item-icon {
    width: 28px;
    height: 28px;
    margin-top: 3px;
  }
}

.ant-steps.ant-steps-vertical.ant-steps-small {
  .ant-steps-item-container {
    .ant-steps-item-icon {
      width: 24px;
      height: 24px;
      margin-top: 3px;
      line-height: 25px;
    }

    .ant-steps-item .ant-steps-item-content {
      margin-top: 2px;
    }

    .ant-steps-item {
      .ant-steps-item-tail {
        inset-inline-start: 13px;
        margin: 3px -1;
      }
    }
  }
}

.ant-steps.ant-steps-horizontal.ant-steps-small {
  .ant-steps-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 25px;
  }
}
