/**
 * JCWT Timeline Styles - Frontend
 * Optimized, mobile-responsive, lightweight, LIGHT THEME
 */

.jcwtot-order-box {
    background: #ffffff;
    padding: 24px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.jcwtot-order-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 12px;
}

.jcwtot-timeline {
    position: relative;
    padding-left: 50px;
    margin: 20px 0;
}

.jcwtot-timeline:before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 3px;
    height: calc(100% - 10px);
    background: #d1d5db;
    border-radius: 3px;
}

.jcwtot-step {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    animation: jcwtSlideIn 0.5s ease forwards;
}

@keyframes jcwtSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.jcwtot-step:last-child {
    margin-bottom: 0;
}

.jcwtot-icon {
    position: absolute;
    left: -50px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #764ba2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
    z-index: 2;
}

.jcwtot-icon.check {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.jcwtot-icon.fail {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.jcwtot-content {
    flex: 1;
    min-width: 0;
}

.jcwtot-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.jcwtot-content span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.jcwtot-eta {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 20px;
    border-left: 4px solid #0ea5e9;
    color: #0c4a6e;
    line-height: 1.6;
}

.jcwtot-eta strong {
    color: #075985;
    font-weight: 600;
}

.jcwtot-eta.jcwtot-refund {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #ef4444;
    color: #7f1d1d;
}

.jcwtot-eta.jcwtot-refund strong {
    color: #991b1b;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .jcwtot-order-box {
        padding: 18px;
        margin: 20px 0;
        border-radius: 10px;
    }
    
    .jcwtot-order-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .jcwtot-timeline {
        padding-left: 40px;
    }
    
    .jcwtot-timeline:before {
        left: 10px;
    }
    
    .jcwtot-icon {
        left: -40px;
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .jcwtot-content h4 {
        font-size: 15px;
    }
    
    .jcwtot-content span {
        font-size: 12px;
    }
    
    .jcwtot-eta {
        padding: 14px 16px;
        font-size: 13px;
        margin-top: 16px;
    }
    
    .jcwtot-step {
        margin-bottom: 18px;
    }
}

@media (max-width: 400px) {
    .jcwtot-order-box {
        padding: 16px;
    }
    
    .jcwtot-timeline {
        padding-left: 35px;
    }
    
    .jcwtot-icon {
        left: -35px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* Print styles */
@media print {
    .jcwtot-order-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .jcwtot-step {
        animation: none;
        opacity: 1 !important;
        transform: none !important;
    }
}
