.wc-free-shipping-bar {
    position: relative;
    background: #f3f3f3;
    border-radius: 8px;
    padding: 12px;
    margin: 10px auto;
    max-width: 1200px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Animated empty background */
.wc-free-shipping-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    animation: wcfs-shimmer 3s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Candy-striped progress fill */
.wc-free-shipping-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 8px;
    z-index: 1;

    background-color: #2ecc71;

    background-image:
        linear-gradient(
            45deg,
            rgba(255,255,255,.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255,255,255,.15) 50%,
            rgba(255,255,255,.15) 75%,
            transparent 75%,
            transparent
        ),
        linear-gradient(
            to bottom,
            rgba(255,255,255,.15),
            rgba(0,0,0,.05)
        );

    background-size: 40px 40px, 100% 100%;

    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    animation: wcfs-stripes 1.5s linear infinite;
}

/* Text */
.wc-free-shipping-text {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Optional class for unlocked free shipping */
.wcfs-complete {
    animation:
        wcfs-stripes 1.5s linear infinite,
        wcfs-pulse 1.5s ease-in-out infinite;
}

.wcfs-highlight {
    display: inline-block;
    color: #333;
    font-weight: 700;
    animation: wcfs-highlight-pulse 1.5s ease-in-out infinite;
}

@keyframes wcfs-highlight-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Animated shimmer for empty background */
@keyframes wcfs-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Moving candy stripes */
@keyframes wcfs-stripes {
    0% {
        background-position: 40px 0, 0 0;
    }
    100% {
        background-position: 0 0, 0 0;
    }
}

/* Pulse effect when free shipping is unlocked */
@keyframes wcfs-pulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.15);
    }
}