/* Varni Shipping Tracker - Customer Styles */

/* My Orders table */
.vst-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vst-delivered  { background: #d4edda; color: #155724; }
.vst-out        { background: #cce5ff; color: #004085; }
.vst-transit    { background: #fff3cd; color: #856404; }
.vst-shipped    { background: #e2d9f3; color: #432874; }
.vst-rto        { background: #f8d7da; color: #721c24; }
.vst-exception  { background: #f8d7da; color: #721c24; }
.vst-pending    { background: #e2e3e5; color: #383d41; }

.vst-awb { color: #666; font-size: 11px; }
.vst-track-btn {
    font-size: 11px;
    color: #0073aa;
    text-decoration: none;
}

/* Tracking Box */
.vst-tracking-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.vst-tracking-box h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.vst-preparing p {
    color: #666;
    margin: 0;
}

.vst-track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.vst-awb-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vst-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.8px;
}
.vst-awb-num {
    font-size: 20px;
    font-weight: 700;
    font-family: monospace;
    color: #1a1a2e;
    letter-spacing: 1px;
}
.vst-courier {
    font-size: 12px;
    color: #666;
}

.vst-expected {
    background: #f0f7ff;
    border-left: 3px solid #0073aa;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #444;
}

/* Progress Steps */
.vst-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 24px 0;
    padding: 0 10px;
}

.vst-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.vst-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    min-width: 60px;
}

.vst-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.vst-step.done .vst-step-icon {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.vst-step.active .vst-step-icon {
    background: #fff;
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0,115,170,0.15);
    animation: vstPulse 1.5s ease-in-out infinite;
}

@keyframes vstPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0,115,170,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(0,115,170,0.08); }
}

.vst-step-label {
    font-size: 10px;
    text-align: center;
    color: #666;
    font-weight: 500;
    line-height: 1.3;
    max-width: 60px;
}

.vst-step.done .vst-step-label,
.vst-step.active .vst-step-label {
    color: #222;
    font-weight: 600;
}

/* Footer */
.vst-track-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.vst-track-footer small {
    color: #999;
    font-size: 12px;
}

.vst-track-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vst-refresh-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.vst-refresh-btn:hover { background: #005a87; }
.vst-refresh-btn:disabled { background: #aaa; cursor: not-allowed; }

.vst-fship-link {
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
}
.vst-fship-link:hover { text-decoration: underline; }

/* Mobile responsive */
@media (max-width: 600px) {
    .vst-step-label { font-size: 9px; }
    .vst-step-icon { width: 34px; height: 34px; font-size: 14px; }
    .vst-track-header { flex-direction: column; }
    .vst-track-footer { flex-direction: column; align-items: flex-start; }
}

/* Admin styles */
.vst-admin-wrap .vst-tab-content { padding: 20px 0; }
