.sunfresh-progress-container {
    margin: 20px 0;
    font-family: "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.sunfresh-progress-bar {
    background: #f0f0f0;
    height: 30px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
    position: relative;
}

.sunfresh-progress-fill {
    background: linear-gradient(90deg, #4caf50, #81c784, #a5d6a7);
    height: 100%;
    transition: width 0.6s ease-in-out;
    border-radius: 30px 0 0 30px;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

/* Moving cart icon */
.sunfresh-progress-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    transition: left 0.6s ease-in-out;
    left: calc(var(--progress, 0%) - 15px);
}

/* Pulse animation when free shipping is unlocked */
.sunfresh-progress-bar.free-shipping .sunfresh-progress-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Milestone marker for free shipping */
.sunfresh-progress-bar::after {
    content: "🚚 Free Shipping";
    position: absolute;
    top: -28px;
    right: 0;
    font-size: 13px;
    font-weight: bold;
    color: #888; /* default grey before unlocked */
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

/* Glow effect when free shipping is unlocked */
.sunfresh-progress-bar.free-shipping::after {
    color: #4caf50;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
}

/* Message styling */
.sunfresh-progress-message {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Confetti container */
.sunfresh-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.sunfresh-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    opacity: 0.8;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(720deg); }
}
