/**
 * Public styles for WC Order Status Tracker
 */
.wc-order-status-tracker {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wc-order-status-tracker-form {
    margin-bottom: 30px;
}

.wc-order-status-tracker-form h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.wc-order-status-tracker-form .description {
    margin-bottom: 20px;
    color: #555;
}

.wc-order-status-tracker-form form {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.wc-order-status-tracker-form .form-row {
    margin-bottom: 15px;
}

.wc-order-status-tracker-form .form-row:last-child {
    margin-bottom: 0;
}

.wc-order-status-tracker-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wc-order-status-tracker-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.wc-order-status-tracker-form button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wc-order-status-tracker-form button:hover {
    background-color: #005e8a;
}

/* Results styling */
.wc-order-status-tracker-result {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.order-status-result .order-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-status-result .order-header h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 20px;
}

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

.order-status-result .order-status {
    margin-bottom: 25px;
}

.order-status-result .status-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: #0073aa;
    color: white;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.order-status-result .status-message {
    font-size: 16px;
    line-height: 1.5;
}

.order-status-result .order-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-status-result .order-items {
    margin-bottom: 20px;
}

.order-status-result .order-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-status-result .order-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-status-result .item-image {
    width: 60px;
    margin-right: 15px;
}

.order-status-result .item-image img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.order-status-result .item-details {
    flex: 1;
}

.order-status-result .item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-status-result .item-meta {
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.order-status-result .order-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.order-status-result .order-total,
.order-status-result .order-payment {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-status-result .order-total:last-child,
.order-status-result .order-payment:last-child {
    margin-bottom: 0;
}

.order-status-result .label {
    font-weight: 600;
}

/* Loading indicator */
.wc-order-status-tracker-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.wc-order-status-tracker-loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #ddd;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

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

/* Error message */
.wc-order-status-tracker-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 600px) {
    .wc-order-status-tracker {
        padding: 15px;
    }
    
    .wc-order-status-tracker-form form {
        padding: 15px;
    }
    
    .order-status-result .order-item {
        flex-direction: column;
    }
    
    .order-status-result .item-image {
        width: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }
}
