/* استایل اصلی افزونه */
.woo-order-tracker-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.wot-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.wot-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wot-order-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.wot-order-input:focus {
    outline: none;
    border-color: #007cba;
}

.wot-track-button {
    padding: 12px 30px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    white-space: nowrap;
}

.wot-track-button:hover {
    background: #005a87;
}

.wot-track-button:active {
    transform: scale(0.98);
}

.wot-result {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* کارت سفارش */
.wot-order-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.wot-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.wot-order-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.wot-order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* رنگ‌های وضعیت‌های مختلف */
.status-pending { background: #f0ad4e; color: white; }
.status-processing { background: #5bc0de; color: white; }
.status-on-hold { background: #d9534f; color: white; }
.status-completed { background: #5cb85c; color: white; }
.status-cancelled { background: #777; color: white; }
.status-refunded { background: #d9534f; color: white; }
.status-failed { background: #d9534f; color: white; }

/* جزئیات سفارش */
.wot-order-details {
    display: grid;
    gap: 15px;
}

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

.wot-detail-label {
    color: #666;
    font-weight: bold;
}

.wot-detail-value {
    color: #333;
}

/* اقلام سفارش */
.wot-order-items {
    margin-top: 20px;
}

.wot-items-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.wot-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
    margin-bottom: 5px;
}

.wot-item-image {
    width: 50px;
    height: 50px;
    margin-left: 15px;
    border-radius: 5px;
    object-fit: cover;
}

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

.wot-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

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

/* یادداشت‌های سفارش */
.wot-order-notes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.wot-notes-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.wot-note-item {
    background: #fff;
    border-right: 3px solid #007cba;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.wot-note-content {
    color: #333;
    margin-bottom: 5px;
}

.wot-note-date {
    font-size: 12px;
    color: #999;
}

/* پیام خطا */
.wot-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border-right: 3px solid #dc3545;
}

/* لودینگ */
.wot-loading {
    text-align: center;
    padding: 20px;
}

.wot-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* واکنش‌گرایی */
@media (max-width: 600px) {
    .woo-order-tracker-container {
        margin: 10px;
        padding: 15px;
    }
    
    .wot-search-form {
        flex-direction: column;
    }
    
    .wot-track-button {
        width: 100%;
    }
    
    .wot-order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}