// vykopírováno z X kvůli novým vratkám

.order-process-container {
   margin-bottom: 45px;
   padding-top: 20px;
}

.order-process {
   display: flex;
   margin: 0 auto;
   max-width: 550px;
   counter-reset: counter;
}

.order-process-step {
   padding: 0 5px;
   position: relative;
   text-align: center;
   width: 25%;

   &::before {
      background: $body-bg;
      border: 1px solid $border-color;
      border-radius: 50%;
      color: $text-dark;
      content: counter(counter);
      counter-increment: counter;
      display: flex;
      justify-content: center;
      font-weight: $font-weight-bold;
      line-height: 38px;
      margin: 0 auto 12px;
      position: relative;
      width: 38px;
      height: 38px;
      z-index: 1;
   }

   &::after {
      border-top: 1px solid $border-color;
      content: "";
      display: block;
      position: absolute;
      top: 19px;
      width: 100%;
   }

   &:first-child::after {
      right: -5px;
      width: 50%;
   }

   &:last-child {
      &::before {
         @include fonticon;

         content: $icons_check;
         display: flex;
         align-items: center;
         font-size: 1rem;
      }

      &::after {
         left: -5px;
         width: 50%;
      }
   }

   &.active {
      font-weight: $font-weight-bold;

      &::before {
         border-color: $black;
         background: $black;
         color: $white;
      }

      &.order-process-laststep::before {
         color: $white;
         background: $state-success;
         border-color: $state-success;
      }
   }

   &.visited {
      @include underline-never;

      &::before {
         transition: all $transition-speed;
      }

      @include haf {
         &::before {
            border-color: $black;
            background: $black;
            color: $white;
         }
      }
   }

   @media screen and (max-width: 599px) {
      flex-grow: 1;
      width: auto;
   }
}

@media screen and (max-width: $xs - 1) {
   .order-process-container {
      margin-bottom: 20px;
      padding: 0;
   }

   .order-process-step {
      font-size: $font-size-smaller;

      &::before {
         margin-bottom: 12px;
      }
   }
}
