/**
 * Free Shipping Progress Bar Styles
 * Shows progress towards free shipping threshold
 */

/* NUCLEAR OPTION: Hide ALL shipping bars by default */
.free-shipping-progress-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Show ONLY our official custom bar */
.free-shipping-progress-bar[data-medacsicare-bar="true"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    background: linear-gradient(135deg, #17538F 0%, #3AB8AE 100%);
    padding: 15px 20px !important;
    border-radius: 12px;
    margin: 15px 0 !important;
    box-shadow: 0 4px 15px rgba(23, 83, 143, 0.15);
    position: relative;
    overflow: visible !important;
}

.free-shipping-progress-bar[data-medacsicare-bar="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Message Text */
.free-shipping-message {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.free-shipping-message .icon {
    font-size: 18px;
}

.free-shipping-message .amount-needed {
    color: #FFD700;
    font-weight: 700;
    font-size: 16px;
}

/* Success Message */
.free-shipping-message.success {
    color: #FFD700;
    font-size: 15px;
}

.free-shipping-message.success .icon {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Progress Bar Track */
.shipping-progress-track {
    background: rgba(255, 255, 255, 0.3);
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Fill */
.shipping-progress-fill {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.shipping-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progress-shimmer 1.5s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Percentage */
.shipping-progress-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .free-shipping-progress-bar {
        padding: 12px 15px;
        margin: 12px 0;
    }
    
    .free-shipping-message {
        font-size: 13px;
    }
    
    .free-shipping-message .amount-needed {
        font-size: 15px;
    }
    
    .shipping-progress-track {
        height: 10px;
    }
}

/* Cart Widget Specific Styles */
.widget_shopping_cart .free-shipping-progress-bar {
    margin: 10px 0 15px;
}

/* Mini Cart Specific */
.woodmart-shopping-cart .free-shipping-progress-bar {
    margin: 15px 15px 10px;
}

/* Cart Page Specific */
.woocommerce-cart .free-shipping-progress-bar {
    margin: 20px 0;
    padding: 20px 25px;
}

.woocommerce-cart .free-shipping-message {
    font-size: 16px;
}

.woocommerce-cart .shipping-progress-track {
    height: 14px;
}
