$progress-bar-time: 45s;

.progress-bar-container {
  position: relative;
  right: 0;
  left: 0;
  width: 1220px;
  margin: auto;
  padding-top: 90px;
  margin-bottom: 25px;
  z-index: 9;
  background-color: #f1f1f1;

  &.sticky {
    position: fixed;
    top: -65px;
  }
}

.countdown-info {
  position: relative;
  width: 100%;
  height: 64px;
  padding: 11px 0 13px 12px;
  justify-content: space-between;
}

.countdown-numbers,
.countdown-text,
.countdown-secs {
  display: inline-block;
}

.countdown-text {
  font-size: 13px;
  line-height: 17px;
  position: relative;
  vertical-align: top;
  text-align: right;
  top: 6px;
  width: 131px;
  opacity: .4;
}

.countdown-numbers {
  font-size: 42px;
  line-height: 43px;
  min-width: 60px;
  text-align: right;
}

.countdown-secs {
  font-size: 13px;
  margin-left: 4px;
}

// .countdown-background {
//   position: absolute;
//   z-index: 0;
//   top: 0;
//   left: 0;
//   width: 100%;
//   height: 100%;
//   // animation: show-search-progress $progress-bar-time cubic-bezier(.215, .61, .355, 1);
//   opacity: .05;
//   background: #007aff;
// }

.countdown-title {
  font-size: 17px;
  line-height: 21px;
}

.countdown-subtitle {
  font-size: 13px;
  line-height: 16px;
  opacity: .4;
}

.search_countdown {
  width: 100%;
  height: 68px;
  margin: 1px 0 8px;
  margin-bottom: 0;
}

.progress-bar-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  border-bottom: 1px solid rgba(#000, 0.15);
}

.progress-bar {
  position: absolute;
  top: 0;
  width: 0;
  height: 4px;
  transition: transform .5s cubic-bezier(.215, .61, .355, 1), opacity .5s cubic-bezier(.215, .61, .355, 1);
  background-color: #145dfa;
  background-image: repeating-linear-gradient(135deg, #2e8dff, #2e8dff 20px, #145dfa 20px, #145dfa 40px);
  background-size: 228px 32px;
  &.start-animation {
    position: relative;
    width: 100%;
    animation: show-search-progress $progress-bar-time cubic-bezier(.215, .61, .355, 1), stripes .5s infinite linear;
    &:before {
      position: absolute;
      z-index: 0;
      top: -63px;
      left: 0;
      display: block;
      width: 100%;
      height: 64px;
      content: '';
      opacity: .05;
      background: #007aff;
    }
  }
  &.finished-animation {
    width: 100%;
  }
}

@keyframes stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -56px 0;
  }
}

@keyframes show-search-progress {
  0%   {
    width: 0;
  }
  20%  {
    width: 20%;
  }
  40%  {
    width: 40%;
  }
  60%  {
    width: 60%;
  }
  80%  {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}
