/* Wazeefa Order Tracking Timeline Styles */
.wazeefa-order-timeline {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wazeefa-order-timeline h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-container {
    overflow-x: auto;
}

.timeline-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    position: relative;
    min-width: 500px;
}

.timeline-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    text-transform: capitalize;
}

.timeline-steps li::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    background: #cbd5e1;
    border: 3px solid #cbd5e1;
    transition: all 0.3s ease;
}

.timeline-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 16px);
    right: -50%;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

/* Completed steps */
.timeline-steps li.completed {
    color: #2563eb;
}

.timeline-steps li.completed::before {
    background: #2563eb;
    border-color: #2563eb;
}

.timeline-steps li.completed:not(:last-child)::after {
    background: #60a5fa;
}

/* Current step */
.timeline-steps li.current {
    color: #059669;
}

.timeline-steps li.current::before {
    background: #059669;
    border-color: #059669;
    animation: pulse 2s infinite;
}

.timeline-steps li.current.refunded {
    color: #dc2626;
}

.timeline-steps li.current.refunded::before {
    background: #dc2626;
    border-color: #dc2626;
}

/* Upcoming steps */
.timeline-steps li.upcoming {
    color: #94a3b8;
}

.timeline-steps li.upcoming::before {
    background: #94a3b8;
    border-color: #94a3b8;
}

/* Pulse animation for current step */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .wazeefa-order-timeline {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .timeline-steps {
        min-width: 400px;
        gap: 0.5rem;
    }
    
    .timeline-steps li {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .timeline-steps li::before {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .timeline-steps li:not(:last-child)::after {
        top: 22px;
    }
}