.bui-step {
  display: flex;
  position: relative;
  line-height: var(--bui-line-height);
  font-family: var(--bui-font-family);
}
.bui-step-label-horizontal {
  line-height: var(--step-label-horizontal-line-height);
}
.bui-step:last-child .bui-step-line::after {
  display: none;
}
.bui-step-line {
  position: absolute;
  top: 0;
  width: var(--step-line-width);
  height: var(--step-line-height);
  box-sizing: border-box;
  left: 13px;
  padding: var(--step-line-padding);
}
.bui-step-line::after {
  display: inline-block;
  content: "";
  width: var(--step-line-width);
  border-left-width: var(--step-line-width);
  border-left-style: dotted;
  height: calc(100% + 11px);
}
.bui-step-line-active::after {
  border-left-color: var(--bui-color-primary);
}
.bui-step-line-wait::after {
  border-left-color: var(--bui-color-fg-disabled);
}
.bui-step-line-finish::after {
  border-left-color: var(--bui-color-primary);
}
.bui-step-line-error::after {
  border-left-color: var(--bui-color-primary);
}
.bui-step-icon {
  flex-shrink: 0;
  width: var(--step-icon-width);
  text-align: center;
  margin: var(--step-icon-margin);
  font-size: var(--step-icon-font-size);
}
.bui-step-icon-active {
  width: var(--step-icon-active-width);
  height: var(--step-icon-active-height);
  position: relative;
  background-color: var(--bui-color-primary);
  border-radius: 50%;
  margin-top: 2px;
  display: inline-block;
}
.bui-step-content {
  padding: var(--step-content-padding);
  box-sizing: border-box;
  flex: 1 0 0;
  overflow: hidden;
}
.bui-step-title-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
}
.bui-step-title-wrapper-vertical {
  flex-direction: column;
  align-items: flex-start;
}
.bui-step-title {
  font-size: var(--bui-title-size-4);
  font-weight: var(--bui-font-weight-medium);
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bui-step-title-active {
  color: var(--bui-color-primary);
}
.bui-step-title-wait {
  color: var(--bui-color-fg-subtle);
}
.bui-step-title-finish {
  color: var(--bui-color-primary);
}
.bui-step-title-error {
  color: var(--bui-color-primary);
}
.bui-step-title-horizontal {
  margin-right: 4px;
  max-width: 64%;
}
.bui-step-title-vertical {
  width: 100%;
}
.bui-step-subtitle {
  font-size: var(--subtitle-font-size);
  color: var(--bui-color-fg-subtle);
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bui-step-subtitle-horizontal {
  flex: 1;
}
.bui-step-subtitle-vertical {
  width: 100%;
}
.bui-step-desc {
  font-size: var(--bui-text-size-3);
  color: var(--bui-color-fg-subtle);
  margin-right: var(--bui-spacing-lg);
}
.bui-step-horizontal {
  flex: 1;
  padding-left: var(--bui-spacing-sm);
}
.bui-step-horizontal:first-child {
  padding-left: 0;
}
.bui-step-horizontal:last-child .bui-step-title-wrapper::after {
  display: none;
}
.bui-step-horizontal .bui-step-line {
  display: none;
  padding: var(--step-horizontal-line-padding);
}
.bui-step-horizontal .bui-step-icon {
  margin-right: 0;
}
.bui-step-horizontal .bui-step-title-wrapper {
  width: fit-content;
  position: relative;
}
.bui-step-horizontal .bui-step-title-wrapper::after {
  position: absolute;
  width: 9999px;
  height: 1px;
  content: "";
  left: 100%;
  top: 0;
  bottom: 0;
  margin: auto 0;
}
.bui-step-horizontal .bui-step-title-wrapper-line-active::after {
  background: var(--bui-color-fg-disabled);
}
.bui-step-horizontal .bui-step-title-wrapper-line-wait::after {
  background: var(--bui-color-fg-disabled);
}
.bui-step-horizontal .bui-step-title-wrapper-line-finish::after {
  background: var(--bui-color-primary);
}
.bui-step-horizontal .bui-step-title-wrapper-line-error::after {
  background: var(--bui-color-primary);
}
.bui-step-horizontal .bui-step-title {
  padding-right: var(--bui-spacing-sm);
  margin-right: 0;
  max-width: unset;
}
.bui-step-horizontal .bui-step-subtitle {
  padding-right: var(--bui-spacing-sm);
  margin-right: 0;
}
.bui-step-disabled {
  opacity: 0.5;
  pointer-events: none;
}
