/* Proscris Privacy, Consent & Accessibility 2.0.0: the privacy and accessibility widget (the Gym Tech design) and
   the site-wide accessibility tools. Scoped to #pcx-cb, #pcx-root (#pcx-trig, #pcx-panel, #pcx-guide) and
   html[data-pcx-*]. Colours come from the theme settings (--pcx-* custom properties, printed after this file;
   the values below are the defaults: navy accent on a charcoal surface). Sizes are in px on purpose: the widget
   doesn't scale with the Font Size tool, and browser zoom still scales it.
   WCAG 2.2: text 7:1 where the theme allows (4.5:1 minimum, enforced by the theme), 44 x 44 px targets, 3 px focus
   outline, forced colours, reduced motion, RTL (logical properties), 400% zoom (the dialog scrolls inside). */

/* OpenDyslexic by Abbie Gonzalez, SIL Open Font License 1.1 (fonts/OpenDyslexic-OFL.txt). Bundled; the browser
   downloads it only while the Dyslexia Font tool is on. */
@font-face { font-family: 'OpenDyslexic'; src: url('../fonts/OpenDyslexic-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('../fonts/OpenDyslexic-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --pcx-accent: #1e3a8a; --pcx-on-accent: #ffffff; --pcx-accent-hover: #192f71; --pcx-accent-glow: rgba(30,58,138,.55);
  --pcx-ink: #1e3a8a; --pcx-ink-hover: #192f71; --pcx-sec: #1e3a8a; --pcx-focus: #1e3a8a; --pcx-dark-link: #92a8e7;
  --pcx-chrome: #1f2328; --pcx-on-chrome: #ffffff; --pcx-on-chrome-2: #d1d5db;
  --pcx-chrome-line: rgba(255,255,255,.15); --pcx-chrome-line-2: rgba(255,255,255,.25); --pcx-chrome-dash: rgba(255,255,255,.3);
  --pcx-chrome-dash-h: rgba(255,255,255,.7); --pcx-chrome-hover: rgba(255,255,255,.05);
  --pcx-btn-ess: #363a3e; --pcx-btn-ess-h: #42464a; --pcx-btn-dec: #303338; --pcx-btn-dec-h: #3b3e43; --pcx-btn-line: #74777a;
  --pcx-chrome-link: #96ace8; --pcx-focus-chrome: #c9a227; --pcx-trig-line: rgba(255,255,255,.25);
  --pcx-chrome-shadow: rgba(0,0,0,.65); --pcx-trig-shadow: rgba(0,0,0,.45); --pcx-chrome-accent: #96ace8;
  --pcx-gutter: 28px; --pcx-stack-bottom: 28px;
  --pcx-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@media (max-width: 768px) { :root { --pcx-gutter: 14px; --pcx-stack-bottom: 14px; } }

/* ── Isolation: themes can't restyle the widget's elements ── */
#pcx-cb, #pcx-cb *, #pcx-cb *::before, #pcx-cb *::after,
#pcx-root, #pcx-root *, #pcx-root *::before, #pcx-root *::after { box-sizing: border-box; }
#pcx-cb :where(p, h2, h3, span, div, a, button, label, input, hr),
#pcx-root :where(p, h2, h3, span, div, a, button, label, input, hr, dialog) {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; float: none;
  width: auto; height: auto; min-width: 0; min-height: 0; max-width: none; max-height: none;
  font: inherit; color: inherit; letter-spacing: inherit; word-spacing: inherit; text-transform: inherit; text-decoration: none;
  text-align: inherit; text-shadow: none; line-height: inherit; opacity: 1; transform: none; filter: none;
}
#pcx-cb :where(button), #pcx-root :where(button) { -webkit-appearance: none; appearance: none; cursor: pointer; }
#pcx-cb [hidden], #pcx-root [hidden] { display: none !important; }
#pcx-root { font-family: var(--pcx-font); font-size: 14px; font-weight: 400; font-style: normal; line-height: 1.5; color: #1a1a1a; text-align: start; text-transform: none; letter-spacing: normal; word-spacing: normal; }
#pcx-root .pcx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#pcx-root .pcx-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Icons: inline SVG, fill currentColor (forced-colours safe) */
#pcx-cb .pcx-i, #pcx-root .pcx-i { display: inline-block; flex: none; width: 1em; height: 1em; fill: currentColor; overflow: visible; vertical-align: -.125em; }
#pcx-cb .pcx-w12, #pcx-root .pcx-w12 { width: .75em; }
#pcx-cb .pcx-w14, #pcx-root .pcx-w14 { width: .875em; }
#pcx-cb .pcx-w18, #pcx-root .pcx-w18 { width: 1.125em; }

/* Model-specific copy: html[data-pcx-model] is set in <head> before first paint */
#pcx-cb [data-pcx-copy="optout"], #pcx-root [data-pcx-copy="optout"] { display: none; }
html[data-pcx-model="optout"] #pcx-cb [data-pcx-copy="optout"], html[data-pcx-model="optout"] #pcx-root [data-pcx-copy="optout"] { display: inline; }
html[data-pcx-model="optout"] #pcx-cb p[data-pcx-copy="optout"] { display: block; }
html[data-pcx-model="optout"] #pcx-cb [data-pcx-copy="optin"], html[data-pcx-model="optout"] #pcx-root [data-pcx-copy="optin"] { display: none; }

/* Focus: 3 px outline. Gold on the dark surface (banner, panel header), the secondary colour on the white panel. */
#pcx-root :focus-visible { outline: 3px solid var(--pcx-focus); outline-offset: 2px; }
#pcx-cb :focus-visible, #pcx-root .pcx-ph :focus-visible { outline: 3px solid var(--pcx-focus-chrome); outline-offset: 2px; }
#pcx-root .pcx-pane:focus-visible, #pcx-root .pcx-tab:focus-visible { outline-offset: -3px; }

/* ══════════ COOKIE BANNER: non-modal region, first in the body; anchored to the floating stack ══════════ */
#pcx-cb {
  position: fixed; bottom: var(--pcx-stack-bottom, 28px); inset-inline-start: var(--pcx-gutter, 28px);
  z-index: var(--gtz-privacy-cookie, 2147482999);
  display: none; width: 320px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--pcx-stack-bottom, 28px) - 16px); max-height: calc(100dvh - var(--pcx-stack-bottom, 28px) - 16px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--pcx-chrome); color: var(--pcx-on-chrome-2);
  border: 1px solid var(--pcx-chrome-line); border-inline-start: 4px solid var(--pcx-chrome-accent);
  padding: 18px 20px; box-shadow: 0 12px 36px var(--pcx-chrome-shadow); isolation: isolate;
  font-family: var(--pcx-font); font-size: 14px; font-weight: 400; font-style: normal; line-height: 1.5; text-align: start; text-transform: none; letter-spacing: normal; word-spacing: normal;
  transition: opacity .28s ease, transform .28s ease, bottom .3s cubic-bezier(.4,0,.2,1);
}
html[data-pcx-ask]:not([data-pcx-off]) #pcx-cb { display: block; }
#pcx-cb.pcx-gone { opacity: 0; transform: translateY(12px); pointer-events: none; }
#pcx-cb .pcx-cb-lbl { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pcx-on-chrome); line-height: 1.5; }
#pcx-cb .pcx-cb-lbl .pcx-i { color: var(--pcx-chrome-accent); font-size: 13px; }
#pcx-cb .pcx-cb-txt p { margin: 0 0 16px; font-size: 12.5px; line-height: 1.55; color: var(--pcx-on-chrome-2); }
#pcx-cb .pcx-cb-txt a { color: var(--pcx-chrome-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#pcx-cb .pcx-cb-txt a:hover { color: var(--pcx-on-chrome); }

/* Accept / Essential / Decline: same size, same type, one row (equal prominence) */
#pcx-cb .pcx-cb-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
#pcx-cb .pcx-cb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 8px 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  border-radius: 4px; border: 1px solid transparent; color: var(--pcx-on-chrome);
  transition: background-color .22s cubic-bezier(.4,0,.2,1), border-color .22s cubic-bezier(.4,0,.2,1);
}
#pcx-cb .pcx-cb-acc { background: var(--pcx-accent); border-color: var(--pcx-accent); color: var(--pcx-on-accent); }
#pcx-cb .pcx-cb-acc:hover { background: var(--pcx-accent-hover); border-color: var(--pcx-accent-hover); }
#pcx-cb .pcx-cb-ess { background: var(--pcx-btn-ess); border-color: var(--pcx-btn-line); }
#pcx-cb .pcx-cb-ess:hover { background: var(--pcx-btn-ess-h); }
#pcx-cb .pcx-cb-dec { background: var(--pcx-btn-dec); border-color: var(--pcx-btn-line); }
#pcx-cb .pcx-cb-dec:hover { background: var(--pcx-btn-dec-h); }

/* Manage Preferences: the 32 px dashed look, with a 44 px tall pointer target */
#pcx-cb .pcx-cb-mgr {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 32px; padding: 4px 8px;
  background: transparent; border: 1px dashed var(--pcx-chrome-dash); border-radius: 4px;
  color: var(--pcx-on-chrome-2); font-size: 11px; font-weight: 700; line-height: 1.3;
  transition: color .22s, border-color .22s, background-color .22s;
}
#pcx-cb .pcx-cb-mgr::before { content: ""; position: absolute; inset: -6px 0; }
#pcx-cb .pcx-cb-mgr:hover { color: var(--pcx-on-chrome); border-color: var(--pcx-chrome-dash-h); background: var(--pcx-chrome-hover); }

/* ══════════ FLOATING ACCESSIBILITY BUTTON (always available once a choice is made) ══════════ */
#pcx-root #pcx-trig {
  position: fixed; bottom: var(--pcx-stack-bottom, 28px); inset-inline-start: var(--pcx-gutter, 28px);
  z-index: var(--gt-z-launcher-panel, var(--gtz-privacy, 2147482998));
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  background: var(--pcx-chrome); border: 2px solid var(--pcx-trig-line); border-radius: 50%; color: var(--pcx-on-chrome);
  font-size: 20px; line-height: 1; box-shadow: 0 4px 16px var(--pcx-trig-shadow); isolation: isolate;
  opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.85) translateY(6px);
  transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1), background-color .22s, border-color .22s, box-shadow .22s, color .22s, bottom .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .22s;
}
html:not([data-pcx-ask]):not([data-pcx-off]) #pcx-root #pcx-trig { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
html:not([data-pcx-ask]):not([data-pcx-off]) #pcx-root #pcx-trig:hover { background: var(--pcx-accent); border-color: var(--pcx-accent); color: var(--pcx-on-accent); box-shadow: 0 6px 20px var(--pcx-accent-glow); transform: scale(1.08); }
#pcx-root #pcx-trig:focus-visible { outline: 3px solid var(--pcx-focus-chrome); outline-offset: 2px; box-shadow: 0 0 0 5px #111111, 0 4px 16px var(--pcx-trig-shadow); }
#pcx-root #pcx-trig .pcx-dot { position: absolute; top: -2px; inset-inline-end: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--pcx-chrome-accent); border: 2px solid var(--pcx-chrome); display: none; }
html[data-pcx-a11y] #pcx-root #pcx-trig .pcx-dot { display: block; }

/* ══════════ PREFERENCES: native modal <dialog>, positioned like the Gym Tech popover ══════════ */
#pcx-root #pcx-panel {
  position: fixed; inset: auto; bottom: calc(var(--pcx-stack-bottom, 28px) + 58px); inset-inline-start: var(--pcx-gutter, 28px);
  margin: 0; padding: 0; width: 320px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--pcx-stack-bottom, 28px) - 88px); max-height: calc(100dvh - var(--pcx-stack-bottom, 28px) - 88px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9ca3af transparent;
  background: #ffffff; color: #1a1a1a; border: 1px solid #d1d5db; border-top: 4px solid var(--pcx-accent);
  box-shadow: 0 12px 40px rgba(0,0,0,.22); font-family: var(--pcx-font); font-size: 14px; line-height: 1.5;
  opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom left;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.15,.64,1), bottom .3s cubic-bezier(.4,0,.2,1);
}
#pcx-root #pcx-panel:not([open]) { display: none; }
#pcx-root #pcx-panel[open] { display: block; }
#pcx-root #pcx-panel.pcx-open { opacity: 1; transform: none; }
#pcx-root #pcx-panel::backdrop { background: transparent; }
[dir="rtl"] #pcx-root #pcx-panel { transform-origin: bottom right; }

#pcx-root .pcx-ph { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--pcx-chrome); }
#pcx-root .pcx-ph-ttl { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--pcx-on-chrome); }
#pcx-root .pcx-ph-ttl .pcx-i { color: var(--pcx-chrome-accent); font-size: 12px; }
#pcx-root .pcx-ph-x {
  position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--pcx-chrome-line-2); border-radius: 4px; color: var(--pcx-on-chrome); font-size: 14px;
  transition: background-color .22s, border-color .22s, color .22s;
}
#pcx-root .pcx-ph-x::before { content: ""; position: absolute; inset: -6px; }
#pcx-root .pcx-ph-x:hover { background: var(--pcx-accent); border-color: var(--pcx-accent); color: var(--pcx-on-accent); }

/* Tabs */
#pcx-root .pcx-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid #e5e7eb; background: #f9fafb; }
#pcx-root .pcx-tab {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 12px 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; color: #4b5563;
  background: transparent; border-bottom: 3px solid transparent; transition: color .22s, background-color .22s, border-color .22s;
}
#pcx-root .pcx-tab:hover { color: #0d0d0d; background: #f3f4f6; }
#pcx-root .pcx-tab[aria-selected="true"] { color: var(--pcx-ink); border-bottom-color: var(--pcx-ink); background: #ffffff; }

/* Body */
#pcx-root .pcx-pb { padding: 16px; background: #ffffff; }
#pcx-root .pcx-slbl { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: #374151; }
#pcx-root .pcx-slbl .pcx-i { color: var(--pcx-ink); font-size: 11px; }
#pcx-root .pcx-hr { display: block; height: 0; border: 0; border-top: 1px solid #e5e7eb; margin: 14px 0; }

/* Steppers (font size, line spacing): 32 px squares with a 44 px pointer target */
#pcx-root .pcx-srow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
#pcx-root .pcx-srow-lbl { font-size: 12.5px; font-weight: 700; color: #1a1a1a; }
#pcx-root .pcx-sctrl { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
#pcx-root .pcx-sbtn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid #6b7280; border-radius: 4px; background: #f3f4f6; color: #111827; font-size: 16px; font-weight: 800; line-height: 1;
  transition: background-color .22s, border-color .22s;
}
#pcx-root .pcx-sbtn::before { content: ""; position: absolute; inset: -6px; }
#pcx-root .pcx-sbtn:hover { background: #e5e7eb; border-color: #4b5563; }
#pcx-root .pcx-sbtn[aria-disabled="true"] { color: #4b5563; background: #f9fafb; border-style: dashed; cursor: not-allowed; }
#pcx-root .pcx-sval { min-width: 60px; text-align: center; font-size: 11.5px; font-weight: 700; color: #111827; }

/* Toggle rows */
#pcx-root .pcx-trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#pcx-root .pcx-trow-txt, #pcx-root .pcx-ctxt { flex: 1 1 auto; min-width: 0; }
#pcx-root .pcx-trow-lbl { display: block; font-size: 12.5px; font-weight: 700; color: #1a1a1a; cursor: pointer; }
#pcx-root .pcx-trow-desc { font-size: 11px; line-height: 1.4; color: #4b5563; } /* inline, as on the Gym Tech widget (21 px line box) */

/* Switch: 44 x 24 track (the Gym Tech look); the checkbox itself covers a 44 x 44 px target */
#pcx-root .pcx-tgl { position: relative; display: inline-block; flex: none; width: 44px; height: 24px; }
#pcx-root .pcx-tgl input { position: absolute; z-index: 1; top: -10px; left: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
#pcx-root .pcx-tsl { position: absolute; inset: 0; border-radius: 24px; background: #6b7280; transition: background-color .2s ease; }
#pcx-root .pcx-tsl::before { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: inset-inline-start .2s ease; }
#pcx-root .pcx-tgl input:checked + .pcx-tsl { background: var(--pcx-ink); }
#pcx-root .pcx-tgl input:checked + .pcx-tsl::before { inset-inline-start: 23px; }
#pcx-root .pcx-tgl input:focus-visible { outline: none; }
#pcx-root .pcx-tgl input:focus-visible + .pcx-tsl { outline: 3px solid var(--pcx-focus); outline-offset: 2px; }
#pcx-root .pcx-tgl input:disabled { cursor: not-allowed; }
#pcx-root .pcx-tgl-locked .pcx-tsl { background: var(--pcx-sec); opacity: .6; }
#pcx-root .pcx-tgl-locked input:checked + .pcx-tsl { background: var(--pcx-sec); }

/* Privacy rows */
#pcx-root .pcx-intro { margin: 0 0 14px; font-size: 11.5px; line-height: 1.55; color: #374151; }
#pcx-root .pcx-gpc { margin: 0 0 14px; padding: 10px 12px; border-inline-start: 4px solid var(--pcx-sec); background: #f3f4f6; color: #111827; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
#pcx-root .pcx-crow { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
#pcx-root .pcx-cname { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 800; color: #1a1a1a; cursor: pointer; }
#pcx-root .pcx-cdesc { font-size: 11.5px; line-height: 1.45; color: #4b5563; }
#pcx-root .pcx-creq { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--pcx-sec); }
#pcx-root .pcx-gpc-note { display: none; margin-top: 3px; font-weight: 700; color: #111827; }
html[data-gpc="on"] #pcx-root .pcx-gpc-note { display: block; }

/* Actions */
#pcx-root .pcx-save {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 14px; padding: 10px 14px;
  background: var(--pcx-accent); color: var(--pcx-on-accent); border: 1px solid var(--pcx-accent); border-radius: 4px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; transition: background-color .22s, border-color .22s;
}
#pcx-root .pcx-save:hover { background: var(--pcx-accent-hover); border-color: var(--pcx-accent-hover); }
#pcx-root .pcx-reset {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 12px;
  background: #f9fafb; color: #374151; border: 1px solid #6b7280; border-radius: 4px;
  font-size: 11.5px; font-weight: 700; line-height: 1.3; transition: background-color .22s, color .22s;
}
#pcx-root .pcx-reset:hover { background: #e5e7eb; color: #111827; }
#pcx-root .pcx-prow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#pcx-root .pcx-prow .pcx-reset { margin-top: 8px; }

/* Policy links: 11 px text in 44 px tall targets (the row keeps the Gym Tech spacing) */
#pcx-root .pcx-links { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 12px 0 -12px; padding: 0; border-top: 1px solid #e5e7eb; }
#pcx-root .pcx-links:empty { display: none; }
#pcx-root .pcx-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; font-weight: 700; color: var(--pcx-ink); text-decoration: underline; text-underline-offset: 2px; }
#pcx-root .pcx-links a:hover { color: var(--pcx-ink-hover); }

/* Reading guide (an overlay band; it never changes the page) */
#pcx-root #pcx-guide { position: fixed; z-index: 2147482990; left: 0; right: 0; top: 0; height: 36px; display: none; pointer-events: none; background: rgba(255,235,59,.3); border-block: 2px solid rgba(255,193,7,.7); transform: translateY(-100px); }
html[data-pcx-guide] #pcx-root #pcx-guide { display: block; }

/* ══════════ LAYOUT ══════════ */
@media (max-width: 600px) {
  #pcx-cb, #pcx-root #pcx-panel { inset-inline-end: var(--pcx-gutter, 14px); width: auto; max-width: none; }
}
/* Short viewports and 400% zoom: the dialog uses the full height and scrolls inside */
@media (max-height: 520px) {
  #pcx-root #pcx-panel { top: 8px; bottom: 8px; max-height: none; inset-inline-end: var(--pcx-gutter, 14px); width: auto; max-width: 420px; }
}

/* Courtesy with other Gym Tech floating widgets (GTModalState, cart drawer, chat window) */
html[data-gt-modal-open] #pcx-cb, html[data-gt-modal-open] #pcx-root #pcx-trig { z-index: var(--gtz-privacy-courtesy, 52); }
html[data-gt-drawer-open] #pcx-cb, html[data-vf-chat-open] #pcx-cb,
html[data-gt-drawer-open] #pcx-root #pcx-trig, html[data-vf-chat-open] #pcx-root #pcx-trig { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
html[data-pcx-off] #pcx-cb, html[data-pcx-off] #pcx-root { display: none !important; }

/* ══════════ FORCED COLOURS (Windows High Contrast) ══════════ */
@media (forced-colors: active) {
  #pcx-cb, #pcx-root #pcx-panel { border: 2px solid CanvasText; }
  #pcx-cb .pcx-cb-btn, #pcx-cb .pcx-cb-mgr, #pcx-root #pcx-trig, #pcx-root .pcx-ph-x, #pcx-root .pcx-sbtn, #pcx-root .pcx-save, #pcx-root .pcx-reset { border: 2px solid ButtonText; }
  #pcx-root .pcx-ph { border-bottom: 2px solid CanvasText; }
  #pcx-root .pcx-tab { forced-color-adjust: none; background: Canvas; color: CanvasText; border-bottom: 3px solid Canvas; }
  #pcx-root .pcx-tab[aria-selected="true"] { color: Highlight; border-bottom-color: Highlight; }
  #pcx-root .pcx-tsl { forced-color-adjust: none; background: Canvas; border: 2px solid ButtonText; }
  #pcx-root .pcx-tsl::before { top: 1px; inset-inline-start: 1px; background: ButtonText; box-shadow: none; }
  #pcx-root .pcx-tgl input:checked + .pcx-tsl { background: Highlight; border-color: Highlight; }
  #pcx-root .pcx-tgl input:checked + .pcx-tsl::before { inset-inline-start: 21px; background: HighlightText; }
  #pcx-root .pcx-tgl-locked .pcx-tsl, #pcx-root .pcx-tgl-locked input:checked + .pcx-tsl { background: GrayText; border-color: GrayText; opacity: 1; }
  #pcx-root .pcx-tgl-locked input:checked + .pcx-tsl::before { background: Canvas; }
  #pcx-root #pcx-trig .pcx-dot { forced-color-adjust: none; background: Highlight; border-color: Canvas; }
  #pcx-cb .pcx-cb-lbl .pcx-i, #pcx-root .pcx-ph-ttl .pcx-i, #pcx-root .pcx-slbl .pcx-i { color: CanvasText; }
  #pcx-cb :focus-visible, #pcx-root :focus-visible, #pcx-root .pcx-tgl input:focus-visible + .pcx-tsl { outline-color: Highlight; }
  #pcx-root #pcx-guide { forced-color-adjust: none; background: transparent; border-block: 3px solid Highlight; }
}

/* ══════════ MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  #pcx-cb, #pcx-cb *, #pcx-root, #pcx-root *, #pcx-root *::before { transition: none !important; animation: none !important; }
  html:not([data-pcx-ask]):not([data-pcx-off]) #pcx-root #pcx-trig:hover { transform: none; }
}
@media print { #pcx-cb, #pcx-root { display: none !important; } }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════
   SITE-WIDE ACCESSIBILITY TOOLS (html[data-pcx-*], set in <head> before first paint and by widget.js).
   None of them touch the widget, and none changes images or video (no filters, no inversion).
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* Font size (WCAG 1.4.4): text blocks in the content scale, header and navigation stay put so they don't break.
   CSS zoom scales px and rem text alike; nested text blocks are not scaled twice. */
html[data-pcx-font="1"] { --pcx-zoom: .8125; }
html[data-pcx-font="2"] { --pcx-zoom: .875; }
html[data-pcx-font="4"] { --pcx-zoom: 1.1875; }
html[data-pcx-font="5"] { --pcx-zoom: 1.375; }
html[data-pcx-font] body :is(p, li, dt, dd, blockquote, figcaption, caption, td, th, label, legend, h1, h2, h3, h4, h5, h6, .brxe-text, .brxe-text-basic, .brxe-post-content):not(:is(p, li, dt, dd, blockquote, figcaption, caption, td, th, label, legend, h1, h2, h3, h4, h5, h6, .brxe-text, .brxe-text-basic, .brxe-post-content, header, nav, [role="banner"], [role="navigation"], #pcx-root, #pcx-cb) *) { zoom: var(--pcx-zoom, 1) !important; }

/* Line spacing (WCAG 1.4.12) */
html[data-pcx-lh="1"] { --pcx-lh: 1.35; }
html[data-pcx-lh="3"] { --pcx-lh: 1.85; }
html[data-pcx-lh="4"] { --pcx-lh: 2.15; }
html[data-pcx-lh] body { line-height: var(--pcx-lh) !important; }
html[data-pcx-lh] body :is(p, li, dt, dd, blockquote, figcaption, td, th, .brxe-text, .brxe-text-basic, .brxe-post-content):not(:is(header, nav, [role="banner"], [role="navigation"], #pcx-root, #pcx-cb) *),
html[data-pcx-lh] body :is(p, li, dt, dd, blockquote, figcaption, td, th, .brxe-text, .brxe-text-basic, .brxe-post-content):not(:is(header, nav, [role="banner"], [role="navigation"], #pcx-root, #pcx-cb) *) * { line-height: var(--pcx-lh) !important; }

/* Dark theme: solid colours only (no filters), images and video untouched. Containers turn #111 and text elements lose
   their own backgrounds, so a light table, badge or card never hides light text. */
html[data-pcx-dark] { background-color: #111111 !important; color-scheme: dark; }
html[data-pcx-dark] body { background-color: #111111 !important; color: #f3f4f6 !important; }
html[data-pcx-dark] :is(.brx-container, [class*="brxe-"], [class*="bricks-"], main, article, section, header, footer, aside, nav, div, .site, .site-content, .site-header, .site-footer, .page-content, .wp-site-blocks, #page, #content, #main):not(#pcx-root, #pcx-root *, #pcx-cb, #pcx-cb *, img, video, picture, svg, canvas, iframe, embed, object) { background-color: #111111 !important; color: #f3f4f6 !important; }
html[data-pcx-dark] :is(p, h1, h2, h3, h4, h5, h6, li, dt, dd, td, th, caption, span, label, blockquote, figcaption, strong, em, small, b, i):not(#pcx-root *, #pcx-cb *) { color: #f3f4f6 !important; }
html[data-pcx-dark] :is(p, h1, h2, h3, h4, h5, h6, li, dt, dd, td, th, caption, table, thead, tbody, tfoot, tr, ul, ol, dl, blockquote, figure, figcaption, pre, details, summary, fieldset, form, span, label, strong, em, small, b, i, mark, code):not(#pcx-root *, #pcx-cb *) { background-color: transparent !important; }
html[data-pcx-dark] :is(button, input, select, textarea):not(#pcx-root *, #pcx-cb *) { background-color: #1f1f1f !important; color: #f3f4f6 !important; border-color: #6b7280 !important; }
html[data-pcx-dark] a:not(#pcx-root *, #pcx-cb *) { color: var(--pcx-dark-link) !important; }

/* High contrast: black and white, yellow links, solid borders; no filters, so fixed launchers never vanish */
html[data-pcx-con] { background-color: #000000 !important; color-scheme: dark; }
html[data-pcx-con] body { background-color: #000000 !important; color: #ffffff !important; }
html[data-pcx-con] :is(.brx-container, [class*="brxe-"], [class*="bricks-"], main, article, section, header, footer, aside, nav, div):not(#pcx-root, #pcx-root *, #pcx-cb, #pcx-cb *, img, video, picture, svg, canvas, iframe, embed, object) { background-color: #000000 !important; color: #ffffff !important; }
html[data-pcx-con] :is(p, h1, h2, h3, h4, h5, h6, li, dt, dd, td, th, caption, span, label, blockquote, figcaption, strong, em, small, b, i):not(#pcx-root *, #pcx-cb *) { color: #ffffff !important; }
html[data-pcx-con] :is(p, h1, h2, h3, h4, h5, h6, li, dt, dd, td, th, caption, table, thead, tbody, tfoot, tr, ul, ol, dl, blockquote, figure, figcaption, pre, details, summary, fieldset, form, span, label, strong, em, small, b, i, mark, code):not(#pcx-root *, #pcx-cb *) { background-color: transparent !important; }
html[data-pcx-con] a:not(#pcx-root *, #pcx-cb *) { color: #ffff00 !important; text-decoration: underline !important; text-underline-offset: 3px !important; }
html[data-pcx-con] :is(button, input, select, textarea):not(#pcx-root *, #pcx-cb *) { border: 2px solid #ffffff !important; background-color: #000000 !important; color: #ffffff !important; }

/* Reduce motion (WCAG 2.3.3) */
html[data-pcx-motion] { scroll-behavior: auto !important; }
html[data-pcx-motion] *, html[data-pcx-motion] *::before, html[data-pcx-motion] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

/* Dyslexia font: bundled OpenDyslexic with wider letter and word spacing on body text (headings, buttons and icon fonts are left alone, as on the Gym Tech widget, so layouts hold) */
html[data-pcx-dyslexia] body :is(p, li, dt, dd, td, th, span, a, label, blockquote, figcaption):not(#pcx-root *, #pcx-cb *, [class*="icon"], [class*="fa-"], .fa, .fas, .far, .fab, .dashicons, [aria-hidden="true"]) { font-family: 'OpenDyslexic', 'Comic Sans MS', 'Chalkboard SE', Verdana, sans-serif !important; letter-spacing: .06em !important; word-spacing: .12em !important; }
html[data-pcx-dyslexia]:not([data-pcx-lh]) body :is(p, li, dd, td, blockquote):not(#pcx-root *, #pcx-cb *) { line-height: 1.7 !important; }

/* Large cursor: a 48 px arrow, and a 48 px hand on links and controls */
html[data-pcx-cursor], html[data-pcx-cursor] body, html[data-pcx-cursor] body * { cursor: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2748%27 height=%2748%27 viewBox=%270 0 36 36%27%3E%3Cpath d=%27M8 2v24l6-6 4 9 4-2-4-9 8-1z%27 fill=%27%23000%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") 11 3, auto !important; }
html[data-pcx-cursor] body :is(a, button, summary, select, label, [role="button"], [role="switch"], [role="tab"], [role="link"], input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"], input[type="reset"]),
html[data-pcx-cursor] body :is(a, button, summary, [role="button"], [role="tab"], [role="link"]) * { cursor: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2742%27 height=%2748%27 viewBox=%27-24 -24 496 560%27%3E%3Cpath d=%27M128 40c0-22.1 17.9-40 40-40s40 17.9 40 40V188.2c8.5-7.6 19.7-12.2 32-12.2c20.6 0 38.2 13 45 31.2c8.8-9.3 21.2-15.2 35-15.2c25.3 0 46 19.5 47.9 44.3c8.5-7.7 19.8-12.3 32.1-12.3c26.5 0 48 21.5 48 48v48 16 48c0 70.7-57.3 128-128 128l-16 0H240l-.1 0h-5.2c-5 0-9.9-.3-14.7-1c-55.3-5.6-106.2-34-140-79L8 336c-13.3-17.7-9.7-42.7 8-56s42.7-9.7 56 8l56 74.7V40zM240 304c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304zm48-16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304c0-8.8-7.2-16-16-16zm80 16c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304z%27 fill=%27%23000%27 stroke=%27%23fff%27 stroke-width=%2736%27 stroke-linejoin=%27round%27 paint-order=%27stroke%27/%3E%3C/svg%3E") 16 2, pointer !important; }
html[data-pcx-cursor] body :is(input:not([type]), input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], textarea, [contenteditable="true"]) { cursor: text !important; }
