/* ============================================= */
/* جستجوی سفارشات – WooCommerce Order Tracking   */
/* ============================================= */

/* ---- باکس جستجو ---- */
.wot-search-wrapper {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.wot-help-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.wot-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wot-search-form input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wot-search-btn {
    font-size: 16px !important;
    padding: 10px 30px !important;
}

/* ---- باکس نتایج ---- */
.wot-results-wrapper {
    margin: 20px 0;
}

.wot-table-wrap {
    overflow-x: auto;
}

/* ---- جدول سفارشات ---- */
.wot-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.wot-orders-table th,
.wot-orders-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: right;
}

.wot-orders-table th {
    background: #f0f0f0;
    font-weight: bold;
}

.wot-orders-table tr:nth-child(even) {
    background: #fafafa;
}

.wot-orders-table tr:hover {
    background: #f0f7ff;
}

.wot-order-id a {
    font-weight: bold;
    text-decoration: none;
}

/* ---- برچسب وضعیت (رنگ‌بندی) ---- */
.wot-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.wot-status-pending {
    background: #f8dda7;
    color: #94660c;
}

.wot-status-processing {
    background: #c6e1c6;
    color: #2d6a2d;
}

.wot-status-on-hold {
    background: #f1c6c6;
    color: #8a2e2e;
}

.wot-status-completed {
    background: #c8d7e4;
    color: #2e4a6a;
}

.wot-status-cancelled {
    background: #e0e0e0;
    color: #666;
}

.wot-status-refunded {
    background: #e4c8d7;
    color: #6a2e4a;
}

.wot-status-failed {
    background: #f4c6c6;
    color: #9e2e2e;
}

/* ---- کد رهگیری ---- */
.wot-tracking-code {
    font-weight: bold;
    color: #2a7d2a;
    direction: ltr;
    text-align: left;
}

.wot-tracking-pending {
    color: #999;
    font-style: italic;
}

/* ---- پیام‌ها ---- */
.wot-no-results {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

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