/* Shishana QA fixes: homepage, header, footer, menu drawer, content pages (QA pass 21 Nov 2026).
   Load AFTER shishana.css (and after Elementor's frontend.min.css). Every rule is scoped so it only
   reproduces what shishana.co.uk shows; see qa/HOME-CONTENT.md for the measurements behind each one. */

/* 1. Header: the postcode pin is a phone/iPad control only. On desktop (>=1024px) the captured
      ".u-flex{display:flex}" (same specificity, later file) beat ".header-trigger--pc{display:none}",
      so a 20px pin showed at the far left of the desktop header (x=2, y=58). */
@media (min-width: 1024px) {
  .header .header-trigger.header-trigger--pc { display: none !important; }
}

/* 2. Live wraps page content in div#main.main; WordPress uses main#content.site-main, so the live
      ".main" rules never matched. Mirrors of those two rules (the dark "#main" rules belong to the
      brand pages and are listed in the report). */
main#content.site-main { min-height: 180px; }
@media (min-width: 1024px) {
  main#content.site-main .section { margin-bottom: 0; }
}

/* 3. Imported page content (shs-html widgets): the widget reset ":where(...) :where(ul,ol){list-style:none}"
      removed the browser's default bullets and numbers, which live keeps (.rte lists are
      list-style-position:inside on live, so the markers also change line wrapping). Specificity 0,0,1:
      beats the zero-specificity reset, loses to every class-based live rule that sets list-style:none. */
:where(.elementor-widget-shs-html) ul { list-style-type: disc; }
:where(.elementor-widget-shs-html) ol { list-style-type: decimal; }
:where(.elementor-widget-shs-html) :is(ul, ol) ul { list-style-type: circle; }
:where(.elementor-widget-shs-html) :is(ul, ol) :is(ul, ol) ul { list-style-type: square; }

/* 4. Imported page content, <details>: live sets html{box-sizing:border-box} and *{box-sizing:inherit}. A <summary>
      and the answer inside <details> are slotted into the browser's own details shadow tree, so on live they
      inherit content-box. Elementor's ".elementor *{box-sizing:border-box}" forces border-box on them, so
      padding no longer adds to min-height (delivery-prices FAQ question rows: 84px live, 60px WP; page 240px
      shorter at 1440). Specificity 0,1,0 like Elementor's rule (this file loads later); class-based live rules
      in the captured stylesheet still win (same specificity, loaded later). */
:where(.elementor) .elementor-widget-shs-html :where(details *) { box-sizing: inherit; }

/* 5. Area pages: live "div#click-and-collect.shs-cc" shares its class with the cookie banner
      (section#shs-cc.shs-cc), so the banner's position:fixed rules pulled the whole click-and-collect block
      out of the page (390px: page 1,070px shorter, block stuck at top:-140px). Layout part undone here;
      qa-content.js also re-scopes the banner's own stylesheet to #shs-cc so fonts match live too.
      Not the product page's click and collect sheet (div#shs-cc-sheet.shs-cc): it must stay a fixed overlay. */
div.shs-cc:not(#shs-cc):not(#shs-cc-sheet) {
  position: static; z-index: auto; top: auto; right: auto; bottom: auto; left: auto;
  transform: none; width: auto; max-width: none; box-shadow: none;
  font-size: 16px; line-height: 26.88px; text-align: start;
}

/* 6. Delivery prices (postcode engine): the engine has no free-delivery thresholds, so the live
      "Free from £X" chips and the free-delivery card are hidden. qa-content.js fills the checker
      from /wp-json/shs/v1/zone. */
[data-shs-dl] [data-dl-free],
[data-shs-dl] .shs-dl-card--free { display: none !important; }
[data-shs-dl] .shs-dl-row__price[data-shs-engine] { white-space: normal; }
[data-shs-dl] .shs-dl-row__price:not([data-shs-engine]) { visibility: hidden; } /* no flash of the old fixed £ prices before qa-content.js runs */
