/* V101 WP-020 -- NAV-SHELL/1.2 + R3 clarifications, REGULAR shell only (html[data-pb101-shell="1"]: never Simple, the admin Manage
   shell or a focus / auth page). Only the MOBILE (<= 767, compositions "mobile" / "xs") and WIDE (>= 1200, composition "wide")
   presentations change; tablet 768-1199 keeps its existing contract (NAV-D02 not adopted).
   - Wide order stays physical. The phone bottom bar follows the reading direction:
       mobile top    Menu - Search - [Simple switch, owner 2026-11-17] - Messages - Cart
       mobile bottom Home - Globe - Plus - Notifications - Me   (from inline start, five equal columns)
       wide (64px)   Menu - Search - Messages - Home - Globe - [Simple switch] - Plus - Notifications - Me - Cart
   - The controls are the header's OWN elements (same ids, handlers, panels, counters): nothing is duplicated, nothing is granted.
   - WEB: the site navigation sits at inline START (Hebrew RIGHT / English LEFT), 224 expanded / 72 collapsed; Menu collapses / expands it (no second drawer).
   Colours only from the existing header / site tokens (Light / Dark / System). */

html[data-pb101-shell="1"] #pbHeader #pb101Home, html[data-pb101-shell="1"] .pb101-bottombar { display: none; }

/* ================================================================== WIDE >= 1200: one 64px row */
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-bar {
    display: flex; flex-direction: row; flex-wrap: nowrap; direction: ltr; align-items: center; justify-content: flex-start;
    gap: 4px; block-size: 64px; min-block-size: 64px; padding-block: 0; padding-inline: 12px; grid-template-areas: none; grid-template-columns: none;
}
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-l,
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-r,
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-c,
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-cell:not(.pb42-search) { display: contents; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-brand > * { display: none; }   /* the brand lives in the site navigation */
/* V141 C025-C027-T01: the wide Menu proxy (#pb101Menu, order 1) is removed -- the sidebar head carries #pbSbCollapse */
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-search { order: 2; flex: 1 1 auto; min-inline-size: 120px; display: flex; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-search .pb42-searchform { inline-size: 100%; max-inline-size: none; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb101-msg { order: 3; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] #pbHeaderBar #pb101Home { display: inline-flex; order: 4; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] #pbGlobeTrigger { order: 5; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] #pbModeSwitchSlot { order: 6; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-create > :not(style):not(script) { order: 7; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb101-bell { order: 8; margin-inline: 2px 6px; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-acct > :not(style):not(script) { order: 9; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb101-cart { order: 10; display: inline-flex; }
/* a guest keeps the Messages / Notifications positions (each the existing sign-in with its verified return) */
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb65m-guestcomms { display: contents; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb65m-guestcomms .pb42-commsitem { display: inline-flex; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] .pb42-ibtn { inline-size: 44px; block-size: 44px; min-inline-size: 44px; min-block-size: 44px; }
/* Me = the viewer's account control; the name never pushes the row out (the full name stays its accessible name) */
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] #pbAccountTrigger { max-inline-size: 180px; min-block-size: 44px; }
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] #pbAccountTrigger .pb42-acctname,
html[data-pb101-shell="1"] #pbHeader.pb42[data-pb42-layout="wide"] #pbAccountTrigger .pb46-acct__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-inline-size: 0; }

/* WEB: the site navigation at inline START (Hebrew RIGHT / English LEFT), 224 / 72 (the page column follows the same variable) */
@media (min-width: 1200px) {
    html[data-pb101-shell="1"] .pb-sb-root { --pb-sb-w: 224px; --pb-sb-rail: 72px; }
    /* V141 C025-C027-T01: the sidebar's own #pbSbCollapse is no longer hidden here (it is THE collapse control, at the top of the sidebar) */
}

/* ================================================================== MOBILE <= 767: one 64px top row + the bottom bar */
@media (max-width: 767.98px) {
    html[data-pb101-shell="1"] {
        --pb101-bottom-inline-start: env(safe-area-inset-left, 0px);
        --pb101-bottom-net-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        --pb101-bottom-cell: calc(var(--pb101-bottom-net-width) / 5);
    }
    html[data-pb101-shell="1"][dir="rtl"] { --pb101-bottom-inline-start: env(safe-area-inset-right, 0px); }
    html[data-pb101-shell="1"] body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-bar {
        display: flex; flex-direction: row; flex-wrap: nowrap; direction: ltr; align-items: center; justify-content: flex-start;
        gap: 4px; block-size: 64px; min-block-size: 64px; padding-block: 0; padding-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
        grid-template-areas: none;
    }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-l,
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-r,
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-c,
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-cell:not(.pb42-search) { display: contents; }
    /* top row */
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb-sb-menu { display: inline-flex; order: 1; inline-size: 44px; block-size: 44px; }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-brand .pb-sb-brand,
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-brand .pb-brand { display: none; }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-search { order: 2; flex: 1 1 auto; min-inline-size: 0; inline-size: auto; display: flex; margin: 0; padding: 0; }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb42-search .pb42-searchform { inline-size: 100%; min-block-size: 44px; }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) #pbModeSwitchSlot { order: 3; }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb101-msg { order: 4; display: inline-flex; }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb101-cart,
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb101-cart[data-pb77-empty="1"] { order: 5; display: inline-flex; }
    html[data-pb101-shell="1"] #pbHeader.pb42:is([data-pb42-layout="mobile"], [data-pb42-layout="xs"]) .pb65m-guestcomms { display: contents; }
    /* bottom bar: the surface + five equal logical columns (Home 1, Globe 2, Plus 3, Notifications 4, Me 5), 48px targets */
    html[data-pb101-shell="1"] .pb101-bottombar {
        display: block; position: fixed; z-index: 50; inset-inline: 0; bottom: 0; block-size: calc(64px + env(safe-area-inset-bottom, 0px));
        background: var(--pb44-surface, var(--pb-surface)); border-top: 1px solid var(--pb44-line, var(--pb-divider));
    }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar :is(
        #pb101Home, #pbGlobeTrigger, .pb42-create > :not(style):not(script), .pb101-bell, .pb42-acct > :not(style):not(script)) {
        --pb101-bottom-offset: calc(var(--pb101-bottom-inline-start) + var(--pb101-bottom-cell) * var(--pb101-bottom-slot) - 24px);
        position: fixed; z-index: 51; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); top: auto;
        left: var(--pb101-bottom-offset); right: auto; margin: 0;
        display: inline-flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; min-inline-size: 48px; min-block-size: 48px; order: 0;
    }
    html[data-pb101-shell="1"][dir="rtl"] #pbHeader.pb42 #pbHeaderBar :is(
        #pb101Home, #pbGlobeTrigger, .pb42-create > :not(style):not(script), .pb101-bell, .pb42-acct > :not(style):not(script)) {
        left: auto; right: var(--pb101-bottom-offset);
    }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar #pb101Home { --pb101-bottom-slot: 0.5; }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar #pbGlobeTrigger { --pb101-bottom-slot: 1.5; }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-create > :not(style):not(script) { --pb101-bottom-slot: 2.5; }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb101-bell { --pb101-bottom-slot: 3.5; }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-acct > :not(style):not(script) { --pb101-bottom-slot: 4.5; }
    /* the inner targets fill their 48px slot; Plus is a 40px surface inside its 48px target (NAV-SHELL 1.2 section 1) */
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb101-bell > .pb42-ibtn,
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-acct .pb42-menu > summary,
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-acct #pbAccountLogin,
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar #pbGlobeTrigger,
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar #pb101Home { inline-size: 48px; block-size: 48px; min-inline-size: 48px; min-block-size: 48px; padding: 0; }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-create .pb42-btn,
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-create summary { inline-size: 48px; block-size: 48px; min-inline-size: 48px; min-block-size: 48px; padding: 0; justify-content: center; }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-create .pb42-btn > span,
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-create summary > span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    /* panels opened from the bottom controls open UPWARD from the bar */
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar .pb42-acct .pb42-panel,
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar #pbCreateNonePanel {
        position: fixed; top: auto; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); left: 8px; right: 8px; inset-inline: 8px;
        max-block-size: calc(100dvh - 140px); overflow: auto; z-index: 52;
    }
    html[data-pb101-shell="1"] #pbHeader.pb42 #pbHeaderBar #pb101Home[aria-current="page"] { color: var(--pb44-accent-text, var(--pb-action-primary)); }
    /* V101 R2: bars that stick to the bottom of the page (the product buy bar, wizard / account action bars) stay above the bottom bar */
    html[data-pb101-shell="1"] :is(.pb48-actionbar[data-pb48-mode="sticky"], .pb-wiz-sticky, .pb-v32-ave-bar) { inset-block-end: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    html[data-pb101-shell="1"] .pb-sb-root .pb-sb-page { transition: none; }
}

/* V103 WP-020 (V102-UX-004 / UX-005): the phone bell panel of the REGULAR shell is a non-modal surface ABOVE the bottom bar
   envelope (geometry by Content/v67n/pb-v67n-notify.js, mode "bar"); the list scrolls inside the room left; the bar stays visible
   and clickable (the panel never covers it -- no hit layer over the bar). Scoped to html[data-pb101-shell="1"] (Simple untouched). */
html[data-pb101-shell="1"] body #pbNotifPanel.pb67n-panel[data-pb67n-mode="bar"] {
    border-radius: 16px; z-index: 49;
}
html[data-pb101-shell="1"] body #pbNotifPanel.pb67n-panel[data-pb67n-mode="bar"] .pb67n-body { max-block-size: none; }
