/* WooCommerce Order Tracker Styles */
.wc-order-tracker {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tracker-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.tracker-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
}

/* Form Styles */
.tracker-form {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.track-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.track-button:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.order-summary h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

/* Order Status */
.order-status {
    text-align: center;
    margin-bottom: 40px;
}

.status-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.status-dispatched {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #74b9ff;
}

.status-out-for-delivery {
    background: #d4edda;
    color: #155724;
    border: 2px solid #00b894;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
    border: 2px solid #00b894;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #e74c3c;
}

/* Timeline */
.order-timeline {
    margin: 40px 0;
    position: relative;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    z-index: 1;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
    border: 3px solid #e9ecef;
    background: #fff;
    transition: all 0.3s ease;
}

.step-icon.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.step-icon.completed {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    margin-top: 5px;
}

.timeline-step.active .step-label {
    color: #3498db;
}

.timeline-step.completed .step-label {
    color: #27ae60;
}

/* Products */
.order-products {
    margin-top: 30px;
}

.order-products h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.product-list {
    display: grid;
    gap: 15px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #e9ecef;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.product-quantity {
    font-size: 14px;
    color: #7f8c8d;
}

/* Loading and Error States */
.tracker-loading {
    text-align: center;
    padding: 40px;
    color: #3498db;
    font-size: 18px;
}

.tracker-loading i {
    font-size: 24px;
    margin-right: 10px;
}

.tracker-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin-top: 20px;
}

/* WooCommerce Track Button */
.wc-track-order-btn {
    background: #3498db !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.wc-track-order-btn:hover {
    background: #2980b9 !important;
    transform: translateY(-1px) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-order-tracker {
        margin: 20px;
        padding: 10px;
    }
    
    .tracker-container {
        padding: 25px;
    }
    
    .tracker-title {
        font-size: 24px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-step {
        width: 100%;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }
    
    .step-icon {
        margin-right: 15px;
        margin-bottom: 0;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .product-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
    }
}