/**
 * WooCommerce Shipment Tracking - Frontend Styles
 */

/* Tracking Box on Order Page */
.wst-tracking-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e5e5e5;
}

.wst-tracking-header {
    margin-bottom: 20px;
}

.wst-tracking-header p {
    margin: 8px 0;
}

.wst-tracking-header a {
    color: #333;
    font-family: monospace;
    font-size: 16px;
}

/* Status Badges */
.wst-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.wst-status-delivered {
    background: #d4edda;
    color: #155724;
}

.wst-status-in_transit {
    background: #cce5ff;
    color: #004085;
}

.wst-status-out_for_delivery {
    background: #fff3cd;
    color: #856404;
}

.wst-status-exception {
    background: #f8d7da;
    color: #721c24;
}

.wst-status-pending,
.wst-status-info_received {
    background: #e2e3e5;
    color: #383d41;
}

/* Timeline */
.wst-tracking-timeline {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.wst-tracking-timeline h3 {
    margin: 0 0 20px;
    font-size: 16px;
    color: #333;
}

.wst-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wst-timeline-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.wst-timeline-item:last-child {
    border-bottom: none;
}

.wst-timeline-time {
    flex: 0 0 160px;
    font-size: 13px;
    color: #666;
}

.wst-timeline-content {
    flex: 1;
}

.wst-timeline-status {
    font-weight: 500;
    color: #333;
}

.wst-timeline-location {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* Tracking Page */
.wst-tracking-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wst-tracking-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wst-tracking-title {
    text-align: center;
    margin: 0 0 30px;
    font-size: 28px;
    color: #333;
}

.wst-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

.wst-input-group {
    display: flex;
    gap: 10px;
}

.wst-input-group input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.wst-input-group input:focus {
    outline: none;
    border-color: #333;
}

.wst-track-btn {
    padding: 15px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wst-track-btn:hover {
    background: #555;
}

.wst-track-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Results */
.wst-tracking-results {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wst-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.wst-carrier-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wst-carrier-logo {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.wst-tracking-number {
    font-family: monospace;
    font-size: 18px;
    color: #333;
}

.wst-carrier-name {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

.wst-status-badge {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.wst-error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.wst-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .wst-tracking-form-container {
        padding: 25px;
    }

    .wst-input-group {
        flex-direction: column;
    }

    .wst-track-btn {
        width: 100%;
        justify-content: center;
    }

    .wst-results-header {
        flex-direction: column;
        gap: 15px;
    }

    .wst-timeline-item {
        flex-direction: column;
        gap: 5px;
    }

    .wst-timeline-time {
        flex: none;
    }
}
