/* Free Shipping Notice Styles */
.free-shipping-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.free-shipping-message.qualified {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #c3e6cb;
}

.free-shipping-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    text-align: center;
}

.free-shipping-message.qualified p {
    color: #155724;
}

.remaining-amount {
    color: #000000;
    font-weight: 700;
}

.celebration {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
}

/* Progress Bar Container */
.free-shipping-progress-bar {
    position: relative;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 20px;
    /*overflow: hidden;*/
    margin: 10px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Fill */
.free-shipping-progress {
    height: 100%;
    background: linear-gradient(90deg, #343a40 0%, #000000 100%);
    border-radius: 20px;
    transition: width 0.6s ease-in-out;
    position: relative;
}

.free-shipping-progress.complete {
    background: linear-gradient(90deg, #343a40 0%, #000000 100%);
}

/* Start Circle (Beginning of Progress Bar) */
.free-shipping-progress-bar::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 19px;
    background-color: #343a40;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* End Circle with Vehicle Icon (End of Progress Bar) */
.free-shipping-progress-bar::after {
    content: '\f0d1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #fff;
    border: 3px solid #000000;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.free-shipping-message.qualified .free-shipping-progress-bar::after {
    border-color: #000000;
    background-color: #000000;
    color: white;
}

/* Mini Cart Styles */
.mini-cart-free-shipping-message {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #dee2e6;
}

.mini-cart-free-shipping-message p {
    margin: 0 0 8px 0;
    font-weight: 500;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .free-shipping-message {
        padding: 15px;
        margin: 15px 0;
    }
    
    .free-shipping-message p {
        font-size: 14px;
    }
    
    .free-shipping-progress-bar {
        height: 10px;
    }
    
    .free-shipping-progress-bar::before,
    .free-shipping-progress-bar::after {
        width: 20px;
        height: 20px;
    }
    
    .free-shipping-progress-bar::before {
        left: -5px;
    }
    
    .free-shipping-progress-bar::after {
        right: -10px;
        font-size: 10px;
    }
}

/* Animation for progress bar */
@keyframes progressFill {
    from {
        width: 0%;
    }
}

.free-shipping-progress {
    animation: progressFill 0.8s ease-out;
}

/* Hover effects */
.free-shipping-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Additional styling for better visual hierarchy */
.free-shipping-message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Pulse animation for the vehicle icon when shipping is qualified */
.free-shipping-message.qualified .free-shipping-progress-bar::after {
    animation: pulse 2s infinite;
}

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