/* سفارش رفع خطا توسط متخصص آپسئو — از متغیرهای --upseo-* در reviewer.css استفاده می‌شود */

.fix-order-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--upseo-primary-dark, #3730a3);
    background: var(--upseo-primary-light, #eef2ff);
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    line-height: 1.8;
}
.fix-order-pick:hover { background: #e0e7ff; }
.fix-order-pick input[type="checkbox"] { margin: 0; width: 15px; height: 15px; accent-color: var(--upseo-primary, #4f46e5); cursor: pointer; }
.fix-order-pick:focus-within { outline: 2px solid var(--upseo-primary, #4f46e5); outline-offset: 2px; }
.fix-order-pick .fop-price { font-weight: 500; color: var(--upseo-text-muted, #64748b); }

/* کادر شناور: گوشه‌ی پایین-راست (پایین-چپ با ویجت چت تداخل دارد) */
.fix-order-box {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 340px;
    max-width: calc(100vw - 32px);
    z-index: 9990;
    background: var(--upseo-surface, #fff);
    color: var(--upseo-text, #1e293b);
    border: 1px solid var(--upseo-border, #e2e8f0);
    border-radius: var(--upseo-radius-lg, 16px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    font-size: 13px;
    direction: rtl;
    display: none;
    overflow: hidden;
}
.fob-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--upseo-primary, #4f46e5);
    color: #fff;
}
.fob-ico { display: inline-flex; }
.fob-title { font-weight: 700; flex: 1; }
.fob-count {
    min-width: 22px; height: 22px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--upseo-primary-dark, #3730a3);
    border-radius: 999px; font-size: 12px; font-weight: 700;
}
.fob-total-mini { display: none; font-weight: 700; font-size: 12px; }
.fix-order-box.is-collapsed .fob-total-mini { display: inline; }
.fix-order-box.is-collapsed .fob-body { display: none; }
.fob-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    background: rgba(255, 255, 255, .18); color: #fff;
    border: 0; border-radius: 8px; cursor: pointer;
}
.fob-toggle svg { transition: transform .2s; }
.fix-order-box.is-collapsed .fob-toggle svg { transform: rotate(180deg); }
.fob-toggle:hover { background: rgba(255, 255, 255, .3); }
.fob-toggle:focus-visible, .fob-remove:focus-visible, .fob-submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--upseo-primary, #4f46e5); }

.fob-list { list-style: none; margin: 0; padding: 6px 12px; max-height: 220px; overflow-y: auto; }
.fob-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--upseo-border, #e2e8f0); }
.fob-item:last-child { border-bottom: 0; }
.fob-name { flex: 1; line-height: 1.6; }
.fob-sub { color: var(--upseo-text-muted, #64748b); }
.fob-price { font-weight: 700; white-space: nowrap; }
.fob-remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; padding: 0;
    background: var(--upseo-danger-bg, #fef2f2); color: var(--upseo-danger, #dc2626);
    border: 0; border-radius: 6px; cursor: pointer;
}
.fob-remove:hover { background: #fee2e2; }

.fob-foot { padding: 10px 12px 12px; border-top: 1px solid var(--upseo-border, #e2e8f0); background: var(--upseo-neutral-bg, #f8fafc); }
.fob-sum { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 4px; }
.fob-sum strong { color: var(--upseo-primary-dark, #3730a3); font-size: 16px; }
.fob-site { color: var(--upseo-text-muted, #64748b); font-size: 11px; direction: ltr; text-align: right; }
.fob-hint { color: var(--upseo-text-muted, #64748b); font-size: 11px; margin: 4px 0 8px; line-height: 1.7; }
.fob-submit {
    width: 100%; padding: 9px 12px;
    background: var(--upseo-primary, #4f46e5); color: #fff;
    border: 0; border-radius: var(--upseo-radius-md, 10px);
    font-weight: 700; cursor: pointer;
}
.fob-submit:hover:not(:disabled) { background: var(--upseo-primary-dark, #3730a3); }
.fob-submit:disabled { opacity: .6; cursor: wait; }
.fob-msg { color: var(--upseo-danger, #dc2626); font-size: 12px; margin-top: 6px; min-height: 0; }

@media (max-width: 600px) {
    .fix-order-box {
        right: 0; left: 0; width: auto; max-width: none;
        border-radius: 14px 14px 0 0;
    }
    .fob-list { max-height: 160px; }
}
