@import "../../../themes/default";

:global {
  .app-steps {
    line-height: 1.5;
    color: @color-white;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0;
    width: 100%;
    .display-flex();
  }

  .app-steps-item {
    position: relative;
    display: inline-block;
    vertical-align: top;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
  }

  .app-steps-item:last-child {
    -webkit-box-flex: 0;
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
  }

  .app-steps-item:last-child .app-steps-item-tail,
  .app-steps-item:last-child .app-steps-item-title:after {
    display: none;
  }

  .app-steps-item-icon,
  .app-steps-item-content {
    display: inline-block;
    vertical-align: top;
  }

  .app-steps-item-icon {
    border: 1px solid rgba(0, 0, 0, 0.25);
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 32px;
    font-size: 16px;
    margin-right: 8px;
    -webkit-transition: background-color 0.3s, border-color 0.3s;
    transition: background-color 0.3s, border-color 0.3s;
  }

  .app-steps-item-icon > .app-steps-icon {
    line-height: 1;
    top: -1px;
    color: @color-base;
    position: relative;
  }

  .app-steps-item-tail {
    position: absolute;
    left: 0;
    width: 100%;
    top: 12px;
    padding: 0 10px;
  }

  .app-steps-item-tail:after {
    content: '';
    display: inline-block;
    background: #e8e8e8;
    height: 1px;
    border-radius: 1px;
    width: 100%;
    -webkit-transition: background .3s;
    transition: background .3s;
  }

  .app-steps-item-title {
    font-size: 16px;
    color: @color-white;
    display: inline-block;
    padding-right: 16px;
    position: relative;
    line-height: 32px;
  }

  .app-steps-item-title:after {
    content: '';
    height: 1px;
    width: 9999px;
    background: #e8e8e8;
    display: block;
    position: absolute;
    top: 16px;
    left: 100%;
  }

  .app-steps-item-description {
    font-size: 18px;
    color: @color-white;
    .text-gradient();
  }

  .app-steps-item-wait .app-steps-item-icon {
    border-color: rgba(0, 0, 0, 0.25);
    background-color: #fff;
  }

  .app-steps-item-wait .app-steps-item-icon > .app-steps-icon {
    color: rgba(0, 0, 0, 0.25);
  }

  .app-steps-item-wait .app-steps-item-icon > .app-steps-icon .app-steps-icon-dot {
    //background: rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.75);
  }

  .app-steps-item-wait > .app-steps-item-content > .app-steps-item-title {
    color: @color-white;
  }

  .app-steps-item-wait > .app-steps-item-content > .app-steps-item-title:after {
    background-color: #e8e8e8;
  }

  .app-steps-item-wait > .app-steps-item-content > .app-steps-item-description {
    color: @color-white;
  }

  .app-steps-item-wait > .app-steps-item-tail:after {
    background-color: #e8e8e8;
  }

  .app-steps-item-process .app-steps-item-icon {
    border-color: @color-base;
    background-color: #fff;
  }

  .app-steps-item-process .app-steps-item-icon > .app-steps-icon {
    color: @color-base;
  }

  .app-steps-item-process .app-steps-item-icon > .app-steps-icon .app-steps-icon-dot {
    background: @color-base;
  }

  .app-steps-item-process > .app-steps-item-content > .app-steps-item-title {
    color: @color-white;
  }

  .app-steps-item-process > .app-steps-item-content > .app-steps-item-title:after {
    background-color: #e8e8e8;
  }

  .app-steps-item-process > .app-steps-item-content > .app-steps-item-description {
    color: @color-white;
  }

  .app-steps-item-process > .app-steps-item-tail:after {
    background-color: #e8e8e8;
  }

  .app-steps-item-process .app-steps-item-icon {
    background: @color-base;
  }

  .app-steps-item-process .app-steps-item-icon > .app-steps-icon {
    color: #fff;
  }

  .app-steps-item-process .app-steps-item-title {
    font-weight: 600;
  }

  .app-steps-item-finish .app-steps-item-icon {
    border-color: @color-base;
    background-color: #fff;
  }

  .app-steps-item-finish .app-steps-item-icon > .app-steps-icon {
    color: @color-base;
  }

  .app-steps-item-finish .app-steps-item-icon > .app-steps-icon .app-steps-icon-dot {
    background: @color-base;
  }

  .app-steps-item-finish > .app-steps-item-content > .app-steps-item-title {
    color: @color-white;
  }

  .app-steps-item-finish > .app-steps-item-content > .app-steps-item-title:after {
    background-color: @color-base;
  }

  .app-steps-item-finish > .app-steps-item-content > .app-steps-item-description {
    color: @color-white;
  }

  .app-steps-item-finish > .app-steps-item-tail:after {
    background-color: @color-base;
  }

  .app-steps-horizontal:not(.app-steps-label-vertical) .app-steps-item {
    margin-right: 16px;
    white-space: nowrap;
  }

  .app-steps-horizontal:not(.app-steps-label-vertical) .app-steps-item:last-child {
    margin-right: 0;
  }

  .app-steps-horizontal:not(.app-steps-label-vertical) .app-steps-item:last-child .app-steps-item-title {
    padding-right: 0;
  }

  .app-steps-horizontal:not(.app-steps-label-vertical) .app-steps-item-tail {
    display: none;
  }

  .app-steps-horizontal:not(.app-steps-label-vertical) .app-steps-item-description {
    max-width: 140px;
  }

  @media (max-width: 480px) {
    .app-steps-horizontal.app-steps-label-horizontal {
      display: block;
    }

    .app-steps-horizontal.app-steps-label-horizontal .app-steps-item {
      display: block;
      overflow: visible;
    }

    .app-steps-horizontal.app-steps-label-horizontal .app-steps-item-icon {
      float: left;
      margin-right: 16px;
    }

    .app-steps-horizontal.app-steps-label-horizontal .app-steps-item-content {
      min-height: 48px;
      overflow: hidden;
      display: block;
    }

    .app-steps-horizontal.app-steps-label-horizontal .app-steps-item-title {
      line-height: 32px;
    }

    .app-steps-horizontal.app-steps-label-horizontal .app-steps-item-description {
      padding-bottom: 12px;
    }

    .app-steps-horizontal.app-steps-label-horizontal > .app-steps-item > .app-steps-item-tail {
      position: absolute;
      left: 16px;
      top: 0;
      height: 100%;
      width: 1px;
      padding: 38px 0 6px;
    }

    .app-steps-horizontal.app-steps-label-horizontal > .app-steps-item > .app-steps-item-tail:after {
      height: 100%;
      width: 1px;
    }

    .app-steps-horizontal.app-steps-label-horizontal > .app-steps-item:not(:last-child) > .app-steps-item-tail {
      display: block;
    }

    .app-steps-horizontal.app-steps-label-horizontal > .app-steps-item > .app-steps-item-content > .app-steps-item-title:after {
      display: none;
    }

    .app-steps-horizontal.app-steps-label-horizontal.app-steps-small .app-steps-item-tail {
      position: absolute;
      left: 12px;
      top: 0;
      padding: 30px 0 6px;
    }

    .app-steps-horizontal.app-steps-label-horizontal.app-steps-small .app-steps-item-title {
      line-height: 24px;
    }
  }

  .app-steps-label-vertical .app-steps-item {
    overflow: visible;
  }

  .app-steps-label-vertical .app-steps-item-tail {
    padding: 0 24px;
    margin-left: 48px;
  }

  .app-steps-label-vertical .app-steps-item-content {
    display: block;
    text-align: center;
    margin-top: 8px;
    width: 140px;
  }

  .app-steps-label-vertical .app-steps-item-icon {
    display: inline-block;
    margin-left: 36px;
  }

  .app-steps-label-vertical .app-steps-item-title {
    padding-right: 0;
  }

  .app-steps-label-vertical .app-steps-item-title:after {
    display: none;
  }

  .app-steps-label-vertical .app-steps-item-description {
    text-align: center;
  }

  .app-steps-dot .app-steps-item-title {
    line-height: 1.5;
  }

  .app-steps-dot .app-steps-item-tail {
    width: 100%;
    top: 2px;
    margin: 0 0 0 70px;
    padding: 0;
  }

  .app-steps-dot .app-steps-item-tail:after {
    height: 3px;
    width: calc(100% - 20px);
    margin-left: 12px;
  }

  .app-steps-dot .app-steps-item:first-child .app-steps-icon-dot {
    left: 2px;
  }

  .app-steps-dot .app-steps-item-icon {
    padding-right: 0;
    width: 8px;
    height: 8px;
    line-height: 8px;
    border: 0;
    margin-left: 67px;
    background: transparent;
  }

  .app-steps-dot .app-steps-item-icon .app-steps-icon-dot {
    float: left;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    position: relative;
    -webkit-transition: all .3s;
    transition: all .3s;
  }

  .app-steps-dot .app-steps-item-icon .app-steps-icon-dot:after {
    content: "";
    background: rgba(0, 0, 0, 0.001);
    width: 60px;
    height: 32px;
    position: absolute;
    top: -12px;
    left: -26px;
  }

  .app-steps-dot .app-steps-item-process .app-steps-item-icon {
    width: 10px;
    height: 10px;
    line-height: 10px;
  }

  .app-steps-dot .app-steps-item-process .app-steps-item-icon .app-steps-icon-dot {
    top: -1px;
  }

  .app-steps-content {
    position: relative;
    margin-top: 24px;
    //text-align: center;
  }

  .app-steps-action {
    margin-top: 12px;
    text-align: center;
  }

  .app-steps-content p {
    margin-bottom: 6px;
  }

  .app-steps-content iframe {
    background-color: #fff;
    border: 0;
    width: 100%;
    height: 100vh;
  }
}