/* WooCommerce Order Status Tracker - Frontend Styles */

.wcost-tracking-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.wcost-tracking-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.wcost-tracking-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    text-align: center;
}

.wcost-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wcost-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.wcost-input:focus {
    outline: none;
    border-color: #0073aa;
}

.wcost-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcost-btn-primary {
    background-color: #0073aa;
    color: #ffffff;
}

.wcost-btn-primary:hover {
    background-color: #005a87;
}

.wcost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Section */
.wcost-result {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.wcost-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wcost-order-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.wcost-order-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.wcost-order-date {
    color: #666;
    font-size: 14px;
}

/* Status Heading - Like a main heading */
.wcost-status-heading {
    text-align: center;
    margin: 30px 0;
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wcost-status-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Progress/Shipping Bar */
.wcost-progress-container {
    margin: 40px 0;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 8px;
}

.wcost-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.wcost-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.wcost-step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    position: relative;
}

.wcost-progress-step.active .wcost-step-circle {
    background: #0073aa;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

.wcost-progress-step.current .wcost-step-circle {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.2);
    animation: wcost-pulse 2s infinite;
}

@keyframes wcost-pulse {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(102, 126, 234, 0.1);
    }
}

.wcost-step-number {
    font-size: 20px;
    font-weight: 700;
    color: #999;
}

.wcost-progress-step.active .wcost-step-number {
    color: #ffffff;
}

.wcost-check-icon {
    width: 30px;
    height: 30px;
    color: #ffffff;
}

.wcost-step-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    max-width: 120px;
    line-height: 1.3;
}

.wcost-progress-step.active .wcost-step-label {
    color: #333;
}

.wcost-progress-step.current .wcost-step-label {
    color: #667eea;
    font-weight: 700;
}

.wcost-step-connector {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    transform: translateY(-50%);
    transition: background 0.4s ease;
}

.wcost-step-connector.active {
    background: linear-gradient(90deg, #0073aa 0%, #667eea 100%);
}

.wcost-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

.wcost-tracking-info {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.wcost-tracking-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.wcost-tracking-number {
    font-size: 18px;
    color: #0073aa;
    font-family: monospace;
}

/* Order Details Grid */
.wcost-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.wcost-detail-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.wcost-detail-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.wcost-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wcost-detail-row:last-child {
    border-bottom: none;
}

.wcost-detail-label {
    font-weight: 600;
    color: #555;
}

.wcost-detail-value {
    color: #333;
    text-align: right;
}

/* Order Items */
.wcost-order-items {
    margin-top: 30px;
}

.wcost-order-items h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.wcost-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.wcost-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.wcost-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcost-item-details {
    flex: 1;
}

.wcost-item-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.wcost-item-meta {
    color: #666;
    font-size: 14px;
}

.wcost-item-price {
    font-weight: 600;
    font-size: 18px;
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .wcost-tracking-form {
        padding: 20px;
    }
    
    .wcost-form-group {
        flex-direction: column;
    }
    
    .wcost-details-grid {
        grid-template-columns: 1fr;
    }
    
    .wcost-item {
        flex-direction: column;
        text-align: center;
    }
    
    .wcost-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .wcost-detail-value {
        text-align: left;
    }
    
    /* Progress bar mobile adjustments */
    .wcost-status-title {
        font-size: 24px;
    }
    
    .wcost-progress-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wcost-progress-step {
        flex-direction: row;
        align-items: center;
        margin-bottom: 25px;
        padding-left: 10px;
    }
    
    .wcost-step-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .wcost-step-label {
        text-align: left;
        max-width: none;
        flex: 1;
    }
    
    .wcost-step-connector {
        display: none;
    }
    
    .wcost-check-icon {
        width: 24px;
        height: 24px;
    }
}

/* Loading State */
.wcost-loading {
    text-align: center;
    padding: 40px;
}

.wcost-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: wcost-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes wcost-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
