/* مقایسهٔ هدیه‌ها (b2b) — توکن‌های تم (طلایی) */
.bj-cmp-add {
    position: absolute; top: 8px; inset-inline-start: 8px; z-index: 20;
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.4;
    cursor: pointer; color: rgb(var(--c-primary-dark)); background: rgb(var(--c-white) / .92);
    border: 1px solid rgb(var(--c-primary)); border-radius: 999px;
}
.bj-cmp-add__box { width: 13px; height: 13px; border: 1.5px solid rgb(var(--c-primary-dark)); border-radius: 3px; display: inline-block; position: relative; }
.bj-cmp-add.is-added { background: rgb(var(--c-primary)); color: rgb(var(--c-primary-on)); }
.bj-cmp-add.is-added .bj-cmp-add__box { background: rgb(var(--c-primary-on)); border-color: rgb(var(--c-primary-on)); }
.bj-cmp-add.is-added .bj-cmp-add__box::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 7px; border: solid rgb(var(--c-primary)); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bj-cmp-add:focus-visible, .bj-cmp-tray__btn:focus-visible, .bj-cmp-tray__clear:focus-visible { outline: 2px solid rgb(var(--c-primary-dark)); outline-offset: 2px; }

/* نوار شناور: بالای نوار «درخواست قیمت» (پایین-شروع) تا هم‌پوشانی نداشته باشند */
.bj-cmp-tray { position: fixed; bottom: 68px; inset-inline-start: 16px; z-index: 45; direction: rtl; display: flex; align-items: center; gap: 6px; }
.bj-cmp-tray[hidden], .bj-cmp-panel[hidden] { display: none; }
.bj-cmp-tray__btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
    color: rgb(var(--c-primary-dark)); background: rgb(var(--c-white)); border: 2px solid rgb(var(--c-primary)); border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.bj-cmp-tray__count {
    min-width: 24px; height: 24px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: rgb(var(--c-primary)); color: rgb(var(--c-primary-on)); font-size: 13px;
}
.bj-cmp-tray__clear { width: 28px; height: 28px; font-size: 18px; line-height: 1; cursor: pointer; border: 0; border-radius: 999px; background: rgb(var(--c-white)); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
@media (max-width: 767px) {
    .bj-cmp-tray { bottom: 128px; }
}

.bj-cmp-panel { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; direction: rtl; }
.bj-cmp-panel__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.bj-cmp-panel__box {
    position: relative; width: min(1040px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto;
    padding: 20px; background: rgb(var(--c-white)); border-radius: 16px; text-align: right;
}
.bj-cmp-panel__close { position: absolute; top: 8px; left: 12px; font-size: 28px; line-height: 1; background: none; border: 0; cursor: pointer; }
.bj-cmp-panel__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.bj-cmp-hint { margin: 0 0 12px; font-size: 13px; color: rgb(var(--c-outline-low) / .8); }
.bj-cmp-lock { overflow: hidden; }

.bj-cmp-scroll { overflow-x: auto; }
.bj-cmp-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.bj-cmp-table th, .bj-cmp-table td { padding: 10px 8px; vertical-align: top; border-bottom: 1px solid rgb(var(--c-outline-low) / .12); text-align: right; }
.bj-cmp-table th[scope="row"] { width: 110px; font-weight: 700; color: rgb(var(--c-outline-low) / .85); background: rgb(var(--c-white)); position: sticky; inset-inline-start: auto; right: 0; z-index: 1; }
.bj-cmp-prod { text-align: center !important; }
.bj-cmp-prod img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 6px; display: block; border-radius: 8px; background: rgb(var(--c-outline-low) / .04); }
.bj-cmp-prod__name { display: block; font-weight: 700; font-size: 13px; color: inherit; text-decoration: none; }
.bj-cmp-prod__rm { margin-top: 6px; font-size: 12px; cursor: pointer; color: rgb(var(--c-error)); background: none; border: 0; }
.bj-cmp-price { font-weight: 700; font-size: 14px; }
.bj-cmp-price del { display: block; font-weight: 400; font-size: 12px; opacity: .6; }
.bj-cmp-price small { font-weight: 400; font-size: 11px; display: block; opacity: .7; }
.bj-cmp-sale { display: inline-block; margin-inline-start: 4px; padding: 0 6px; border-radius: 999px; font-size: 11px; color: #fff; background: #D20220; }
.bj-cmp-oos { color: rgb(var(--c-error)); font-weight: 600; }
.bj-cmp-ins { color: rgb(var(--c-primary-dark)); font-weight: 600; }
.bj-cmp-bul { margin: 0; padding: 0; list-style: none; }
.bj-cmp-bul li { margin-bottom: 4px; }
.bj-cmp-bul li::before { content: "• "; }
.bj-cmp-row--same td { opacity: .55; }
.bj-cmp-row--diff td { background: rgb(var(--c-primary) / .12); }
.bj-cmp-dash { opacity: .4; }
.bj-cmp-cta { text-align: center !important; }
.bj-cmp-cta .bj-quote-add { margin-top: 0; }
.bj-cmp-link { display: block; margin-top: 8px; font-size: 12px; color: rgb(var(--c-primary-dark)); text-decoration: underline; }
.bj-cmp-state { padding: 24px; text-align: center; }
@media (max-width: 767px) {
    .bj-cmp-panel__box { padding: 14px 10px; }
    .bj-cmp-table th[scope="row"] { width: 74px; font-size: 12px; }
    .bj-cmp-prod img { width: 72px; height: 72px; }
}
