/* r746 — seller panel fixes from the 2026-11-14 UI/UX review (seller-fix.js).
 * Loaded after seller-dash.css, seller-better.css and bd-skeleton.css. */

/* ── 5. the bell is back: the only place a seller can re-read a missed
   announcement or ticket notice (r724 had hidden it). Its toast-style box
   (seller-better.css round 34) is kept. ── */
html body.bx.bx-seller #annWrap { display: block !important; }

/* ── desktop: the sticky column never ends below the content. The 80px
   under the content was padding INSIDE the shared row, so the column could
   slide into it at the end of a long tab. It now sits under the row. ── */
@media (min-width: 1180px) {
    body.has-sd .sd-layout { padding-bottom: 40px; }
    body.has-sd .sd-layout > .content-area { padding-bottom: 0; }
    /* the footer kept 112px at its bottom for the floating PC dock, which the
       column replaces from 1180px; same 30px as its top now */
    body.has-sd #footer { padding-bottom: 30px; }
}

/* ── accessibility ── */
/* screen-reader-only text (the page heading on desktop, where the hero is hidden) */
.bx-sr {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.bx-h1 { display: none; }
@media (min-width: 1180px) { body.has-sd .bx-h1 { display: block; } }

/* contrast: white on red needs #dc2626 (4.8:1); grey labels on grey need #4b5563 */
.sd-item .sd-badge, .tab-badge, .bnav .tab .badge { background: #dc2626 !important; }
.ticket-status-pill.tst-closed { color: #4b5563 !important; }
.pc-link.pc-link-bot { color: #4b5563 !important; }
#storeMsg[style*="red-primary"] { color: #b91c1c !important; }

/* tiny count badge on the tickets sub-tabs (was 9.9px) */
.tab-badge { font-size: 11px !important; min-width: 18px; line-height: 18px !important; }

/* tap targets: at least 44px tall */
.wtx-tab, #tab-wallet .btn-3, #tab-wallet .btn-2 { min-height: 44px; }
#storeView, #pwForgotLink a { display: inline-flex; align-items: center; min-height: 44px; }

/* links that act as buttons get a visible keyboard focus ring */
a[data-action]:focus-visible, .sd-stat:focus-visible { outline: 2px solid var(--gold-deep, #b45309); outline-offset: 2px; }

/* r747 — compact desktop content (owner): every tab fits a 1440x900 screen without
   scrolling. Tighter cards/fields/list rows; settings, referral and wallet in two
   columns; the new-product details beside its files; product buttons 3 per row.
   Desktop with the column (>=1180px) only. */
@media (min-width: 1180px) {
    /* ── tighter cards and fields everywhere ── */
    body.has-sd .sd-layout .tab-content .form-card { padding: 22px 24px; }
    body.has-sd .sd-layout .tab-content .form-card-title { margin-bottom: 12px; }
    body.has-sd .sd-layout .tab-content .fg { margin-bottom: 12px; }
    body.has-sd .sd-layout .tab-content .fl { margin-bottom: 5px; }
    body.has-sd .sd-layout .tab-content .fi { padding-top: 10px; padding-bottom: 10px; }
    body.has-sd .sd-layout .tab-content textarea.fi { min-height: 76px; }
    body.has-sd .sd-layout .tab-content .submit-btn { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }

    /* ── lists: rows 79px -> ~56px ── */
    body.has-sd #recentOrders .history-item { padding-top: 6px !important; padding-bottom: 6px !important; }
    body.has-sd #wtxPane .wtx-row { padding: 6px 0 !important; }
    body.has-sd .sd-layout .pagination { margin-top: 10px; }

    /* ── settings: store card on one side, password + the rest on the other ── */
    body.has-sd #tab-settings.active { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    body.has-sd #tab-settings.active > .form-card { margin: 0 !important; }
    body.has-sd #tab-settings.active > #storeCard { grid-column: 1; grid-row: 1 / span 3; }
    body.has-sd #tab-settings.active > .form-card:not(#storeCard) { grid-column: 2; }
    body.has-sd #tab-settings.active > .form-card:last-child { flex: none; }

    /* ── referral: the code card on one side, redeem + invitees on the other ── */
    body.has-sd #tab-referral.active { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    body.has-sd #tab-referral.active > .form-card { margin: 0 !important; }
    body.has-sd #tab-referral.active > .form-card:first-child { grid-column: 1; grid-row: 1 / span 2; }
    body.has-sd #tab-referral.active > .form-card:not(:first-child) { grid-column: 2; }

    /* ── wallet: balance + withdraw on one side, the history on the other ── */
    body.has-sd #walletSection { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    body.has-sd #walletSection > * { margin: 0 !important; }
    body.has-sd #walletSection > .wallet-card { grid-column: 1; grid-row: 1; }
    body.has-sd #walletSection > .wallet-form { grid-column: 1; grid-row: 2; }
    body.has-sd #walletSection > .wtx-tabs { grid-column: 2; grid-row: 1; align-self: start; }
    body.has-sd #walletSection > #wtxPane { grid-column: 2; grid-row: 1 / span 2; margin-top: 60px !important; }

    /* ── new product: the product's details beside its files ── */
    body.has-sd #tab-create .form-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-content: start; }
    body.has-sd #tab-create .form-card > * { grid-column: 1 / -1; }
    body.has-sd #tab-create .form-card > #cpInfoSec { grid-column: 1; margin: 0; }
    body.has-sd #tab-create .form-card > #cpInfoSec + .fsec { grid-column: 2; margin: 0; }

    /* ── settings, store card: short fields side by side (name | suggestion,
       address full width, bio | picture) ── */
    body.has-sd #storeCard { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-content: start;
        grid-template-areas: "t t" "p p" "f1 f5" "f2 f2" "f3 f4" "s s" "m m" "x x"; }
    body.has-sd #storeCard > .form-card-title { grid-area: t; }
    body.has-sd #storeCard > p { grid-area: p; margin-bottom: 10px; }
    body.has-sd #storeCard > .fg:nth-child(3) { grid-area: f1; }
    body.has-sd #storeCard > .fg:nth-child(4) { grid-area: f2; }
    body.has-sd #storeCard > .fg:nth-child(5) { grid-area: f3; }
    body.has-sd #storeCard > .fg:nth-child(6) { grid-area: f4; }
    body.has-sd #storeCard > .fg:nth-child(7) { grid-area: f5; }
    body.has-sd #storeCard > #storeSave { grid-area: s; }
    body.has-sd #storeCard > #storeMsg { grid-area: m; }
    body.has-sd #storeCard > div:last-child { grid-area: x; }

    /* ── orders: the tab title is already in the column ── */
    body.has-sd #tab-orders .form-card > .form-card-title { display: none; }
    body.has-sd #recentOrders .history-item { padding-top: 4px !important; padding-bottom: 4px !important; }
    body.has-sd #wtxPane .wtx-row { padding: 4px 0 !important; }
    body.has-sd #walletSection > #wtxPane { margin-top: 56px !important; }   /* under the 44px wallet sub-tabs (r746) */

    /* ── products: the six buttons in two rows of three ── */
    body.has-sd.bx #productsList .product-card .pc-links { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    body.has-sd #productsList .product-grid { row-gap: 14px; }
    body.has-sd #productsTools { margin-bottom: 12px; }
}

/* r748 — پیامک, tickets and settings fit the screen too; page numbers sit at the
   same place, the bottom of their box, on every page (owner). >=1180px only. */
.bx-smstabs { display: none; }
@media (min-width: 1180px) {
    /* settings: the store card's help lines were 2-3 lines tall in its half column */
    body.has-sd #storeCard > p, body.has-sd #storeCard .fi-hint { font-size: 12px; line-height: 1.6; }
    body.has-sd #storeCard .fi-hint { margin-top: 4px; }

    /* پیامک: «ارسال پیامک | پیامک‌های قبلی» switch (seller-fix.js) */
    body.has-sd #smsSection .bx-smstabs { display: flex; margin: 0 0 14px; }
    body.has-sd #smsSection[data-bxview="send"] > #smsHistory { display: none; }
    body.has-sd #smsSection[data-bxview="hist"] > .form-card:not(.bx-keep) { display: none; }
    body.has-sd #smsSection #smsHistory > .form-card { margin-top: 0; }
    /* the form in three columns: products | message + rules | preview */
    body.has-sd #smsSection .sms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px; align-items: start; }
    body.has-sd #smsSection .sms-grid > div:first-child { display: contents; }
    body.has-sd #smsSection .sms-grid > div:first-child > .fg:first-child { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
    body.has-sd #smsSection .sms-grid > div:first-child > .fg:nth-child(2) { grid-column: 2; grid-row: 1; margin: 0; }
    body.has-sd #smsSection .sms-grid > div:first-child > .sms-rules { grid-column: 2; grid-row: 2; margin: 0; font-size: 12px; line-height: 1.7; }
    body.has-sd #smsSection .sms-grid > div:last-child { grid-column: 3; grid-row: 1 / span 2; }
    body.has-sd #smsSection .sms-notes { min-height: 0 !important; }
    body.has-sd #smsSection .sms-topup:not(.bx-open) > :not(.fl) { display: none; }
    body.has-sd #smsSection .sms-topup .bx-tuhead { cursor: pointer; display: flex !important; align-items: center; justify-content: space-between; min-height: 32px; }
    body.has-sd #smsSection .sms-topup .bx-tuhead::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-inline-end: 4px; transition: transform .2s; }
    body.has-sd #smsSection .sms-topup.bx-open .bx-tuhead::after { transform: rotate(-135deg); }
    body.has-sd #smsSection > .form-card > p { font-size: 13px; line-height: 1.7; margin-bottom: 10px !important; }
    body.has-sd #smsSection .sms-hist { padding-top: 8px; padding-bottom: 8px; margin-bottom: 6px; }
    body.has-sd #smsSection .sms-hist .t { margin: 4px 0; line-height: 1.7; }
    body.has-sd #smsSection > .form-card { padding-top: 18px; padding-bottom: 18px; }
    body.has-sd #smsSection .sms-grid > div:last-child > .fl { margin-bottom: 4px !important; }
    body.has-sd #smsSection .sms-grid > div:last-child > .submit-btn { margin-top: 10px !important; }

    /* tickets: tighter rows (8 per page, seller-fix.js) */
    body.has-sd #ticketsList .ticket-row { padding-top: 8px; padding-bottom: 8px; margin-bottom: 6px; }
    body.has-sd #ticketsList .ticket-row.bx-off { display: none; }

    /* page numbers at the bottom of their box, the same place on every page */
    body.has-sd #tab-products.active > #productsList { flex: 1 0 auto; display: flex; flex-direction: column; }
    body.has-sd #tab-orders.active > .form-card,
    body.has-sd #tab-tickets.active > .form-card { display: flex; flex-direction: column; }
    body.has-sd #tab-orders.active #recentOrders,
    body.has-sd #tab-tickets.active #ticketsList { flex: 1 0 auto; display: flex; flex-direction: column; }
    body.has-sd #tab-wallet.active > #walletSection { flex: 1 0 auto; align-items: stretch; }
    body.has-sd #walletSection > .wallet-card, body.has-sd #walletSection > .wallet-form, body.has-sd #walletSection > .wtx-tabs { align-self: start; }
    body.has-sd #walletSection > #wtxPane { display: flex; flex-direction: column; }
    body.has-sd #smsSection #smsHistory .form-card { display: flex; flex-direction: column; min-height: calc(var(--sd-h, 0px) - 58px); }
    body.has-sd #productsList > .pagination, body.has-sd #recentOrders > .pagination,
    body.has-sd #wtxPane > .pagination, body.has-sd #ticketsList > .pagination,
    body.has-sd #smsHistory .form-card > .pagination { margin-top: auto !important; padding-top: 12px; }
}

/* r749 — no empty band under the footer when the window is taller than the
   page (owner): the body is already a full-height flex column, the footer now
   takes the spare room (a large grow so it wins over .content-area's grow 1
   on the narrower layouts). */
body.bx #footer { flex-grow: 1000; }

/* r750 — switching tabs must not move anything (owner). Desktop (>=1180px):
   - the tab fades in place: the panel's fadeIn also slid it 8px up each time;
   - the scrollbar's room is always kept, so it never pushes the page sideways;
   - wallet and پیامک trimmed so every tab is exactly the column's height. */
@keyframes bxTabFade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1180px) {
    html { scrollbar-gutter: stable; }
    body.has-sd .sd-layout .tab-content { animation-name: bxTabFade; animation-duration: .2s; }
    body.has-sd #wtxPane .wtx-row { padding: 3px 0 !important; }
    body.has-sd #wtxPane > .pagination { padding-top: 6px; }
    body.has-sd #smsSection .sms-prod { padding-top: 6px; padding-bottom: 6px; min-height: 0; }
    body.has-sd #smsSection .sms-phone { padding-top: 12px; padding-bottom: 12px; }
    body.has-sd #smsSection .sms-meta > div { padding-top: 5px; padding-bottom: 5px; }
    body.has-sd #smsSection #smsHistory .form-card { min-height: calc(var(--sd-h, 0px) - 70px); }   /* switch 56px + 14px gap */
}

/* r752 — store picture pop-up (seller-fix.js picDialog), all widths */
.bx-picbtn { min-height: 44px; }
.bx-dlg {
    width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); padding: 0; box-sizing: border-box;
    border: 1px solid var(--gray-100, #f3f4f6); border-radius: var(--r-card, 24px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .22); background: var(--white, #fff); color: var(--dark-primary, #1f2937);
    font-family: inherit; overflow: auto;
    position: fixed; inset: 0; margin: auto !important; height: fit-content;   /* the site's reset zeroes dialog margins */
}
.bx-dlg::backdrop { background: rgba(15, 23, 42, .45); }
.bx-dlg[open] { display: flex; flex-direction: column; animation: bxDlgIn .2s ease-out; }
@keyframes bxDlgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.bx-dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.bx-dlg-head b { font-size: var(--fs-lead, 17px); font-weight: 800; }
.bx-dlg-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--dark-secondary, #4b5563); }
.bx-dlg-x:hover { background: var(--gray-50, #f9fafb); }
.bx-dlg-body { padding: 4px 20px 12px; display: flex; flex-direction: column; gap: 10px; }
.bx-dlg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bx-dlg-row .btn-3, .bx-dlg-row label { min-height: 44px; display: inline-flex; align-items: center; }
.bx-dlg #storeAvatars { gap: 8px !important; }
.bx-dlg #storeAvatars > * { min-width: 44px; min-height: 44px; }
.bx-dlg-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px 18px; border-top: 1px solid var(--gray-100, #f3f4f6); }
.bx-dlg-foot span { flex: 1; font-size: 12.5px; line-height: 1.7; color: var(--dark-secondary, #4b5563); }
.bx-dlg-foot .submit-btn { width: auto; min-height: 44px; padding: 0 22px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .bx-dlg[open] { animation: none; } }

/* r752 — the footer stays compact (r749's growing footer left an empty dark band
   under its text on a tall window). On desktop the spare room goes to the content
   row instead: the open tab grows down to the footer, its last card stretching
   with it, while the column keeps its own height. */
body.bx #footer { flex-grow: 0; }
@media (min-width: 1180px) {
    body.has-sd .sd-layout { flex: 1 0 auto; align-items: stretch; }
    body.has-sd .sd-layout > .sd { align-self: start; }
    body.has-sd .sd-layout > .content-area { display: flex; flex-direction: column; }
    body.has-sd .sd-layout > .content-area > .tab-content.active { flex: 1 0 auto; }
    /* پیامک: the visible part (form or history) fills the tab */
    body.has-sd #tab-sms.active > #smsSection { flex: 1 0 auto; display: flex; flex-direction: column; }
    body.has-sd #smsSection[data-bxview="send"] > .form-card { flex: 1 0 auto; }
    body.has-sd #smsSection[data-bxview="hist"] > #smsHistory { flex: 1 0 auto; display: flex; flex-direction: column; }
    body.has-sd #smsSection[data-bxview="hist"] > #smsHistory > .form-card { flex: 1 0 auto; min-height: 0; }
    body.has-sd #smsSection:not([data-bxview]) > .form-card:last-child { flex: 1 0 auto; }
}
@media (min-width: 1180px) {
    /* two-column tabs: the lower card of each column stretches down too */
    body.has-sd #tab-settings.active { grid-template-rows: auto 1fr; align-items: stretch; align-content: stretch; }
    body.has-sd #tab-settings.active > #storeCard { grid-row: 1 / span 2; }
    body.has-sd #tab-settings.active > .form-card:not(#storeCard) { grid-row: auto; }
    body.has-sd #tab-referral.active { grid-template-rows: auto 1fr; align-items: stretch; align-content: stretch; }
    body.has-sd #walletSection { grid-template-rows: auto 1fr; align-content: stretch; }
    body.has-sd #walletSection > .wallet-form { align-self: stretch; }
}

/* r755 — the open tab is exactly the column's height again, also on a tall
   window (owner: no empty white inside the cards). r752 let the tab grow down
   to the footer; now only the content row grows, so the spare room of a tall
   window sits between the content and the footer, which stays compact at the
   bottom of the window. */
@media (min-width: 1180px) {
    body.has-sd .sd-layout > .content-area > .tab-content.active { flex: 0 0 auto; }
}
@media (min-width: 1180px) {
    /* the kept copy shown while a list reloads (bd-skeleton .bsk-prev) places its
       page numbers like the real list, so nothing moves by a pixel */
    body.has-sd #productsList > .bsk-prev > .pagination, body.has-sd #recentOrders > .bsk-prev > .pagination,
    body.has-sd #ticketsList > .bsk-prev > .pagination, body.has-sd #smsHistory .form-card > .bsk-prev > .pagination { margin-top: auto !important; padding-top: 12px; }
    body.has-sd #wtxPane > .bsk-prev > .pagination { margin-top: auto !important; padding-top: 6px; }
}

/* r756 — products: with two rows of cards the rows stretch to fill the tab, so
   the cards end just above the page numbers instead of leaving ~120px empty
   (owner picked "taller cards"). The buttons stay at the card's bottom
   (.pc-links margin-top:auto). One row (3 cards or fewer) keeps its own height. */
@media (min-width: 1180px) {
    body.has-sd #productsList > .product-grid:has(> :nth-child(4)) { flex: 1 0 auto; grid-auto-rows: 1fr; align-content: stretch; }
    body.has-sd #productsList > .product-grid:has(> :nth-child(4)) > * { height: auto; }
}


/* ── r757: product card B1 — page 1 beside the text, status icon on the page, four colour-coded buttons ── */
#productsList .product-card.pcb { display: flex; flex-direction: column; gap: 12px; padding: 14px !important; position: relative; min-width: 0; }
.pcb-corner { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 6px; z-index: 3; }
.pcb-corner button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.pcb-corner .icu { width: 18px; height: 18px; }
.pcb-del { background: var(--red-light); color: #991b1b; }
.pcb-del:hover { background: #fecaca; }
.pcb-lock { background: var(--dark-primary); color: var(--white); --ic-acc: var(--white); }
.pcb-lock:hover { background: var(--dark-secondary); }
#productsList .product-card.pcb:has(.bx-cover.fail.folded) .pcb-corner { inset-inline-end: 56px; }   /* the folded error tab owns the very corner */
.pcb-row { display: flex; gap: 14px; align-items: stretch; flex: 1 1 auto; min-width: 0; }
/* the page grows with the card: at least an A4 page 100px wide; when the panel stretches the cards to fill the tab it is
   as tall as the row, showing more of the page instead of leaving room under it */
.pcb-th { position: relative; flex: none; width: 100px; min-height: 141px; align-self: stretch; border-radius: 6px; overflow: hidden;
  background: linear-gradient(var(--gray-100), var(--gray-100)) top / 100% 26% no-repeat,
              repeating-linear-gradient(to bottom, transparent 0 9px, var(--gray-200) 9px 12px) 50% 72% / 70% 46% no-repeat, var(--white);
  box-shadow: 0 6px 16px rgba(31, 41, 55, .14), 0 0 0 1px rgba(31, 41, 55, .06); }
.pcb-th img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pcb-st { position: absolute; bottom: 5px; inset-inline-start: 5px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(31, 41, 55, .25), 0 0 0 2px var(--white); }
.pcb-st .icu { width: 15px; height: 15px; --ic-acc: currentColor; }
.pcb-st.ok { background: var(--green-primary); color: var(--white); }
.pcb-st.wait { background: var(--blue-primary); color: var(--white); }
.pcb-st.bad { background: var(--red-strong); color: var(--white); }
.pcb-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.pcb-name { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.65; color: var(--dark-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline-end: 84px; }
.pcb-price { font-size: 16px; font-weight: 800; color: var(--dark-primary); white-space: nowrap; }
.pcb-price small, .pcb-figs b small { font-size: 12px; font-weight: 600; color: var(--dark-muted); }
.pcb-free { color: var(--green-dark); }
.pcb-figs { display: grid; gap: 2px; }
.pcb-figs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--gray-200); }
.pcb-figs > div:last-child { border-bottom: 0; }
.pcb-figs span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dark-muted); }
.pcb-figs span .icu { width: 17px; height: 17px; }
.pcb-figs b { font-size: 13.5px; font-weight: 800; color: var(--dark-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
body #productsList .product-card.pcb .pc-links.pcb-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px;
  margin: auto 0 0 !important; padding-top: 12px; border-top: 1px dashed var(--gray-200); }
#productsList .product-card.pcb .pcb-acts .pc-link { flex-direction: column; min-height: 56px; gap: 4px; padding: 4px; font-size: 12px; border-radius: 14px; }
#productsList .product-card.pcb .pcb-acts .pc-link .icu { width: 20px; height: 20px; }

/* r758: the status icon and the lock keep their own colours (no re-inking, so no flicker); phone: delete and lock are squares */
.pcb-st .icu { color: var(--white) !important; transition: none !important; }
.pcb-lock .icu { color: var(--white) !important; transition: none !important; }
#productsList .product-card.pcb .pcb-corner button { min-height: 0; min-width: 0; aspect-ratio: 1; }
@media (max-width: 640px) { #productsList .product-card.pcb .pcb-corner button { width: 40px; height: 40px; } .pcb-name { padding-inline-end: 96px; } }

/* r759: phone - the room the floating bar needs is the footer's own bottom padding, not an empty strip under the footer */
@media (max-width: 640px) and (min-height: 421px) {
    body.has-bnav:has(> #footer)::after { display: none; }
    body.has-bnav > #footer { padding-bottom: calc(30px + var(--bnav-h) + 12px) !important; }
}

/* ── r760: the bell's box, version C — a white card like the product cards, rows like the sidebar menu ── */
body.bx #annDropdown {
    background: var(--white) !important; border: 1px solid var(--gray-100) !important; border-radius: 24px !important;
    box-shadow: 0 22px 50px rgba(31, 41, 55, .16), 0 2px 8px rgba(31, 41, 55, .06) !important; filter: none !important;
    overflow: hidden !important; padding: 0 !important; width: 380px; max-height: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.bx #annDropdown .ann-dropdown-head { width: auto; max-width: none; margin: 0; background: none; border-radius: 0; display: flex; align-items: center;
    gap: 10px; padding: 14px 16px 12px 14px; border-bottom: 1px solid var(--gray-100) !important; }
body.bx #annDropdown .ann-dropdown-head::before, body.bx #annDropdown .ann-dropdown-head::after { display: none; }
body.bx #annDropdown .ann-dropdown-title { flex: 1; gap: 10px; font-size: 16px !important; font-weight: 800; color: var(--dark-primary) !important; }
body.bx #annDropdown .ann-dropdown-title::before { width: 36px; height: 36px; border-radius: 12px; box-shadow: none; background: var(--gold-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / 19px no-repeat; }
body.bx #annDropdown .ntf-count { background: var(--gold-primary) !important; color: var(--dark-primary) !important; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 99px; }
body.bx #annDropdown .ann-dropdown-close { width: 36px; height: 36px; min-height: 0; margin: 0; border-radius: 12px; background: var(--gray-100); color: var(--dark-secondary); display: grid; place-items: center; }
body.bx #annDropdown .ann-dropdown-close:hover { background: var(--gray-200); }
body.bx #annDropdown .ann-dropdown-close svg { width: 15px; height: 15px; }
body.bx #annDropdown .ann-dropdown-body { background: none; border-radius: 0; padding: 0; max-height: min(60vh, 460px); }
body.bx #annDropdown .ntf-row { background: var(--white); border-radius: 0; margin: 0; padding: 14px 16px !important; gap: 12px; align-items: center; cursor: pointer; }
body.bx #annDropdown .ntf-row + .ntf-row { margin: 0; border-top: 1px solid var(--gray-100); }
body.bx #annDropdown .ntf-row:not(.is-read) { background: var(--gold-bg); }
body.bx #annDropdown .ntf-row:not(.is-read):hover { background: var(--gold-lighter); }
body.bx #annDropdown .ntf-row.is-read:hover { background: var(--gray-50); }
body.bx #annDropdown .ntf-icon { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--white) !important; box-shadow: 0 0 0 1px var(--gray-200); opacity: 1; }
body.bx #annDropdown .ntf-icon .icu { width: 19px; height: 19px; color: #5b21b6; }
body.bx #annDropdown .ntf-row[data-action="goToBuyerTicketsFromNtf"] .ntf-icon .icu { color: #1d4ed8; }
body.bx #annDropdown .ntf-row.lvl-info .ntf-icon .icu { color: var(--gold-deep); }
body.bx #annDropdown .ntf-row.lvl-success .ntf-icon .icu { color: var(--green-dark); }
body.bx #annDropdown .ntf-row.lvl-warning .ntf-icon .icu { color: var(--red-dark); }
body.bx #annDropdown .ntf-text { color: var(--dark-primary); font-size: 14px; font-weight: 700; line-height: 1.7; }
body.bx #annDropdown .ntf-row.is-read .ntf-text { color: var(--dark-muted); font-weight: 600; }
body.bx #annDropdown .ntf-meta { color: var(--dark-muted); font-size: 12.5px; }
body.bx #annDropdown .ntf-action { color: var(--gold-deep); font-weight: 700; }
body.bx #annDropdown .ntf-unread-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--gold-primary); box-shadow: 0 0 0 3px var(--white); }
body.bx #annDropdown .ann-dropdown-empty { color: var(--dark-muted); opacity: 1; padding: 26px 16px; text-align: center; }
body.bx #annDropdown .bdp-row { border-top: 1px solid var(--gray-100); padding: 12px 16px; background: var(--white); }
@media (max-width: 640px) {
    body.bx #annDropdown { width: auto !important; max-height: none !important; overflow: hidden !important; background: var(--white) !important;
        border: 1px solid var(--gray-100) !important; box-shadow: 0 0 0 100vmax rgba(15, 23, 41, .22), 0 22px 50px rgba(31, 41, 55, .2) !important; }
    body.bx #annDropdown:not(.open) { box-shadow: none !important; }
}

/* r761: no status tick; the page keeps its A4 shape at the card's height; room for the lock only on private products */
#productsList .product-card.pcb .pcb-th { width: auto; aspect-ratio: 210 / 297; }
#productsList .product-card.pcb .pcb-name { padding-inline-end: 44px; }
#productsList .product-card.pcb:has(.pcb-lock) .pcb-name { padding-inline-end: 84px; }
@media (max-width: 640px) {
    #productsList .product-card.pcb .pcb-name { padding-inline-end: 52px; }
    #productsList .product-card.pcb:has(.pcb-lock) .pcb-name { padding-inline-end: 96px; }
}

/* r764: the button's own «لینک کپی شد» (bd-motion .bdm-ok) stacks like the label so it fits the narrow card buttons */
#productsList .product-card.pcb .pcb-acts .pc-link { position: relative; }
#productsList .product-card.pcb .pcb-acts .pc-link > .bdm-ok { flex-direction: column; gap: 3px; padding: 4px 3px; white-space: nowrap;
    text-align: center; font-size: 11px; line-height: 1.35; overflow: hidden; }
#productsList .product-card.pcb .pcb-acts .pc-link > .bdm-ok svg { width: 20px; height: 20px; }
#productsList .product-card.pcb .pcb-acts .pc-link > .bdm-l { flex-direction: column; gap: 4px !important; }   /* the label stays stacked while it fades out */
