.order-timeline * {
    box-sizing: border-box;
}

.order-timeline {
    color: #333;
    padding: 40px;
    padding-left:0px;
    border-radius: 20px;
    margin: 40px auto;
    overflow: visible;
}

.order-timeline h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #1e293b;
}

.order-timeline .timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 10px;
}

.order-timeline .timeline::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #d1d5db;
    z-index: 0;
    border-radius: 2px;
}

.order-timeline .step {
    position: relative;
    text-align: center;
    flex: 1;
    min-width: 120px;
    z-index: 2;
    padding: 0 10px;
    word-wrap: break-word;
}

.order-timeline .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1d5db;
    margin: 0 auto 12px;
    position: relative;
    top: 35px;
    transform: translateY(-50%);
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: visible;
}

.order-timeline .completed .dot {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.order-timeline .active .dot {
    background: linear-gradient(135deg, #f22e00, #ca1f00);
    animation: order-timeline-pulse 1.5s infinite;
}

@keyframes order-timeline-pulse {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
    70% { box-shadow: 0 0 0 18px rgba(59,130,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

.order-timeline .label {
    font-size: 14px;
    color: #475569;
    line-height: 1.3em;
    word-break: break-word;
    margin-top: 45px;
}

.order-timeline .completed .label {
    color: #16a34a;
    font-weight: 500;
}

.order-timeline .active .label {
    color: #f22e00;
    font-weight: 600;
}

@media (max-width: 600px) {
    .order-timeline .timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .order-timeline .timeline::before,
    .order-timeline .timeline::after {
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);
    }

    .order-timeline .step {
        flex: none;
        text-align: left;
        min-width: unset;
    }

    .order-timeline .dot {
        margin-left: calc(50% - 14px);
        top: 0;
        transform: none;
    }

    .order-timeline .label {
        margin-top: 10px;
    }
}