@import "flive-vars";
//VARIANT PRIMARY
.step--primary {
  @include title-font-light();
  display: inline-block;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  outline-style: none;
  cursor: default;
  position: relative;
  padding: 0;
  &:before,
  &:after {
    content: '';
    position: absolute;
    border-top: 2px solid $flive-dark-grey;
  }
  &:before {
    left: 0;
    right: 50%;
    margin-right: 1.1em;
  }
  &:after {
    left: 50%;
    right: 0;
    margin-left: 1.1em;
  }
  &:first-child:before {
    content: none;
  }
  &:last-child:after {
    content: none;
  }
  &.step--primary--with-right-arrow {
    &.step--primary--last-enabled:last-child {
      &:after,
      .title--primary:after {
        border-color: $flive-night-blue;
      }
    }
    &:last-child {
      &:after {
        content: "";
      }
      .title--primary:after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        border-style: solid;
        border-width: 2px 2px 0 0;
        transform: rotate(45deg);
      }
    }
  }
  &.size-sm {
    @include stepSize (1.4rem);
    @media (max-width: $screen-xs-max) {
      @include stepSizeMobile ();
    }
  }
  &.size-md {
    @include stepSize (1.8rem);
    @media (min-width: $screen-md-min) {
      @include stepSize (2.2rem);
    }
    @media (max-width: $screen-xs-max) {
      @include stepSizeMobile ();
    }
  }
  &.size-lg {
    @include stepSize (1.8rem);
    @media (min-width: $screen-md-min) {
      @include stepSize (2.4rem);
    }
    @media (min-width: $screen-lg-min) {
      @include stepSize (3rem);
    }
    @media (max-width: $screen-xs-max) {
      @include stepSizeMobile ();
    }
  }
}

.step--primary--enabled {
  cursor: pointer;
  &:before,
  &:after {
    border-color: $flive-night-blue;
    z-index: 2;
  }
}

.step--primary--last-enabled {
  &:after {
    border-color: $flive-dark-grey;
  }
}

.step--primary--selected {}

.step-forbidden {
  cursor: not-allowed;
}

// step decorator
.decorator--primary {
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid $flive-dark-grey;
  color: $flive-dark-grey;
  line-height: 1em;
  font-weight: normal;
  position: relative;
  z-index: 3;
  text-align: center;
  overflow: hidden;
  width: 2em;
  height: 2em;
  margin: 0 auto;
  font-size: 1em;
}

.decorator--enabled {
  color: $flive-night-blue;
  border: 2px solid $flive-night-blue;
}

.decorator--selected {
  color: #fff;
  background: $flive-night-blue;
  border: 2px solid $flive-night-blue;
}

// step title
.title--primary {
  padding: 1em;
  display: block;
  font-size: 1rem;
  color: $flive-dark-grey;
  white-space: nowrap;
  @include title-font();
  @media (max-width: $screen-sm) {
    font-size: 0em !important;
    width: 3.3rem;
    padding: 1em 1em 1em 0em;
  }
  @media (min-width: $screen-sm) and (max-width: $screen-md) {
    font-size: 0em !important;
    width: 5.8rem;
    padding: 1em 1em 1em 0em;
  }
}

.title--primary--enabled {
  color: $flive-night-blue;
}

.title--primary--selected {
  @media (max-width: $screen-md) {
    font-size: 0.8rem !important;
    max-width: 200px;
    min-width: 4.8rem;
  }
}

// arrow selected
.arrow {
  display: none;
  position: absolute;
  bottom: -0.55rem;
  left: 50%;
  margin: 0 0 0 -16px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 15px 15px;
  border-color: transparent transparent $tunnel-content-border transparent;
  &:before {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 50%;
    margin: 0 0 0 -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent #fff transparent;
  }
}

.arrow--selected {
  display: block;
}

.with-border {
  padding-bottom: 2rem;
}
