@import "../_variables";

.q-spb {
  width: 100%;
  padding-inline-start: 0;
  display: flex;
  justify-content: space-between;

  li {
    width: 100%;
    color: $border-gray;
    font-size: $font-size-small-paragraph;
    list-style-type: none;
    text-align: center;
    position: relative;
  }

  li:before {
    content: '';
    width: $space-large;
    height: $space-large;
    line-height: $line-height-header-2;
    border: 2px solid $border-gray;
    background-color: $border-gray;
    display: block;
    text-align: center;
    margin: 0 auto $space-medium auto;
    border-radius: 50%;
    border: 2px solid $white;
    transition: all .7s;
    position: relative;
    z-index: 1;
  }

  li:after {
    content: '';
    width: 100%;
    height: 2px;
    position: absolute;
    background-color: $border-gray;
    top: 6.5px;
    left: -50%;
    transition: all .7s;
  }

  li:first-child:after {
    content: none;
  }

  @each $color,
  $value in $colors {
    &.#{$color} {

      li.active {
        color: $value;
      }

      li.active:before {
        border-color: $value;
        background-color: $value;
        transition: all .7s;
        border: 2px solid $white;
      }

      li.active:after {
        background-color: $value;
        transition: all .7s;
      }
    }
  }
}