.discount-progress,
.discount-progress-popup {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 16px;
  overflow: hidden;
  background-color: red;
  color: white;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.discount-progress {
  position: sticky;
  top: 0;
  z-index: 10000;
}

.discount-progress-popup {
  margin: 16px 0;
}

.discount-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgb(0, 97, 206) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: discount-progress-shine 7s linear infinite;
  pointer-events: none;
}

.discount-progress__text {
  position: relative;
  z-index: 1;
  line-height: inherit;
}

.discount-progress__step {
  display: inline-block;
  line-height: inherit;
}

@keyframes discount-progress-shine {
  0%, 85% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Keep the existing fixed mobile navigation below the sticky discount bar. */
@media screen and (max-width: 1180px) {
  .normalmenu,
  .mobile-bar,
  .mobile-bar .collapsible p {
    top: var(--discount-progress-height, 0px);
  }

  .mobile-container {
    top: calc(50px + var(--discount-progress-height, 0px));
    max-height: calc(100vh - 50px - var(--discount-progress-height, 0px));
    overflow-y: auto;
  }

  .mobile-bar .collapsible {
    max-height: calc(100vh - 40px - var(--discount-progress-height, 0px));
  }
}

@media screen and (max-width: 600px) {
  .discount-progress,
  .discount-progress-popup {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discount-progress::before { animation: none; }
}
