/**
 * Woolements Order Tracking Widget Stylesheet
 * استایل‌های کاملاً مدرن، مینیمال، جمع‌وجور، واکنش‌گرا و سبک بدون افت عملکرد
 */

:root {
    --wot-primary: #4f46e5;
    --wot-primary-hover: #4338ca;
    --wot-primary-light: rgba(79, 70, 229, 0.08);
    --wot-bg: #ffffff;
    --wot-card-border: #e2e8f0;
    --wot-text: #0f172a;
    --wot-text-muted: #64748b;
    --wot-radius: 16px;
    --wot-radius-sm: 10px;
    --wot-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.04);
}

.wot-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    direction: rtl;
    box-sizing: border-box;
    font-family: inherit;
    contain: layout style;
}

.wot-container *,
.wot-container *::before,
.wot-container *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   ۱. فرم پیگیری سفارش (Form Card)
   ========================================================================== */
.wot-form-card {
    background: var(--wot-bg);
    border: 1px solid var(--wot-card-border);
    border-radius: var(--wot-radius);
    padding: 28px 24px;
    box-shadow: var(--wot-shadow);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.wot-form-card.wot-is-hidden {
    display: none;
}

.wot-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.wot-form-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.12));
    color: var(--wot-primary);
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.wot-form-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--wot-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.wot-form-desc {
    font-size: 13.5px;
    color: var(--wot-text-muted);
    margin: 0;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.wot-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .wot-fields-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .wot-form-card {
        padding: 20px 16px;
    }
}

.wot-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wot-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wot-text);
}

.wot-field-label i {
    color: var(--wot-primary);
    font-size: 13px;
}

.wot-input-wrap {
    position: relative;
    width: 100%;
}

.wot-input-field {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--wot-card-border);
    border-radius: var(--wot-radius-sm);
    background-color: #f8fafc;
    color: var(--wot-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wot-input-field:focus {
    background-color: #ffffff;
    border-color: var(--wot-primary);
    box-shadow: 0 0 0 3px var(--wot-primary-light);
}

.wot-input-field::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.wot-submit-wrap {
    margin-top: 8px;
}

.wot-btn-submit {
    position: relative;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--wot-radius-sm);
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.35);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
    overflow: hidden;
}

.wot-btn-submit:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 12px 24px -4px rgba(79, 70, 229, 0.45);
}

.wot-btn-submit:active {
    transform: translateY(0);
}

.wot-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.wot-btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wotSpin 0.75s linear infinite;
    position: absolute;
}

.wot-btn-submit.is-loading .wot-btn-text {
    opacity: 0;
}

.wot-btn-submit.is-loading .wot-btn-loader {
    display: block;
}

@keyframes wotSpin {
    to { transform: rotate(360deg); }
}

.wot-helper-note {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--wot-text-muted);
}

.wot-alert-box {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: var(--wot-radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.5;
    animation: wotFadeIn 0.25s ease;
}

@keyframes wotFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ۲. اسکلتون لودینگ پیشرفته (Skeleton Loader)
   ========================================================================== */
.wot-skeleton-card {
    background: var(--wot-bg);
    border: 1px solid var(--wot-card-border);
    border-radius: var(--wot-radius);
    padding: 24px;
    box-shadow: var(--wot-shadow);
    margin-top: 20px;
    animation: wotFadeIn 0.3s ease;
}

.wot-sk-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wot-sk-line {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: wotShimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes wotShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.wot-sk-badge { width: 140px; height: 32px; }
.wot-sk-pill { width: 100px; height: 32px; }
.wot-sk-title { width: 160px; height: 18px; margin-bottom: 16px; }
.wot-sk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.wot-sk-col { width: 100%; height: 140px; }

/* ==========================================================================
   ۳. کارت نتایج مینیمال و جمع‌وجور (Compact Result Card)
   ========================================================================== */
.wot-result-wrapper {
    background: var(--wot-bg);
    border: 1px solid var(--wot-card-border);
    border-radius: var(--wot-radius);
    padding: 24px;
    box-shadow: var(--wot-shadow);
    margin-top: 20px;
    animation: wotSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wotSlideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 15px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.wot-demo-notice {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: #4338ca;
    padding: 10px 16px;
    border-radius: var(--wot-radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* ۱. سربرگ فشرده و مدرن سفارش */
.wot-res-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #edf2f7;
    margin-bottom: 18px;
}

.wot-res-id-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wot-res-mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--wot-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wot-res-id-meta {
    display: flex;
    flex-direction: column;
}

.wot-res-no-title {
    font-size: 11.5px;
    color: var(--wot-text-muted);
}

.wot-res-order-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--wot-text);
    line-height: 1.2;
}

.wot-res-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--wot-text-muted);
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.wot-res-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--st-col, #475569);
    background: var(--st-bg, #f1f5f9);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ۲. نوار کد رهگیری پستی به سبک مینیمال و شیک */
.wot-compact-track-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--wot-radius-sm);
    padding: 12px 18px;
    margin-bottom: 20px;
}

.wot-track-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wot-track-bar-icon {
    color: #0284c7;
    font-size: 18px;
}

.wot-track-bar-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wot-text-muted);
}

.wot-tracking-code {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--wot-text);
    font-family: monospace, sans-serif;
    letter-spacing: 0.5px;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.wot-track-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wot-btn-copy,
.wot-btn-track-external {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
}

.wot-btn-copy {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--wot-text);
}

.wot-btn-copy:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.wot-btn-copy.is-copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.wot-btn-track-external {
    background: #0284c7;
    border: 1px solid #0284c7;
    color: #ffffff;
}

.wot-btn-track-external:hover {
    background: #0369a1;
}

/* ۳. گرید ۲ستونه مینیمال و متوازن */
.wot-grid-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wot-grid-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .wot-result-wrapper {
        padding: 18px 14px;
    }
}

.wot-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* باکس‌های ماژولار و تمیز */
.wot-card-box {
    background: #f8fafc;
    border: 1px solid var(--wot-card-border);
    border-radius: var(--wot-radius-sm);
    padding: 16px 18px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wot-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.wot-box-icon {
    color: var(--wot-primary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wot-box-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--wot-text);
    margin: 0;
    flex: 1;
}

.wot-items-count-badge,
.wot-notes-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--wot-primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

/* الف) بخش اطلاعات تحویل */
.wot-info-rows {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wot-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
}

.wot-row-label {
    color: var(--wot-text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.wot-row-val {
    color: var(--wot-text);
    font-weight: 700;
    text-align: left;
}

.wot-row-full-address {
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.wot-address-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wot-text);
    line-height: 1.6;
    margin: 0;
    text-align: right;
}

/* ب) بخش اختصاصی پیام‌ها و یادداشت‌های مشتری (Customer Notes) */
.wot-notes-box {
    background: #ffffff;
    border: 1px solid #e0e7ff;
}

.wot-notes-icon {
    color: #6366f1;
}

.wot-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wot-note-bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: 3px solid var(--wot-primary);
    border-radius: 8px;
    padding: 10px 12px;
    transition: background-color 0.15s ease;
}

.wot-note-bubble:hover {
    background: #f1f5f9;
}

.wot-note-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.wot-note-author {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--wot-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.wot-note-time {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wot-note-body {
    font-size: 12.5px;
    color: var(--wot-text);
    line-height: 1.6;
    word-break: break-word;
}

.wot-notes-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--wot-text-muted);
    padding: 8px 0;
}

/* ج) اقلام سفارش به صورت فشرده و مدرن */
.wot-compact-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wot-compact-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    border-bottom: 1px solid #edf2f7;
    border-radius: 6px;
    transition: background-color 0.18s ease;
}

.wot-compact-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wot-compact-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wot-compact-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.wot-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wot-dummy-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
}

.wot-compact-item-details {
    flex: 1;
    min-width: 0;
}

.wot-compact-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--wot-text);
    margin: 0 0 3px 0;
    line-height: 1.45;
    word-break: break-word;
}

.wot-compact-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.wot-compact-item-title a:hover {
    color: var(--wot-primary);
}

.wot-compact-metas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wot-compact-meta-tag {
    font-size: 11px;
    color: var(--wot-text-muted);
    background: #ffffff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.wot-compact-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.wot-compact-qty {
    font-size: 11px;
    color: var(--wot-text-muted);
    font-weight: 600;
}

.wot-compact-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--wot-text);
}

/* د) خلاصه مالی و صورتحساب */
.wot-compact-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wot-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--wot-text-muted);
}

.wot-sum-row strong,
.wot-sum-row span:last-child {
    color: var(--wot-text);
    font-weight: 700;
}

.wot-sum-discount {
    color: #dc2626;
}

.wot-sum-discount strong {
    color: #dc2626 !important;
}

.wot-free-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-block;
}

.wot-sum-grand-total {
    border-top: 1.5px dashed #cbd5e1;
    padding-top: 10px;
    margin-top: 4px;
    font-size: 14px;
    color: var(--wot-text);
}

.wot-grand-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--wot-primary) !important;
}

/* ۴. فوتر دکمه‌های عملیات */
.wot-compact-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    border-top: 1.5px solid #edf2f7;
    flex-wrap: wrap;
}

.wot-compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.wot-compact-btn i {
    font-size: 13px;
}

.wot-btn-print {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--wot-text);
}

.wot-btn-print:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.wot-btn-reset {
    background: #f1f5f9;
    color: var(--wot-text);
}

.wot-btn-reset:hover {
    background: #e2e8f0;
}

/* برگه فاکتور چاپی در حالت نمایش عادی مرورگر مخفی است */
.wot-print-invoice-sheet {
    display: none;
}

/* ==========================================================================
   ۴. بهینه‌سازی چاپ اختصاصی و رسمی فاکتور (@media print)
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 8mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* پنهان‌سازی عناصر غیرضروری و سربرگ‌های قالب سایت جهت حذف فاصله بالای برگه */
    header,
    footer,
    nav,
    aside,
    .site-header,
    .site-footer,
    .header,
    .footer,
    .elementor-location-header,
    .elementor-location-footer,
    #masthead,
    #colophon,
    .wot-form-card,
    .wot-skeleton-card,
    .wot-res-topbar,
    .wot-compact-track-bar,
    .wot-grid-cols,
    .wot-compact-footer,
    .wot-demo-notice,
    .wot-btn-copy,
    .wot-btn-track-external {
        display: none !important;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        direction: rtl !important;
        text-align: right !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        font-family: inherit, 'IRANSans', 'Vazir', 'Tahoma', system-ui, -apple-system, sans-serif !important;
        font-size: 13px !important;
    }

    /* ریست کانتینرهای والد و حذف کانتینمنت جهت انطباق کامل با لبه‌های کاغذ */
    .wot-container,
    .wot-results-container,
    .wot-result-wrapper {
        contain: none !important;
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    /* نمایش اختصاصی برگه فاکتور بدون حاشیه و فاصله اضافه */
    .wot-print-invoice-sheet {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .wot-pi-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding-bottom: 12px !important;
        border-bottom: 2px solid #0f172a !important;
        margin-bottom: 14px !important;
    }

    .wot-pi-store-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .wot-pi-store-name {
        font-size: 20px !important;
        font-weight: 900 !important;
        color: #0f172a !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .wot-pi-subtitle {
        font-size: 13px !important;
        color: #64748b !important;
        font-weight: 600 !important;
    }

    .wot-pi-store-url {
        font-size: 12px !important;
        color: #94a3b8 !important;
    }

    .wot-pi-order-meta {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 5px !important;
    }

    .wot-pi-meta-row {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 13px !important;
    }

    .wot-pi-meta-lbl {
        color: #64748b !important;
        font-weight: 600 !important;
    }

    .wot-pi-meta-val {
        color: #0f172a !important;
        font-weight: 800 !important;
    }

    .wot-pi-status-badge {
        display: inline-block !important;
        padding: 3px 10px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        border: 1.5px solid currentColor !important;
        background: rgba(0, 0, 0, 0.02) !important;
    }

    .wot-pi-tracking-box {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 9px 14px !important;
        border: 1.5px dashed #94a3b8 !important;
        background: #f8fafc !important;
        border-radius: 6px !important;
        margin-bottom: 14px !important;
        font-size: 12.5px !important;
    }

    .wot-pi-track-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .wot-pi-track-label {
        color: #475569 !important;
        font-weight: 600 !important;
    }

    .wot-pi-track-num {
        font-family: monospace, sans-serif !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
    }

    .wot-pi-track-hint {
        color: #64748b !important;
        font-size: 11.5px !important;
    }

    .wot-pi-section {
        margin-bottom: 14px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .wot-pi-sec-title {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin: 0 0 8px 0 !important;
        padding-bottom: 4px !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
    }

    .wot-pi-info-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 14px !important;
        padding: 10px 14px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        background: #fafafa !important;
        font-size: 12.5px !important;
    }

    .wot-pi-grid-cell {
        display: flex !important;
        gap: 8px !important;
    }

    .wot-pi-cell-full {
        grid-column: span 2 !important;
        padding-top: 6px !important;
        border-top: 1px dashed #e2e8f0 !important;
    }

    .wot-pi-cell-label {
        color: #64748b !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .wot-pi-cell-val {
        color: #0f172a !important;
        font-weight: 700 !important;
    }

    .wot-pi-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 12.5px !important;
        margin-bottom: 14px !important;
        page-break-inside: auto !important;
    }

    .wot-pi-table tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .wot-pi-table th {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 800 !important;
        padding: 8px 10px !important;
        border: 1px solid #cbd5e1 !important;
        text-align: right !important;
    }

    .wot-pi-table td {
        padding: 8px 10px !important;
        border: 1px solid #cbd5e1 !important;
        vertical-align: middle !important;
    }

    .wot-pi-table .col-num {
        width: 6% !important;
        text-align: center !important;
    }

    .wot-pi-table .col-thumb {
        width: 48px !important;
        text-align: center !important;
    }

    .wot-pi-table .col-thumb img {
        width: 38px !important;
        height: 38px !important;
        border-radius: 4px !important;
        object-fit: cover !important;
        border: 1px solid #e2e8f0 !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .wot-pi-no-thumb {
        color: #94a3b8 !important;
        font-size: 14px !important;
    }

    .wot-pi-table .col-desc {
        width: auto !important;
    }

    .wot-pi-table .col-qty {
        width: 12% !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .wot-pi-table .col-price {
        width: 20% !important;
        text-align: left !important;
        white-space: nowrap !important;
        font-weight: 800 !important;
    }

    .wot-pi-item-name {
        font-weight: 800 !important;
        color: #0f172a !important;
        margin-bottom: 3px !important;
        line-height: 1.4 !important;
    }

    .wot-pi-item-metas {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .wot-pi-meta-badge {
        font-size: 11px !important;
        color: #475569 !important;
        background: #f1f5f9 !important;
        padding: 1px 6px !important;
        border-radius: 3px !important;
        border: 1px solid #e2e8f0 !important;
    }

    .wot-pi-summary-container {
        display: flex !important;
        justify-content: flex-end !important;
        margin-bottom: 14px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .wot-pi-summary-box {
        width: 320px !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 6px !important;
        padding: 10px 14px !important;
        background: #fafafa !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        font-size: 12.5px !important;
    }

    .wot-pi-sum-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        color: #475569 !important;
    }

    .wot-pi-sum-row strong,
    .wot-pi-sum-row span:last-child {
        color: #0f172a !important;
        font-weight: 700 !important;
    }

    .wot-pi-sum-grand {
        border-top: 1.5px solid #0f172a !important;
        padding-top: 8px !important;
        margin-top: 4px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        color: #0f172a !important;
    }

    .wot-pi-sum-grand .wot-pi-grand-val {
        font-size: 15px !important;
        color: #4f46e5 !important;
    }

    .wot-pi-notes-sec {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        padding: 10px 14px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .wot-pi-note-item {
        font-size: 12px !important;
        color: #334155 !important;
        line-height: 1.6 !important;
        margin-bottom: 6px !important;
    }

    .wot-pi-note-item:last-child {
        margin-bottom: 0 !important;
    }

    .wot-pi-note-author {
        font-weight: 700 !important;
        color: #4f46e5 !important;
    }

    .wot-pi-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px dashed #cbd5e1 !important;
        padding-top: 10px !important;
        margin-top: 14px !important;
        font-size: 11.5px !important;
        color: #64748b !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    @media print and (max-width: 600px) {
        .wot-pi-info-grid {
            grid-template-columns: 1fr !important;
        }
        .wot-pi-cell-full {
            grid-column: span 1 !important;
        }
        .wot-pi-summary-box {
            width: 100% !important;
        }
    }
}
