/*
* @subsection   Progress Bar
*/

.progress-bar-wrap {
  max-width: 100%;
  width: 210px;

  @include media-breakpoint-between(sm, sm) {
    max-width: 120px;
  }

  @include media-breakpoint-up(md) {
    max-width: 150px;
  }
}

.progress-bar {
  position: relative;
  width: 100%;
  margin: 0;
  font-family: $font-family-sec;

  .progress-bar__body {
    position: absolute;
    right: 50%;
    width: 100%;
    top: 50%;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    font-size: 34px;
    font-weight: 400;
    line-height: 26px;
    color: $secondary;
    text-align: right;

    &:after {
      content: '%';
    }
  }

  .progress-bar__stroke,
  .progress-bar__trail {
    stroke-linejoin: round;
  }
}

.progress-bar-horizontal {
  position: relative;
  font-family: $font-family-sec;
  text-align: right;

  > svg {
    margin-top: 3px;
    border-radius: 3px;
  }

  .progress-bar__body {
    position: absolute;
    top: -27px;
    margin-top: 0;
    padding-right: 0;

    &:after {
      content: '%';
    }
  }
}

.progress-bar-radial {
  position: relative;
  padding-bottom: 100%;

  > svg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 5px;
    overflow: hidden;
  }

  .progress-bar__stroke,
  .progress-bar__trail {
    stroke-location: outside;
  }

  .progress-bar__body {
    transform: translate(50%, -50%);
  }
}

.progress-bar-default {
  .progress-bar__stroke {
    stroke: $gray;
  }

  .progress-bar__trail {
    stroke: rgba($gray, 0.05);
  }
}

.progress-bar-primary {
  .progress-bar__stroke {
    stroke: $primary;
  }

  .progress-bar__trail {
    stroke: $gallery;
  }
}

.progress-bar-danger-01 {
  .progress-bar__stroke {
    stroke: #bf6b3f;
  }

  .progress-bar__trail {
    stroke: $gallery;
  }
}

.progress-bar-red-orange-1 {
  .progress-bar__stroke {
    stroke: #ca970b;
  }

  .progress-bar__trail {
    stroke: $gallery;
  }
}

.progress-bar-dodger-blue {
  .progress-bar__stroke {
    stroke: #686753;
  }

  .progress-bar__trail {
    stroke: $gallery;
  }
}

.progress-bar-gorse {
  .progress-bar__stroke {
    stroke: #567ba1;
  }

  .progress-bar__trail {
    stroke: $gallery;
  }
}

.progress-bar-secondary-2 {
  .progress-bar__stroke {
    stroke: $gray-light;
  }

  .progress-bar__trail {
    stroke: gray;
  }
}

.progress-bar-secondary-1 {
  .progress-bar__stroke {
    stroke: $gray-light;
  }

  .progress-bar__trail {
    stroke: rgba($gray, 0.05);
  }
}

.progress-bar-secondary-3 {
  .progress-bar__stroke {
    stroke: $brand-warning;
  }

  .progress-bar__trail {
    stroke: rgba($gray, 0.05);
  }
}

.progress-bar-secondary-4 {
  .progress-bar__stroke {
    stroke: $brand-danger;
  }

  .progress-bar__trail {
    stroke: rgba($gray, 0.05);
  }
}


