/**
 * PickPair - Free Shipping Progress Bar Styles
 */

.yspp-shipping-bar-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
    font-family: inherit;
    transition: all 0.3s ease;
    clear: both;
    display: block;
}

.yspp-shipping-bar-card {
    width: 100% !important;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px 24px 44px 24px !important;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box !important;
}

.yspp-shipping-bar-message {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.yspp-shipping-bar-message strong {
    font-weight: 700;
    color: inherit;
}

/* PickPair Violet Reward & Currency Pills */
.yspp-pill {
    display: inline-block;
    background-color: #F0EEFF;
    color: #6E00F8;
    font-weight: 700;
    font-size: 0.9em;
    padding: 2px 10px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: baseline;
}

/* Track & Bar */
.yspp-shipping-bar-track {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: #ECE9FE;
    border-radius: 9999px;
    overflow: visible;
}

.yspp-shipping-bar-fill {
    height: 100%;
    position: relative;
    background-color: #6E00F8;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Shimmer / Striped effect */
.yspp-shipping-bar-fill.yspp-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 24px 24px;
    animation: yspp-stripes 1.5s linear infinite;
}

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

/* Multi-tier Milestone Pins */
.yspp-milestone-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: default;
}

.yspp-milestone-pin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    background-color: #6E00F8;
    border: none;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.yspp-milestone-pin img,
.yspp-milestone-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.yspp-milestone-marker:not(.unlocked) .yspp-milestone-pin {
    opacity: 0.85;
}

.yspp-milestone-marker.unlocked .yspp-milestone-pin {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px rgba(106, 11, 252, 0.22), 0 3px 8px rgba(106, 11, 252, 0.35);
}

.yspp-milestone-label {
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    pointer-events: none;
    text-align: center;
}

.yspp-milestone-marker.unlocked .yspp-milestone-label {
    color: #0f172a;
    font-weight: 800;
}

/* Unlocked Celebration State */
.yspp-shipping-bar-card.celebrated {
    animation: yspp-celebrate 0.6s ease-in-out;
}

@keyframes yspp-celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Milestone Free Gift Styles */
.yspp-free-gift-price {
    display: inline-block;
    color: #10b981 !important;
    font-weight: 700 !important;
    font-size: 0.85em;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
}

.yspp-free-gift-qty {
    display: inline-block;
    font-weight: 600;
    color: #0f172a;
}