.free-shipping-bar {
    background-color: #f3f3f3;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
}

.progress-bar {
    height: 10px;
    background-color: #4caf50;
}

.progress-message {
    font-size: 14px;
    color: #333;
}

.free-shipping-popup {
    background-color: #ffeb3b;
    padding: 20px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
    min-width: 300px;
    border-radius: 10px;
}

.free-shipping-popup.show {
    display: block;
}

.ribbon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.ribbon {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%; /* make it a circle */
  background-color: red; /* will be overridden by JS */
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: sparkle 1.5s infinite ease-in-out alternate;
  z-index: 10001;
}

@keyframes sparkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: red; /* will be overridden by JS */
  opacity: 1;
  pointer-events: none;
  animation: sparkle-blast 2s forwards;
}

@keyframes sparkle-blast {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.1);
  }
}

