/* Cookie bar (WPConsent) on every front page (enqueued from includes/pages/chrome.php for all pages, not only chrome pages), so the community and group pages get the same slim strip as the list pages.
   Polish 2: a slim bar, not a 118px box over the bottom bar and the filter sheet's Show results.
   The banner is a shadow root (#wpconsent-root > #wpconsent-container); only its parts can be styled. The footer is display:contents so the three
   buttons sit in the banner's own grid: message | Preferences (a link) | Reject | Accept All. Values only; the words stay WPConsent's settings. */
body #wpconsent-root *::part(wpconsent-banner) { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto auto !important; align-items: center !important; gap: 0 10px !important;
	left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto !important; min-width: 0 !important; max-width: none !important; transform: none !important;
	padding: 8px 40px 8px 20px !important; border-radius: 0 !important; box-shadow: 0 -10px 30px -18px rgba(10,14,36,.6) !important; font-family: var(--ld-text, system-ui, sans-serif) !important; }
body #wpconsent-root *::part(wpconsent-banner-body) { grid-column: 1 !important; width: auto !important; max-width: none !important; max-height: 1.4em !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important;
	text-align: left !important; font-size: 13px !important; line-height: 1.4 !important; white-space: nowrap !important; text-overflow: ellipsis !important; }
body #wpconsent-root *::part(wpconsent-banner-footer) { display: contents !important; }
body #wpconsent-root *::part(wpconsent-button-preferences),
body #wpconsent-root *::part(wpconsent-button-cancel),
body #wpconsent-root *::part(wpconsent-button-accept) { flex: none !important; width: auto !important; min-height: 0 !important; height: 30px !important; margin: 0 !important; padding: 0 14px !important; border-radius: 99px !important; font: 600 13px/1 var(--ld-text, system-ui, sans-serif) !important; white-space: nowrap !important; }
body #wpconsent-root *::part(wpconsent-button-preferences) { padding: 0 2px !important; border: 0 !important; background: none !important; color: inherit !important; text-decoration: underline !important; text-underline-offset: 3px !important; font-weight: 500 !important; opacity: .85; }
@media (max-width: 799px) {
	/* phone (r11): one row, "We use cookies." | Preferences (a link) | Reject | Accept, the words from includes/pages/chrome.php; above the navy bottom bar, never over it */
	body #wpconsent-root *::part(wpconsent-banner) { grid-template-columns: minmax(0, 1fr) auto auto auto !important; grid-template-rows: 42px !important; gap: 0 6px !important; padding: 0 30px 10px 14px !important;
		bottom: calc(81px + env(safe-area-inset-bottom, 0px)) !important; box-shadow: none !important; } /* QA D: the -10px 30px drop shadow read as a grey smear on the light page above the strip (Chatty, 15 Oct); the navy edge is enough */
	body #wpconsent-root *::part(wpconsent-banner-body) { grid-column: 1 !important; grid-row: 1 !important; font-size: 12.5px !important; }
	body #wpconsent-root *::part(wpconsent-button-preferences) { grid-column: 2 !important; grid-row: 1 !important; height: 28px !important; font-size: 12px !important; }
	body #wpconsent-root *::part(wpconsent-button-cancel) { grid-column: 3 !important; grid-row: 1 !important; height: 28px !important; padding: 0 11px !important; font-size: 12px !important; }
	body #wpconsent-root *::part(wpconsent-button-accept) { grid-column: 4 !important; grid-row: 1 !important; height: 28px !important; padding: 0 11px !important; font-size: 12px !important; }
}
@media (max-width: 370px) {
	body #wpconsent-root *::part(wpconsent-banner) { gap: 0 5px !important; padding-left: 12px !important; }
	body #wpconsent-root *::part(wpconsent-button-cancel), body #wpconsent-root *::part(wpconsent-button-accept) { padding: 0 9px !important; }
}
/* pages without the bottom bar on a phone (it only shows when Adrian's toolbar is in the page) */
@media (max-width: 799px) { body:not(:has(nav.idu-bottom-toolbar)) #wpconsent-root *::part(wpconsent-banner) { bottom: 0 !important; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; } } /* clears the home indicator when nothing sits below it */
/* The page ends above the strip: assets/js/cookie-room.js adds an empty block at the end of the page as tall as the strip while it shows, and takes it away when Accept or Reject is tapped. */
#ld-cookie-room { display: block; flex: none; width: 100%; height: 0; margin: 0; padding: 0; border: 0; pointer-events: none; }
body.home-page #ld-cookie-room, body.ld-chrome--foot #ld-cookie-room { background: var(--ld-ink-night, #0a0e24); } /* the page ends in the navy footer: no light sliver between it and the strip */
/* the filter sheet is open: the bar steps aside so Show results is never under it */
body:has(.idu-filters.is-open) #wpconsent-root { display: none !important; }
/* "Powered by WPConsent" has no part to hide it (WPConsent setting "Hide powered by" turns it off for real): it falls into an extra grid row, which is zero tall and clipped */
body #wpconsent-root *::part(wpconsent-banner) { grid-auto-rows: 0 !important; overflow: hidden !important; row-gap: 0 !important; }
/* Round two (20 Oct): cookie-room.js moves the strip into the page under the header (html.ld-cookie-inflow); here it is a slim band in the flow, never over content.
   The ::part rules above set fixed-position values; these take them back for the in-flow strip at every width. */
html.ld-cookie-inflow body #wpconsent-root { display: block; } /* no stacking context: WPConsent's Preferences dialog lives in the same root and must still cover the header */
html.ld-cookie-inflow body #wpconsent-root *::part(wpconsent-banner) { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; box-shadow: none !important; }
@media (max-width: 799px) { html.ld-cookie-inflow body #wpconsent-root *::part(wpconsent-banner) { bottom: auto !important; padding: 0 30px 0 14px !important; } }
/* ---- filters2 (28 Oct, Kyle note 5 "This bar on the cookies is very annoying"): not a full-width band under the header any more.
   Desktop: a small card in the bottom-right corner (bottom-left sat over the filter panel). Phone: a compact rounded strip floating just above the bottom bar.
   Accept or Reject still answers WPConsent and it is gone for good (its own consent cookie); the in-flow move is off (body.ld-cookie-float). ---- */
@media (min-width: 800px) {
	body #wpconsent-root *::part(wpconsent-banner) { left: auto !important; right: 20px !important; bottom: 20px !important; width: auto !important; max-width: min(460px, calc(100vw - 40px)) !important;
		grid-template-columns: minmax(0, auto) auto auto auto !important; gap: 0 8px !important; padding: 10px 12px 10px 18px !important; border-radius: 16px !important;
		box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 22px 50px -18px rgba(10,14,36,.55) !important; }
	body #wpconsent-root *::part(wpconsent-banner-body) { font-size: 13.5px !important; font-weight: 600 !important; padding-right: 6px !important; }
}
@media (max-width: 799px) {
	body #wpconsent-root *::part(wpconsent-banner) { left: 10px !important; right: 10px !important; bottom: calc(81px + 8px + env(safe-area-inset-bottom, 0px)) !important; grid-template-rows: 44px !important;
		padding: 0 8px 0 14px !important; border-radius: 14px !important; box-shadow: 0 16px 34px -16px rgba(10,14,36,.6) !important; }
	body:not(:has(nav.idu-bottom-toolbar)) #wpconsent-root *::part(wpconsent-banner) { bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; padding-bottom: 0 !important; }
}
/* filters3 (28 Oct): while a sheet or dialog is open across the foot of the screen (room Message, job Apply, the filter sheet), the floating strip
   steps aside so it never covers a field or the sheet's own button; cookie-room.js sets the class and takes it off when the sheet closes. */
html.ld-cookie-under-sheet body.ld-cookie-float #wpconsent-root *::part(wpconsent-banner) { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
/* sign up round 2 (28 Oct, t_8014879bc4, the cookie item from critic-merged-flows-4-6): on the sign up, sign in, check-email and signed-out Messages
   screens the strip covered the one button that matters (Pick your community, Sign in) on a phone. There it floats over the top of the page instead,
   on the photo or the Messages example under the header, and scrolls away with the page, so it never sits over a field or a button. */
@media (max-width: 799px) {
	body.ld-auth.ld-cookie-float #wpconsent-root *::part(wpconsent-banner),
	body.ld-auth.ld-cookie-float:not(:has(nav.idu-bottom-toolbar)) #wpconsent-root *::part(wpconsent-banner) { position: absolute !important; top: 74px !important; bottom: auto !important; }
}
/* 1.1.0 (live, 5 Nov): the account choice step of /register/ has no field or button at the foot, so on a phone the strip floats at the bottom there
   as on other pages instead of over the photo under the header. html prefix out-ranks the :not(:has()) auth rule above. */
@media (max-width: 799px) {
	html body.ld-auth.ld-su--account.ld-cookie-float #wpconsent-root *::part(wpconsent-banner) { position: fixed !important; top: auto !important; bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
}
