/* Increase AOV Progress Bar - Frontend Styles */

.increase-aov-progress-container {
    max-width: 1230px;
    margin: -40px auto 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aov-progress-wrapper {
    position: relative;
}

/* Progress Message */
.aov-progress-message {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 0;
}

/* All offers achieved message */
/* .aov-progress-message .all-offers-achieved {
    color: #00b894;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: celebrate-achievement 2s ease-in-out infinite;
} */

@keyframes celebrate-achievement {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* All offers achieved marker styles */
.aov-progress-wrapper.all-offers-achieved .aov-progress-marker .marker-dot {
    background: #ffd700;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: golden-pulse 1.5s ease-in-out infinite;
}

@keyframes golden-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Progress Bar Container */
.aov-progress-bar-container {
    position: relative;
    margin: 10px 0;
    padding: 0px 0;
}

/* Progress Track */
.aov-progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Progress Fill */
.aov-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894 0%, #55c57a 100%);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
    position: relative;
}

/* All offers achieved state */
.aov-progress-wrapper.all-offers-achieved .aov-progress-fill {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    animation: golden-glow 2s ease-in-out infinite;
}

@keyframes golden-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

.aov-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 25%,
        rgba(255,255,255,0.2) 25%,
        rgba(255,255,255,0.2) 50%,
        transparent 50%,
        transparent 75%,
        rgba(255,255,255,0.2) 75%);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Progress Markers */
.aov-progress-markers {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 40px;
}

.aov-progress-marker {
    position: absolute;
    transform: translateX(-50%);
    z-index: 10;
}

/* Marker Dot */
.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dee2e6;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.aov-progress-marker.achieved .marker-dot {
    background: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.3);
    animation: pulse-achieved 2s infinite;
}

.aov-progress-marker.current .marker-dot {
    background: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
    animation: pulse-current 1.5s infinite;
}

@keyframes pulse-achieved {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse-current {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.1); }
}

/* Marker Labels */
.marker-label {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px 12px;
    min-width: 120px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    border: 1px solid #e9ecef;
}

.marker-label::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.aov-progress-marker:hover .marker-label,
.aov-progress-marker.current .marker-label {
    opacity: 1;
    visibility: visible;
    top: 20px;
}

.marker-title {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
}

.marker-amount {
    display: block;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.aov-progress-marker.achieved .marker-label {
    background: #d4edda;
    border-color: #c3e6cb;
}

.aov-progress-marker.current .marker-label {
    background: #fff3cd;
    border-color: #ffeaa7;
}

/* Current Total Display */
.aov-current-total {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .increase-aov-progress-container {
        padding: 15px;
        margin: 15px 0;
    }

    .aov-progress-message {
        font-size: 14px;
        padding: 8px;
    }

    .marker-label {
        font-size: 10px;
        padding: 6px 8px;
        max-width: 120px;
        word-break: break-word;
        white-space: normal;
        text-align: center;
    }

    .marker-title {
        font-size: 11px;
    }

    .marker-amount {
        font-size: 10px;
    }

    .aov-current-total {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .marker-dot {
        width: 14px;
        height: 14px;
    }

    .aov-progress-track {
        height: 6px;
    }

    .marker-label {
        max-width: 100px;
        font-size: 9px;
        padding: 4px 6px;
    }
}

/* Animation for new achievements */
.achievement-animation {
    animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.05); }
}


body.checkout-wc .aov-progress-bar-container,
body.checkout-wc .increase-aov-progress-container {
    margin-top: 0 !important;
    margin-bottom: 20px;
}

.page-id-7 .increase-aov-progress-container,
.page-id-7 .aov-progress-bar-container {
    max-width: 100%;
}

.archive.tax-product_cat .woocommerce-info.wc-bogof-notice,
.post-type-archive-product .woocommerce-info.wc-bogof-notice {
    max-width: 1230px;
    margin: 0 auto 20px;
}

/* Side Cart Progress Bar Styles */
.aov-side-cart-progress {
    margin-bottom: 0px !important;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.aov-side-cart-progress .increase-aov-progress-container {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: none;
}

.aov-side-cart-progress .aov-progress-message {
    font-size: 14px;
    margin-bottom: 12px;
}

.aov-side-cart-progress .marker-label {
    font-size: 10px;
    padding: 6px 8px;
    min-width: 100px;
    max-width: 140px;
}

.aov-side-cart-progress .marker-title {
    font-size: 10px;
}

.aov-side-cart-progress .marker-amount {
    font-size: 9px;
}