/* 2026-09-25: the id matters. This block styles markup that only exists inside the AJAX-loaded
   mini-cart, so WP Rocket's Remove Unused CSS saw no .psab-* elements when it rendered the page and
   stripped .psab-bar / .psab-nav from the stored used-CSS - while KEEPING .psab-thumb
   (position:absolute; height:100%; width:30%; background:#171717). With no .psab-bar to give it a
   4px, position:relative, overflow:hidden parent, the thumb became a full-height ~130px BLACK BAR
   down the left of the side cart, over the close button (Alex's screenshot). The id is registered in
   rocket_rucss_inline_atts_exclusions (prideshop-rocket-throttle.php) so this block is never folded
   into used-CSS and can never be half-stripped again. */
/* The light grey band every recommendation on the site now sits on (.psrow-rec is the same
   #f4f4f4 / 12px). It replaces a raised white card with a shadow ring, which read as a third
   kind of object in a drawer that already has white cart lines on white. */
.psab{font-family:"Montserrat",sans-serif;max-width:440px;margin:1.25rem 0 0;padding:12px;background:#f4f4f4;border-radius:10px;box-shadow:none}
.psab-li{display:block;padding:0;margin:0;border:0}
/* Elementor's .elementor-menu-cart__products has overflow:hidden (it's the
   scroll area), so the card needs side margin >= its shadow spread or the
   shadow/ring gets clipped at the edges. */
.psab-li .psab{max-width:none;margin:0;box-shadow:none}
/* Subtotal row: label hard-left, amount hard-right (owner request). */
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__subtotal{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;text-align:left!important}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__subtotal>strong{margin-inline-end:auto}
/* Side-cart footer (owner request 2026-08-28): products → subtotal → buttons,
   subtotal pinned at the bottom of the panel with the buttons under it.
   .widget_shopping_cart_content is a flex column, so `order` + margin-top:auto
   on the subtotal push both to the bottom. */
.elementor-menu-cart__main .widget_shopping_cart_content>.elementor-menu-cart__products{order:1}
.elementor-menu-cart__main .widget_shopping_cart_content>.elementor-menu-cart__subtotal{order:2;margin-top:auto;padding-top:14px;padding-bottom:12px;border-width:1px 0 0 0!important}
.elementor-menu-cart__main .widget_shopping_cart_content>.elementor-menu-cart__footer-buttons{order:3;margin-top:0;padding-top:0}
/* Wider side cart so product names wrap less (owner request 2026-08-28).
   Elementor default is 350px; 480px felt too wide, settled on 440px. Panel
   padding is left at Elementor's 20px 30px so both inner margins stay equal. */
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__main{width:min(440px,100vw)!important}
/* The drawer used to show the suggestions directly under the cart lines, leaving ~380px of dead
   space above Subtotal (Alex 2026-09-05). __main is already a flex column whose subtotal is
   pushed down by margin-top:auto; letting the product list GROW and giving the block its own
   margin-top:auto lands it against the footer instead. It stays in flow, so with a full cart it
   scrolls away with the lines rather than covering them. */
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__products{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
/* block children could not shrink; flex children can (flex:0 1 auto) — without this a long cart
   squashes its own lines instead of scrolling. */
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__products>*{flex-shrink:0}
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__products>.psab-li{margin-top:0;padding-top:10px}
/* 2026-11-30 (Alex: "we don't want to hide what's in the cart either ... we need to be able to scroll").
   The strip is STICKY at the bottom of the scrolling list: under the lines when they fit, pinned in
   view when they do not, with the lines scrolling behind its white backing. z-index keeps it over the
   remove discs. On a very short screen (a phone on its side) a pinned strip would leave no room for
   the cart itself, so there it goes back to scrolling with the lines. */
.elementor-menu-cart__products>.psab-li{position:sticky;bottom:0;z-index:3;background:#fff}
.elementor-menu-cart__products>.psab-li.psab-bare{padding-top:0!important}
@media(max-height:560px){.elementor-menu-cart__products>.psab-li{position:static}.pssc-hint{display:none!important}}
/* "N more items in your cart": lies over the bottom 34px of the list instead of taking space, so
   showing and hiding it never moves anything. Pressing it scrolls the list. */
.elementor-menu-cart__products .pssc-hint{position:absolute;left:0;right:0;bottom:100%;height:34px;margin:0;padding:0;appearance:none;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-top:1px solid #d9d9d9;border-radius:0;background:#fff;box-shadow:0 -8px 10px -6px rgba(0,0,0,.18);font:600 13.5px/1 "Montserrat",sans-serif!important;letter-spacing:0;text-transform:none;color:#171717!important;cursor:pointer}
.elementor-menu-cart__products .pssc-hint::before{content:"";flex:none;width:7px;height:7px;margin:-4px 4px 0 0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.elementor-menu-cart__products .pssc-hint:hover,.elementor-menu-cart__products .pssc-hint:focus{background:#fff;color:#171717!important}
.elementor-menu-cart__products .pssc-hint:focus-visible{outline:3px solid #004dff;outline-offset:-3px}
.elementor-menu-cart__products .pssc-hint[hidden]{display:none!important}
/* A slim scrollbar that is always drawn while the list overflows (Chrome, Edge, Android; desktop
   Safari). Firefox gets its own thin one. iPhones never draw a permanent scrollbar - the bar above
   is their cue. The script hands the scrollbar's width back out of the right gutter, so the remove
   discs and prices keep the same right edge as the subtotal. */
.elementor-menu-cart__products{overflow-y:auto}
.elementor-menu-cart__products::-webkit-scrollbar{width:6px}
.elementor-menu-cart__products::-webkit-scrollbar-track{background:#efefef;border-radius:3px}
.elementor-menu-cart__products::-webkit-scrollbar-thumb{background:#a6a6a6;border-radius:3px}
@supports not selector(::-webkit-scrollbar){.elementor-menu-cart__products{scrollbar-width:thin;scrollbar-color:#a6a6a6 #efefef}}
/* Panel title, top right, level with the Close button (script fills in the count). */
.elementor-menu-cart__main>.pssc-title{position:absolute;top:12px;right:var(--ps-gut,18px);height:42px;display:flex;align-items:center;font:600 15px/1 "Montserrat",sans-serif;color:#171717;pointer-events:none}
/* "See N more": the cart lines step aside and the list area shows every suggestion; the heading
   row (with "Back to cart") stays put while they scroll. Subtotal and buttons never move. */
.elementor-menu-cart__products.pssc-open>.elementor-menu-cart__product{display:none!important}
.elementor-menu-cart__products.pssc-open>.psab-li{position:static;padding-top:0}
.elementor-menu-cart__products.pssc-open .pssc-hint{display:none!important}
/* Elementor's own 64px gap under the product list existed to hold the subtotal down while the
   list was short; the list now grows, so that much air just separates the band from the footer. */
/* 2026-09-18 (Alex, phone): Subtotal + buttons were floating 35px above the bottom of the drawer.
   Elementor caps the product list at max-height:calc(100vh - 250px); once the list hit that cap it
   could not grow any further, and the 18px!important below had already overridden the margin-top:auto
   that was meant to push the footer down, so the leftover space collected UNDER the buttons instead.
   Lift the cap (the list is a flex child with min-height:0, so it still scrolls inside whatever space
   is left) and keep the 18px of air as a margin on the list rather than on the subtotal. */
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__products{max-height:none!important;margin-bottom:18px}
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__subtotal{margin-top:auto!important}
/* ...and the drawer body must be a SHRINKABLE flex item of the panel, not Elementor's height:100%
   (which resolved to the whole panel and pushed the buttons off the bottom once the list was
   allowed to grow). Panel is a fixed-height flex column; body takes what is left after the close
   strip, the list scrolls inside the body, subtotal and buttons keep their own height. */
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__main>.widget_shopping_cart_content{height:auto!important;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__subtotal,.elementor-menu-cart--cart-type-side-cart .elementor-menu-cart__footer-buttons{flex:0 0 auto}
/* View cart + Checkout side by side, equal size. */
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:48px;height:auto;padding:12px 8px!important;margin:0;text-align:center;font-size:.8em;white-space:nowrap}
.psab-head{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
/* 2026-09-05: was UPPERCASE with a 4px red bar, and declared Roboto (which the site-wide
   Montserrat !important in prideshop-fonts.php overrode anyway — it never actually rendered).
   Now the same heading as every other recommendation row, just sized for a 440px drawer. */
.psab-title{margin:0;flex:1 1 auto;min-width:0;font-family:"Montserrat",-apple-system,"Segoe UI",sans-serif;font-size:17px;font-weight:700;line-height:1.25;color:#171717}
/* The one link in the strip. Closed: "See N more" (purple text link, as "Show all" was). Open: it
   becomes the "Back to cart" button. .psab .psab-more is 0,2,0 on purpose - the drawer sits inside
   .woocommerce, whose button rules would otherwise restyle it. */
.psab .psab-more{appearance:none;flex:0 0 auto;margin:0;padding:0 2px;min-height:32px;border:0;border-radius:0;background:none;box-shadow:none;font:600 14px/1.2 "Montserrat",sans-serif!important;letter-spacing:0;text-transform:none;color:#6b3fa0!important;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
.psab .psab-more:hover,.psab .psab-more:focus{background:none;color:#4e2c79!important}
.psab .psab-more:focus-visible{outline:3px solid #004dff;outline-offset:2px}
/* black and square-cornered like the drawer's Close button: the two controls that take you back */
.psab .psab-more[aria-expanded=true]{min-height:36px;padding:0 13px;border:1px solid #171717;border-radius:4px;background:#171717;color:#fff!important;text-decoration:none}
.psab .psab-more[aria-expanded=true]:hover,.psab .psab-more[aria-expanded=true]:focus{background:#000;color:#fff!important}
/* mini-cart markup from before 2026-11-30 can sit in a browser's sessionStorage until the salted
   hash makes it re-fetch: its pager row has no styling any more, so keep it out of sight */
.psab-nav{display:none!important}
/* 2026-09-05 (Alex): the slide was a cart-line lookalike — 72px thumb left, name and price
   beside it. It is now the site's product card, shrunk: photo on top, name, price, button.
   Three to a view in a 440px drawer, scrolling for the rest, which is what makes it read as a
   suggestion rather than a fourth thing already in the basket. */
/* Closed: only the first (best) suggestion is shown. Open: all of them, stacked. */
.psab-track{display:flex;flex-direction:column;gap:10px}
.psab-slide:nth-child(n+2){display:none}
.pssc-open .psab-slide:nth-child(n+2){display:flex}
.pssc-open .psab-head{position:sticky;top:0;z-index:2;margin:-12px -12px 8px;padding:10px 12px 8px;background:#f4f4f4;border-radius:10px 10px 0 0}
/* One recommendation per slide (Alex 2026-09-05, reverting the 3-across grid): a full-width
   horizontal card — thumb, name + price, then Add and View. */
.psab-slide{flex:none;display:flex;align-items:center;gap:.7rem;min-width:0;box-sizing:border-box;background:#fff;border:1px solid var(--ps-line);border-radius:9px;padding:8px 10px}
@media(prefers-reduced-motion:reduce){.psab-btn{transition:none}.psab-btn:active{transform:none}}
.psab-img{position:relative;flex:0 0 60px;width:60px;height:60px;display:flex;border:0;border-radius:6px;background:#fff;align-items:center;justify-content:center;overflow:hidden}
.psab-img img{width:100%;height:100%;object-fit:contain;margin:0}
/* prideshop-card.php styles .psrow-vchip/.psab-vchip/.ps-loop-vchip as an absolute overlay on the
   photo. That works on a 220px+ card; on this 68px thumbnail the chip was 56px wide and blanketed
   the product (Alex 2026-09-05). Overridden HERE ONLY - the shared rule is untouched, so the
   rails, archive grid and search cards keep the overlay. */
.psab-chipslot{display:flex;align-items:center;min-height:17px;margin-top:1px}
.psab-slide .psab-vchip{position:static;flex:0 0 auto;display:inline-block;margin:0;background:#e8e8e8;color:#4a4a4a;font-size:10.5px;padding:3px 7px;pointer-events:auto}
.psab-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px}
/* Two name lines and the chip line are RESERVED whether or not they are filled (Alex 2026-09-05),
   so the price and the chip sit at the same height on every card and the list reads as a grid
   rather than a ragged stack. Same convention the shared card uses for its name and rating rows.
   The name is BOTTOM-aligned in its two-line box, so a one-line name sits on the second line hard
   against the price instead of stranding an empty line beneath it. */
/* font-size + line-height are repeated here on purpose: `2.6em` must compute against the NAME's
   14.7px type, not the 16px it would otherwise inherit, or the reserved box is not exactly two
   name lines and one- vs two-line cards differ by 2px. */
.psab-namebox{display:flex;align-items:flex-end;font-size:.92rem;line-height:1.3;min-height:2.6em}
.psab-name{font-size:.92rem;line-height:1.3;color:#171717!important;text-decoration:none!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.psab-name:hover{text-decoration:underline!important}
.psab-name:hover{text-decoration:underline!important}
/* The chip briefly lived INSIDE this nowrap/ellipsis box, so once price + chip exceeded the ~198px
   text column the CHIP was the part clipped away — it vanished entirely on longer names and longer
   labels like "2 lapel pin types". It now gets its own line under the price (Alex 2026-09-05:
   "possibly under the price or above it"), so nothing can clip it and its width never competes
   with the price. */
.psab-price{font-size:.92rem;font-weight:600;color:#171717;line-height:1.2;min-width:0}
.psab-priceval{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.psab-price del{color:#6b6b6b;font-weight:400;margin-right:.35em} /* same muted token as every other struck price */
.psab-price ins{background:none;text-decoration:none;color:#CD1B1E}
/* Same button as the shared card's (prideshop-card.php .psrow-addbtn): white on the grey band,
   #cfcfcf hairline, 8px radius, 600. The old .psab-view hover painted the pill #a81619 while
   leaving the label #171717 — dark red under near-black, all but unreadable. Fixed here by
   using the card's own hover, which flips the text to white with it. */
.psab-acts{flex:0 0 auto;display:flex;flex-direction:column;gap:6px}
/* Specificity note (2026-09-05): the drawer sits inside a .woocommerce wrapper, and the site sets
   ".woocommerce .button{font-size:15px!important}" at 0,2,0 - which beat a plain ".psab-btn"
   !important at 0,1,0. That is why Add rendered at 15px while View rendered at 13px. The "button"
   class has been dropped from the Add span (WC binds to .add_to_cart_button, not .button) and this
   selector is 0,2,0 so it cannot lose that way again. */
.psab .psab-btn{display:flex!important;align-items:center;justify-content:center;min-width:66px;min-height:32px;padding:0 12px;border-radius:8px;background:#fff;color:#171717!important;border:1px solid var(--ps-edge);font-size:13px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:0!important;text-align:center;text-transform:none;white-space:nowrap;text-decoration:none!important;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.psab-btn:hover,.psab-btn:focus-visible{background:#a81619;color:#fff!important;border-color:#a81619}
.psab-btn:active{transform:scale(.96)}
.psab-btn.loading{opacity:.6}
.psab-btn.added{background:#171717;color:#fff!important;border-color:#171717}
/* "Select options" is 3 characters longer than "Add to cart" and wrapped in a 119px card,
   which made those cards taller and the Show-all grid ragged. */
.psab-soldout{background:none;border-color:var(--ps-line);color:#6b6b6b!important;cursor:default}
.psab-soldout:hover{background:none;color:#6b6b6b!important;border-color:var(--ps-line)}
/* WC appends its own "View cart" link after a successful AJAX add — the drawer already IS the cart. */
.psab-slide .added_to_cart{display:none!important}
@media(max-width:560px){.elementor-menu-cart__main{padding:16px 12px!important}}

/* --- Accessibility fixes for the side cart (WCAG 2.1 AA) --- */
/* Remove button. Elementor draws the x as two rotated bars on the WRAPPER
   ::before/::after (the <a> tags are invisible click overlays). Default colour
   is a faint #d5d8dc via --remove-item-button-color. Just recolour to near-black
   and thicken so it matches the drawer's own close x; NO circle (that read as a
   spinner). Red on hover to signal delete. */
/* 2026-10-18: the two-bar styling that used to live here is gone - prideshop-sidecart-qty.php draws the
   round x button and owns ::before/::after. Once this sheet became an external file (2026-10-16) it loaded
   AFTER that one, and its !important bars won: a 2px bar over a "x" glyph (Alex's screenshot 2026-10-18). */
.elementor-menu-cart__product-remove>a:focus-visible{outline:3px solid #004dff!important;outline-offset:2px!important;opacity:1!important}
/* The drawer CLOSE control. 2026-09-04 it became the same grey disc as the remove buttons ("same
   language for everything that closes/removes"). 2026-11-30 Alex reversed that: "the X to remove
   items from the cart and the X to close the side cart need to be different ... square and possibly
   a different color". It is now a black, square-cornered button that says "x Close": the x is
   ::before, the word is ::after (the element is an empty div; Elementor still handles the click and
   prideshop-sidecart-qty.php / prideshop-a11y.php still name and focus it). Hover and focus darken
   it; red stays the remove buttons' hover alone. 42px tall, so it is its own tap target.
   WHY HERE and why every line is !important under a two-class selector: these rules used to sit in
   prideshop-sidecart-qty.php's inline <style>, which WP Rocket's Remove Unused CSS folds into each
   page's STORED used-CSS - and that stored copy survives a cache purge, so pages kept drawing the
   old grey disc after the rule had changed. This block is never folded in (id prideshop-psab), and
   its extra class out-ranks whatever copy of the old rule a page still carries. */
.elementor-menu-cart__main .elementor-menu-cart__close-button{width:auto!important;min-width:0!important;height:42px!important;min-height:42px!important;margin:0 auto 12px 0!important;padding:0 16px 0 11px!important;border-radius:4px!important;background:#171717!important;border:1px solid #171717!important;color:#fff!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px;cursor:pointer;position:relative}
.elementor-menu-cart__main .elementor-menu-cart__close-button::before{content:"\00d7"!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;background:none!important;transform:none!important;font:600 26px/1 "Montserrat",sans-serif!important;color:currentColor!important}
.elementor-menu-cart__main .elementor-menu-cart__close-button::after{content:"Close"!important;display:block!important;position:static!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:auto!important;height:auto!important;margin:0!important;background:none!important;transform:none!important;border-radius:0!important;font:600 14px/1 "Montserrat",sans-serif!important;letter-spacing:.02em;color:currentColor!important}
.elementor-menu-cart__main .elementor-menu-cart__close-button:hover,.elementor-menu-cart__main .elementor-menu-cart__close-button:focus-visible{background:#000!important;border-color:#000!important;color:#fff!important}
.elementor-menu-cart__close-button:focus-visible{outline:3px solid #004dff!important;outline-offset:2px!important}
/* When the side cart is OPEN, hide the Tinsel launcher/panel so it can't sit
   over the Checkout button (Tinsel's z-index is above the drawer). Belt: JS in
   the Tinsel widget also toggles body.psa-cart-open as a fallback for browsers
   without :has(). */
body:has(.elementor-menu-cart__container[aria-hidden="false"]) #psa-btn,
body:has(.elementor-menu-cart__container[aria-hidden="false"]) #psa-panel,
body.psa-cart-open #psa-btn,
body.psa-cart-open #psa-panel{display:none!important}
