@com-prefix-cls: if(isdefined(@ant-prefix), @ant-prefix, ant);

.@{com-prefix-cls}-process-steps {
  .@{com-prefix-cls}-steps-item-finish {
    .@{com-prefix-cls}-steps-item-icon {
      background: rgb(97, 199, 78);
      border-color: rgb(97, 199, 78);

      .anticon {
        color: white;
      }
    }

    > .@{com-prefix-cls}-steps-item-container > .@{com-prefix-cls}-steps-item-tail::after {
      background-color: rgb(240, 240, 240);
    }
  }

  .@{com-prefix-cls}-steps-item-process {
    .@{com-prefix-cls}-steps-item-icon {
      background: rgb(255, 165, 29);
      border-color: rgb(255, 165, 29);

      .anticon {
        color: white;
      }
    }

    > .@{com-prefix-cls}-steps-item-container > .@{com-prefix-cls}-steps-item-tail::after {
      background-color: rgb(240, 240, 240);
    }
  }

  .@{com-prefix-cls}-steps-item-error {
    .@{com-prefix-cls}-steps-item-icon {
      background: rgb(255, 77, 79);
      border-color: rgb(255, 77, 79);

      .anticon {
        color: white;
      }
    }

    > .@{com-prefix-cls}-steps-item-container > .@{com-prefix-cls}-steps-item-tail::after {
      background-color: rgb(240, 240, 240);
    }
  }

  .@{com-prefix-cls}-steps-item-custom .@{com-prefix-cls}-steps-item-icon > .@{com-prefix-cls}-steps-icon {
    font-size: unset;
    line-height: unset;
    transform: unset;
  }

  .@{com-prefix-cls}-steps-item-custom > .@{com-prefix-cls}-steps-item-container > .@{com-prefix-cls}-steps-item-icon > .@{com-prefix-cls}-steps-icon {
    top: unset;
    left: unset;
    width: unset;
    height: unset;
    font-size: unset;
    line-height: unset;
  }

  &.@{com-prefix-cls}-steps-small {
    .@{com-prefix-cls}-steps-item-icon {
      width: 24px !important;
      height: 24px !important;
      margin: 0 8px 0 0 !important;
      font-size: 12px !important;
      line-height: 24px !important;
      text-align: center !important;
      border-radius: 24px !important;
    }
  }

  .@{com-prefix-cls}-process-steps-tag {
    margin-bottom: 6px;

    span {
      padding: 2px 6px;
      font-size: 12px;
      box-sizing: content-box;
      border: 1px solid transparent;
      border-radius: 2px;
    }

    &.@{com-prefix-cls}-process-steps-tag-0 {
      span {
        color: rgba(255, 165, 29, 1);
        border-color: rgba(255, 165, 29, 1);
        background-color: rgba(255, 165, 29, .1);
      }
    }

    &.@{com-prefix-cls}-process-steps-tag-1 {
      span {
        color: rgba(97, 199, 78, 1);
        border-color: rgba(97, 199, 78, 1);
        background-color: rgba(97, 199, 78, .1);
      }
    }

    &.@{com-prefix-cls}-process-steps-tag-3 {
      span {
        color: rgba(255, 77, 79, 1);
        border-color: rgba(255, 77, 79, 1);
        background-color: rgba(255, 77, 79, .1);
      }
    }
  }
}
