@mixin progress-value {
  background: linear-gradient(to bottom, #fffa, transparent 50%, #fffa 100%), repeating-linear-gradient(90deg, #2ED331, #2ED331 6px, transparent 6px, transparent 8px);
}

@mixin progress-value-indeterminate {
  width: 30px;
  animation: 1s infinite linear indeterminate;
}

progress,
.progress-bar {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff;;
  border: 1px solid #686868;
  border-radius: 3px;
  height: 13px;
  padding: 2px 3px;
  box-shadow: inset 1px 1px #BEBEBE, inset 2px 2px #EFEFEF, inset -1px -1px #EFEFEF;
}

.progress-bar {
  position: relative;
  overflow: hidden;

  &:not([aria-valuenow])::after,
  & > .progress-bar-value {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 3px;
    @include progress-value;
  }

  &:not([aria-valuenow])::after {
    @include progress-value-indeterminate;
  }
}

progress::-webkit-progress-bar {
  background: #fff;
}

progress::-webkit-progress-value {
  @include progress-value;
}

progress::-moz-progress-bar {
  @include progress-value;
}

progress:indeterminate::-moz-progress-bar {
  @include progress-value-indeterminate;
}

progress:not([value])::-webkit-progress-value {
  @include progress-value-indeterminate;
}

@keyframes indeterminate {
  from {
    margin-left: -30px;
  }

  to {
    margin-left: 100%;
  }
}
