/* Every value the consent UI is built from, on every element that shows a
   piece of it. The banner is one of three: the reopen tab is another, and
   so is a generated document, which prints the same status list and the
   same button into the middle of a page. They have to resolve the same
   palette or the button on the policy is a different button from the one
   in the notice — and only the declarations belong here, never the
   layout: `.bzc` is `position: fixed`, and a document that inherited that
   became a fixed layer over the page. */
.bzc,
.bzc-revisit,
.bzc-doc {
  /* The theme maps Elementor's globals onto every button, card and text style.
     The banner reads the same variables, so it inherits the site's design rather
     than approximating it. Fallbacks match the theme's own. */
  /* Three answers, asked in order: the Elementor kit, then the theme, then
     this plugin.

     Elementor publishes only four system colours — primary, secondary, text
     and accent. The Bizibl theme publishes the rest of a palette under the
     same `--e-global-color-*` prefix (heading, background, border, muted,
     white, …), every one of them derived from those four, so naming a theme
     variable here asks the kit first and the theme second in a single step.
     The literal at the end is what a site with neither gets.

     Above all of this sits PHP: `DesignTokens` reads the kit directly and
     writes what it finds onto the element, which beats everything here. It
     writes nothing when the kit is silent, which is what lets the chain
     below run. */
  --bzc-accent: var(--e-global-color-accent, var(--e-global-color-primary, #154ff0));
  --bzc-accent-hover: var(--e-global-color-accent-hover, var(--e-global-color-secondary, #0d3fc7));
  /* The primary button's outline. Normally the fill itself, so nothing shows;
     it only differs when the kit's accent is too close to the card to have a
     visible edge, and then it is the same hue a third darker. */
  --bzc-accent-edge: var(--bzc-accent);
  --bzc-accent-ink: var(--e-global-color-white, #fff);
  --bzc-surface: var(--e-global-color-background, #fff);
  --bzc-ink: var(--e-global-color-heading, #0f172a);
  --bzc-muted: var(--e-global-color-text, #64748b);
  --bzc-line: var(--e-global-color-border, rgba(0, 0, 0, .08));
  /* Reject has to be as easy to see as Accept, and a hairline that matches the
     card border is not a button. */
  --bzc-line-strong: var(--e-global-color-muted, #94a3b8);

  --bzc-font: var(--e-global-typography-text-font-family, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  /* The heading takes `primary`, which is the slot Elementor tints headings
     with and the one the Bizibl theme maps its own h1-h6 to — asking for
     `secondary` here set the banner's title in a face no title on the page
     was using. The PHP path reads the same slot, so both agree. */
  --bzc-font-head: var(--e-global-typography-primary-font-family, var(--bzc-font));
  --bzc-font-btn: var(--e-global-typography-accent-font-family, var(--bzc-font));
  /* Body copy follows the site's body style, not its button style. Reading
     the accent size here was why the notice came out set at button size — one
     step too large for a paragraph, on every site with a kit. */
  --bzc-fs: var(--e-global-typography-text-font-size, 1rem);
  --bzc-fs-sm: calc(var(--bzc-fs) * .875);
  /* The headline is a headline: one clear step above the copy under it,
     which the accent size did not give it because it is the same size. It is
     also a notice, not a page title — the ceiling keeps a kit whose primary
     size is 3rem from setting a strip of chrome in display type. */
  --bzc-fs-title: clamp(1rem, var(--e-global-typography-primary-font-size, 1.0625rem), 1.1875rem);
  --bzc-fs-xs: calc(var(--bzc-fs) * .8125);
  /* A notice sits over somebody's page and should take as little of it as it
     can while still being read. 28px of padding and 32px between the text and
     the buttons made a strip a hand's width tall on a laptop. */
  --bzc-pad: 1.375rem;
  --bzc-gap: 1.5rem;
  --bzc-pad-btn: .875rem;
  --bzc-weight-head: var(--e-global-typography-primary-font-weight, 600);
  --bzc-weight-btn: var(--e-global-typography-accent-font-weight, 600);
  /* The rest of each style. PHP writes what the kit's Typography sets for
     the body, the h2 and the buttons; these are what is left when it is
     silent or Elementor is not there. */
  --bzc-weight: var(--e-global-typography-text-font-weight, 400);
  --bzc-style-head: var(--e-global-typography-primary-font-style, normal);
  --bzc-transform-head: var(--e-global-typography-primary-text-transform, none);
  --bzc-ls-head: var(--e-global-typography-primary-letter-spacing, -.01em);
  --bzc-style-btn: var(--e-global-typography-accent-font-style, normal);
  --bzc-transform-btn: var(--e-global-typography-accent-text-transform, none);
  --bzc-ls-btn: var(--e-global-typography-accent-letter-spacing, 0);

  --bzc-radius: 1rem;
  --bzc-radius-btn: .625rem;
  --bzc-radius-row: .75rem;
  --bzc-shadow: 0 4px 8px rgba(0, 0, 0, .06), 0 12px 24px rgba(0, 0, 0, .08);
  --bzc-transition: var(--e-global-button-transition, all .3s);
}

.bzc {
  position: fixed;
  inset-inline: 0;
  z-index: 99999;
  font-family: var(--bzc-font);
  font-size: var(--bzc-fs);
  font-weight: var(--bzc-weight);
  line-height: var(--bzc-lh, var(--e-global-typography-text-line-height, 1.6));
  /* Running text in the kit's body colour; titles set their own ink. */
  color: var(--bzc-text, var(--bzc-ink));
}

/* Anything told to hide, hides.

   Every block below sets a display of its own, and a class selector outranks
   the user-agent rule the hidden attribute relies on. That is why opening the
   preferences left the notice sitting behind the dialog: the script had set
   notice.hidden = true and .bzc-notice { display: flex } simply carried on
   winning. One rule, stated once, so no later block can reopen the hole. */
.bzc[hidden],
.bzc [hidden],
.bzc-revisit[hidden],
.bzc[data-bzc-aside][data-bzc-open="notice"] { display: none !important; }

/* The banner is dropped into somebody else's stylesheet, so it states its own
   box. Without this it inherits whatever the theme decided a paragraph, a
   button or a section should look like — on the first site this ran on, the
   theme padded every bare <section> by 6rem and the preferences panel opened
   with a hand's width of nothing above its own title. */
.bzc *,
.bzc *::before,
.bzc *::after { box-sizing: border-box; }

.bzc :where(div, p, ul, li, h1, h2, h3, h4, section, header, footer, details, summary, label, button, template) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  text-transform: none;
  letter-spacing: normal;
  min-height: 0;
  max-width: none;
  float: none;
  box-shadow: none;
}

.bzc :where(ul) { list-style: none; }
.bzc :where(button) { -webkit-appearance: none; appearance: none; }

/* Except inside a banner somebody designed in Elementor. That markup is theirs
   and the reset above would flatten it, so everything the reset touched is
   handed straight back. */
.bzc-notice--designed :where(div, p, ul, li, h1, h2, h3, h4, section, header, footer, details, summary, label, button),
.bzc-panel--designed :where(div, p, ul, li, h1, h2, h3, h4, section, header, footer, details, summary, label, button) {
  margin: revert;
  padding: revert;
  border: revert;
  background: revert;
  font: revert;
  color: revert;
  text-align: revert;
  text-transform: revert;
  letter-spacing: revert;
  min-height: revert;
  max-width: revert;
  box-shadow: revert;
}

.bzc-notice--designed :where(ul),
.bzc-panel--designed :where(ul) { list-style: revert; }
.bzc--bottom { bottom: 0; }
.bzc--top { top: 0; }

/* A notice or panel designed in Elementor paints itself: the dark and automatic themes never darken it underneath. */
.bzc.bzc--theme-dark .bzc-notice--designed,
.bzc.bzc--theme-auto .bzc-notice--designed,
.bzc .bzc-panel.bzc-panel--designed,
.bzc-revisit.bzc-revisit--designed {
  --bzc-surface: var(--bzc-light-surface, var(--e-global-color-background, #fff));
  --bzc-ink: var(--bzc-light-ink, var(--e-global-color-heading, #0f172a));
  --bzc-text: var(--bzc-light-text, var(--bzc-ink));
  --bzc-muted: var(--bzc-light-muted, var(--e-global-color-text, #64748b));
  --bzc-line: var(--bzc-light-line, var(--e-global-color-border, rgba(0, 0, 0, .08)));
  --bzc-line-strong: var(--bzc-light-line-strong, var(--e-global-color-muted, #94a3b8));
  --bzc-link: var(--bzc-light-link, var(--bzc-accent));
  --bzc-link-hover: var(--bzc-light-link-hover, var(--bzc-accent-hover));
  color: var(--bzc-text);
}

/* A panel set to light inside a notice that went dark takes the site's own colours back. */
.bzc .bzc-panel.bzc-panel--theme-light {
  --bzc-surface: var(--bzc-light-surface, var(--e-global-color-background, #fff));
  --bzc-ink: var(--bzc-light-ink, var(--e-global-color-heading, #0f172a));
  --bzc-text: var(--bzc-light-text, var(--bzc-ink));
  --bzc-muted: var(--bzc-light-muted, var(--e-global-color-text, #64748b));
  --bzc-line: var(--bzc-light-line, var(--e-global-color-border, rgba(0, 0, 0, .08)));
  --bzc-line-strong: var(--bzc-light-line-strong, var(--e-global-color-muted, #94a3b8));
  --bzc-link: var(--bzc-light-link, var(--bzc-accent));
  --bzc-link-hover: var(--bzc-light-link-hover, var(--bzc-accent-hover));
  color: var(--bzc-text);
}

/* Doubled class on purpose: the kit-inherited token override is printed as an
   inline style AFTER this file on .bzc/.bzc-revisit, and at equal specificity
   the later rule wins — which silently turned the dark theme light. These
   selectors outrank it, so the dark surface and ink survive while the accent
   tokens, which the override owns, still come through. */
.bzc.bzc--theme-dark,
.bzc-revisit.bzc--theme-dark,
.bzc .bzc-panel.bzc-panel--theme-dark {
  --bzc-surface: var(--e-global-color-dark, #14181d);
  --bzc-ink: var(--e-global-color-light, #f1f5f9);
  --bzc-muted: color-mix(in srgb, var(--bzc-ink) 80%, var(--bzc-surface));
  /* The kit's body, muted and link colours are set for a light page; on the dark card they would not read. */
  --bzc-text: var(--bzc-ink);
  --bzc-link: var(--bzc-ink);
  --bzc-link-hover: var(--bzc-muted);
  --bzc-line: rgba(255, 255, 255, .14);
  --bzc-line-strong: rgba(255, 255, 255, .38);
}

@media (prefers-color-scheme: dark) {
  .bzc.bzc--theme-auto,
  .bzc-revisit.bzc--theme-auto,
  .bzc .bzc-panel.bzc-panel--theme-auto {
    --bzc-surface: var(--e-global-color-dark, #14181d);
    --bzc-ink: var(--e-global-color-light, #f1f5f9);
    --bzc-muted: color-mix(in srgb, var(--bzc-ink) 80%, var(--bzc-surface));
    --bzc-text: var(--bzc-ink);
    --bzc-link: var(--bzc-ink);
    --bzc-link-hover: var(--bzc-muted);
    --bzc-line: rgba(255, 255, 255, .14);
    --bzc-line-strong: rgba(255, 255, 255, .38);
  }
}

.bzc-notice {
  display: flex;
  align-items: center;
  gap: var(--bzc-gap);
  flex-wrap: wrap;
  margin: 1.25rem;
  padding: var(--bzc-pad) calc(var(--bzc-pad) * 1.15);
  background: var(--bzc-surface);
  border: 1px solid var(--bzc-line);
  border-radius: var(--bzc-radius);
  box-shadow: var(--bzc-shadow);
  animation: bzc-rise .3s cubic-bezier(.2, .9, .3, 1.1);
}

.bzc--card .bzc-notice { max-width: 26rem; margin-inline-end: auto; }
.bzc--card .bzc-notice__actions { flex-wrap: nowrap; width: 100%; }
.bzc--card .bzc-notice__actions .bzc-btn { flex: 1 1 0; min-width: 0; padding-inline: .75rem !important; }
.bzc--sheet .bzc-notice { margin: 0; border-radius: 0; border-inline: 0; }
.bzc--bottom.bzc--sheet .bzc-notice { border-block-end: 0; }

/* A bar and a sheet span the page — that is what they are for, and narrowing
   them was never the fix. The hand's width of nothing that used to sit
   between the question and its answers came from a 68ch cap on the
   paragraph: the sentence stopped two thirds of the way across while the
   column holding it kept growing to the edge. The column grows and the
   sentence with it, so the buttons sit right after the wording at any
   width, with only the gap between them. */
.bzc--bar .bzc-notice,
.bzc--sheet .bzc-notice {
  column-gap: clamp(1rem, 2vw, 1.75rem);
}

.bzc-notice__text {
  flex: 1 1 22rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.bzc-notice__title {
  margin: 0 0 .3rem;
  font-family: var(--bzc-font-head);
  font-size: var(--bzc-fs-title);
  font-weight: var(--bzc-weight-head);
  font-style: var(--bzc-style-head);
  text-transform: var(--bzc-transform-head);
  line-height: var(--bzc-lh-head, 1.25);
  letter-spacing: var(--bzc-ls-head);
  color: var(--bzc-ink);
}

.bzc-notice__body {
  margin: 0;
  color: var(--bzc-muted);
  font-size: var(--bzc-fs);
  line-height: var(--bzc-lh, 1.55);
}

/* The documents, on a line of their own under the wording. Wrapping rather
   than scrolling, because on a phone this is three or four links and they
   have to all be reachable before the visitor answers. */
.bzc-notice__links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  margin: .15rem 0 0;
  font-size: var(--bzc-fs);
  line-height: var(--bzc-lh, 1.55);
}

/* The kit's link colours (Site Settings → Typography → Link), as every link on the site.
   Two classes, because the kit's own `.elementor-kit-N a` rule outranks one and would keep its light-page colour on a dark card. */
.bzc .bzc-notice__link { color: var(--bzc-link, var(--bzc-accent)); text-underline-offset: 2px; transition: var(--bzc-transition); }
.bzc .bzc-notice__link:hover,
.bzc .bzc-notice__link:focus-visible { color: var(--bzc-link-hover, var(--bzc-accent-hover)); }

.bzc-notice__actions { display: flex; gap: .625rem; flex-wrap: wrap; align-items: center; }

/* Buttons follow the theme's .btn: same padding, radius, lift and shadow. */
.bzc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--bzc-btn-pad, var(--bzc-pad-btn) calc(var(--bzc-pad-btn) * 2));
  border: 0;
  border-radius: var(--bzc-radius-btn);
  background: transparent;
  color: var(--bzc-ink);
  font-family: var(--bzc-font-btn);
  font-size: var(--bzc-fs-btn, var(--bzc-fs-sm));
  font-weight: var(--bzc-weight-btn);
  font-style: var(--bzc-style-btn);
  text-transform: var(--bzc-transform-btn);
  line-height: 1.25;
  letter-spacing: var(--bzc-ls-btn);
  cursor: pointer;
  transition: var(--bzc-transition);
  white-space: nowrap;
}

.bzc-btn--ghost {
  border: var(--bzc-btn-border-width, 2px) var(--bzc-btn-border-style, solid) var(--bzc-btn2-border, var(--bzc-line-strong));
  background: var(--bzc-btn2-bg, var(--bzc-surface));
  color: var(--bzc-btn2-ink, var(--bzc-ink));
}

.bzc-btn--ghost:hover {
  border-color: var(--bzc-btn2-border-hover, var(--bzc-accent));
  background: var(--bzc-btn2-bg-hover, var(--bzc-btn2-bg, var(--bzc-surface)));
  color: var(--bzc-btn2-ink-hover, var(--bzc-accent));
}

/* An icon button: square, no label, and otherwise a member of the family —
   the kit's button radius, the kit's button face, the ghost edge and the same
   hover. The close control used to be a bare glyph on purpose; a site that
   styles its buttons wants that styling everywhere a button appears, and one
   round grey ✕ in a panel of kit-styled buttons was the one control that did
   not belong to the site. */
.bzc-btn--icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
}

.bzc-btn--primary {
  background: var(--bzc-btn-bg, var(--bzc-accent));
  color: var(--bzc-btn-ink, var(--bzc-accent-ink));
  border: var(--bzc-btn-border-width, 2px) var(--bzc-btn-border-style, solid) var(--bzc-btn-border, var(--bzc-accent-edge));
  /* No shadow. The accent already separates this button from the two beside
     it, and a coloured drop shadow is the one thing in the dialog that cannot
     come from the kit — it read as the plugin's taste rather than the site's. */
  box-shadow: none;
}

.bzc-btn--primary:hover {
  background: var(--bzc-btn-bg-hover, var(--bzc-accent-hover));
  border-color: var(--bzc-btn-border-hover, var(--bzc-accent-hover));
  color: var(--bzc-btn-ink-hover, var(--bzc-accent-ink));
}

.bzc-btn:focus-visible { outline: 2px solid var(--e-global-color-accent, var(--bzc-accent)); outline-offset: 2px; }

/* ── Held against the theme's own reset ──────────────────────────────────
   A theme resets the bare element, and a bare element outranks a single
   class. The theme this shipped against sets `font: inherit` on every
   control and wipes background and border off every button whose class it
   does not recognise — it exempts `elementor-` and `bizibl-`, and the
   banner's classes are `bzc-`. Accept came out as black text on nothing, at
   the theme's weight, with the kit's accent applied to a background that had
   already been thrown away. None of that is visible in the rules above,
   which is the point: the paint and the type are stated once more here,
   where a reset on `button` cannot reach them, so the banner keeps the
   site's design on a theme that has never heard of it. */
.bzc .bzc-btn,
.bzc-doc .bzc-btn {
  padding: var(--bzc-btn-pad, var(--bzc-pad-btn) calc(var(--bzc-pad-btn) * 2)) !important;
  border-radius: var(--bzc-radius-btn) !important;
  font-family: var(--bzc-font-btn) !important;
  font-size: var(--bzc-fs-btn, var(--bzc-fs-sm)) !important;
  font-weight: var(--bzc-weight-btn) !important;
  font-style: var(--bzc-style-btn) !important;
  text-transform: var(--bzc-transform-btn) !important;
  letter-spacing: var(--bzc-ls-btn) !important;
  line-height: 1.25 !important;
}

/* In a document the button sits in running text and can be longer than a phone is wide at the kit's size and padding, so it wraps instead. */
.bzc-doc .bzc-btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* Width and style come from the settings and are shared; the colour is an
   override, so an untouched site keeps the edge each button derives for
   itself — the kit's hairline on a secondary, the accent's own darker line on
   the primary. The shadow tokens resolve to `none` until somebody asks. */
.bzc .bzc-btn--ghost,
.bzc-doc .bzc-btn--ghost {
  background: var(--bzc-btn2-bg, var(--bzc-surface)) !important;
  border: var(--bzc-btn-border-width, 2px) var(--bzc-btn-border-style, solid) var(--bzc-btn-border-colour, var(--bzc-btn2-border, var(--bzc-line-strong))) !important;
  color: var(--bzc-btn2-ink, var(--bzc-ink)) !important;
  box-shadow: var(--bzc-btn-shadow, none) !important;
}

.bzc .bzc-btn--ghost:hover,
.bzc-doc .bzc-btn--ghost:hover {
  border-color: var(--bzc-btn-border-colour-hover, var(--bzc-btn2-border-hover, var(--bzc-accent))) !important;
  background: var(--bzc-btn2-bg-hover, var(--bzc-btn2-bg, var(--bzc-surface))) !important;
  color: var(--bzc-btn2-ink-hover, var(--bzc-accent)) !important;
  box-shadow: var(--bzc-btn-shadow-hover, var(--bzc-btn-shadow, none)) !important;
}

.bzc .bzc-btn--primary,
.bzc-doc .bzc-btn--primary {
  background: var(--bzc-btn-bg, var(--bzc-accent)) !important;
  border: var(--bzc-btn-border-width, 2px) var(--bzc-btn-border-style, solid) var(--bzc-btn-border-colour, var(--bzc-btn-border, var(--bzc-accent-edge))) !important;
  color: var(--bzc-btn-ink, var(--bzc-accent-ink)) !important;
  box-shadow: var(--bzc-btn-shadow, none) !important;
}

.bzc .bzc-btn--primary:hover,
.bzc-doc .bzc-btn--primary:hover {
  background: var(--bzc-btn-bg-hover, var(--bzc-accent-hover)) !important;
  border-color: var(--bzc-btn-border-colour-hover, var(--bzc-btn-border-hover, var(--bzc-accent-hover))) !important;
  color: var(--bzc-btn-ink-hover, var(--bzc-accent-ink)) !important;
  box-shadow: var(--bzc-btn-shadow-hover, var(--bzc-btn-shadow, none)) !important;
}

/* The close button carries the same edge and shadow settings as the buttons it
   sits with — width, style and colour from the site's own fields — so a banner
   whose buttons have a 2px dashed edge does not have one bare ✕ that does not. */
.bzc .bzc-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: var(--bzc-surface) !important;
  border-width: var(--bzc-btn-border-width, 2px) !important;
  border-style: var(--bzc-btn-border-style, solid) !important;
  border-color: var(--bzc-btn-border-colour, var(--bzc-line)) !important;
  color: var(--bzc-muted) !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  box-shadow: var(--bzc-btn-shadow, none) !important;
}

.bzc .bzc-close:hover {
  border-color: var(--bzc-btn-border-colour-hover, var(--bzc-accent)) !important;
  color: var(--bzc-accent) !important;
  box-shadow: var(--bzc-btn-shadow-hover, var(--bzc-btn-shadow, none)) !important;
}

/* Keyboard focus keeps its ring whatever the shadow settings say: it is the
   only thing telling somebody who does not use a mouse where they are. */
.bzc .bzc-btn:focus-visible,
.bzc .bzc-close:focus-visible {
  outline: 2px solid var(--bzc-accent) !important;
  outline-offset: 2px !important;
}


/* ── Preferences panel — a dialog, not a taller bar ──────────────────
   Opening it takes over the viewport: the root stops being an edge-pinned
   strip and becomes a centred overlay, so the panel is read in the middle of
   the screen whatever layout the notice uses. */
.bzc[data-bzc-open="panel"] {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bzc-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, .55);
  animation: bzc-fade .2s ease;
}

@supports (backdrop-filter: blur(2px)) {
  .bzc-backdrop { backdrop-filter: blur(2px); }
}

html.bzc-locked { overflow: hidden; }

.bzc-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--bzc-panel-width, 40rem);
  font-size: var(--bzc-panel-fs, var(--bzc-fs));
  color: var(--bzc-text, var(--bzc-ink));
  max-height: min(82vh, 46rem);
  margin: 0 auto;
  background: var(--bzc-surface);
  border: 1px solid var(--bzc-line);
  border-radius: var(--bzc-radius);
  box-shadow: var(--bzc-shadow);
  overflow: hidden;
  animation: bzc-rise .3s cubic-bezier(.2, .9, .3, 1.1);
}

.bzc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--bzc-line);
}

/* ── The site's own mark ─────────────────────────────────────────────────
   Capped by height, never by width, so a wordmark and a square badge both
   sit on the same baseline as the text beside them instead of one of them
   being squashed to fit a box drawn for the other. */
.bzc-panel__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.bzc-logo {
  flex: none;
  width: auto;
  height: var(--bzc-logo-height, 2.5rem);
  max-width: 12rem;
  object-fit: contain;
  object-position: left center;
}

/* The mark and the title on one row, centred on each other, with the wording starting under both. */
.bzc-notice__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: 0 0 .5rem;
}

.bzc-notice__head .bzc-notice__title { margin: 0; flex: 1 1 12rem; min-width: 0; }

@media (max-width: 40rem) {
  .bzc-notice .bzc-logo { --bzc-logo-height: 2rem; }
  .bzc-panel .bzc-logo { --bzc-logo-height: 2rem; }
  /* On a phone the panel title gets the full row under the mark, so it never breaks inside a word. */
  .bzc-panel__brand { flex-wrap: wrap; row-gap: .5rem; }
  .bzc-panel__brand .bzc-panel__title { flex: 1 1 100%; }
  .bzc-panel__foot .bzc-btn { flex: 1 1 100%; }
}

.bzc-panel__title {
  margin: 0;
  font-family: var(--bzc-panel-font-head, var(--bzc-font-head));
  font-size: var(--bzc-panel-fs-title, var(--bzc-fs-title));
  font-weight: var(--bzc-panel-weight-head, var(--bzc-weight-head));
  font-style: var(--bzc-style-head);
  text-transform: var(--bzc-transform-head);
  line-height: var(--bzc-panel-lh-head, var(--bzc-lh-head, var(--bzc-lh, var(--e-global-typography-text-line-height, 1.6))));
  letter-spacing: var(--bzc-panel-ls-head, var(--bzc-ls-head));
  color: var(--bzc-ink);
}

.bzc-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

/* Same reason as the service list: the body scrolls, so its children's
   automatic minimum size is zero and a panel with several categories would
   compress each card instead of scrolling past it. */
.bzc-panel__body > * {
  flex: 0 0 auto;
}

.bzc-panel__foot {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  flex: none;
  flex-wrap: wrap;
  padding: 1.125rem 1.75rem;
  border-top: 1px solid var(--bzc-line);
  background: var(--bzc-surface);
}

/* What is left after `.bzc-btn` and `.bzc-btn--icon`: the edge, and the muted
   ink that keeps a close control from competing with the actions beside it.
   Centring is the flex box's, not inherited text alignment — a button's own
   centring is a UA default and any theme that sets `text-align` on buttons
   takes it away, which is how the × came to sit hard against the left edge of
   its own circle with 23px of nothing beside it. */
.bzc-close {
  border: 2px solid var(--bzc-line);
  background: var(--bzc-surface);
  color: var(--bzc-muted);
  text-align: center;
}

.bzc-close:hover {
  border-color: var(--bzc-accent);
  color: var(--bzc-accent);
}

/* ── Category rows ───────────────────────────────────────────────────── */
.bzc-cat {
  /* flex: none, because .bzc-panel__body is a column flex container with a
     bounded height. A flex item shrinks below its content by default, and
     these cards do not clip — so once the categories were taller than the
     panel, every card was squeezed to a fraction of its content and the text
     painted straight over the card beneath it. The body scrolls; the cards
     keep their size. */
  flex: none;

  border: 1px solid var(--bzc-line);
  border-radius: var(--bzc-radius-row);
  padding: 1rem 1.125rem;
  transition: border-color var(--bzc-transition);
}

.bzc-cat:hover { border-color: color-mix(in srgb, var(--bzc-accent) 30%, var(--bzc-line)); }
.bzc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bzc .bzc-cat__label { font-family: var(--bzc-font-head); font-size: inherit; font-weight: 600; line-height: var(--bzc-lh-head, 1.25); color: var(--bzc-ink); cursor: pointer; }
.bzc-cat__always { font-weight: 600; color: var(--bzc-muted); white-space: nowrap; }
.bzc-cat__desc { margin: .4rem 0 0; color: var(--bzc-muted); }
.bzc-cat__details { margin-top: .75rem; }

.bzc-cat__details summary {
  cursor: pointer;
  color: var(--bzc-link, var(--bzc-accent));
  font-weight: 600;
  list-style: none;
}

.bzc-cat__details summary::-webkit-details-marker { display: none; }
.bzc-cat__details summary::before { content: "＋ "; font-weight: 400; }
.bzc-cat__details[open] summary::before { content: "－ "; }

/* The list grows with its services. The panel's own body scrolls, so a category with twenty services never pushes the buttons off the screen, and no second scroll sits inside the first. */
.bzc-cat__list {
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.bzc-cat__list li {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding-bottom: .625rem;
  border-bottom: 1px solid var(--bzc-line);
}

.bzc-cat__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bzc-cat__list strong { color: var(--bzc-ink); font-weight: 600; }
.bzc-cat__list span { color: var(--bzc-muted); }

.bzc-cat__count {
  margin-inline-start: .5rem;
  font-weight: 600;
  color: var(--bzc-muted);
}

/* ── Switch ──────────────────────────────────────────────────────────── */
.bzc-switch { position: relative; flex: none; width: 2.75rem; height: 1.625rem; }
.bzc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }

/* Off is a state, not an absence. --bzc-line is the card's hairline: a switch
   painted in it reads as an empty rounded box rather than as a control that
   is currently refused. */
.bzc-switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--bzc-line-strong);
  transition: background-color var(--bzc-transition);
}

.bzc-switch__track::after {
  content: "";
  position: absolute;
  top: .1875rem;
  left: .1875rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--e-global-color-white, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform var(--bzc-transition);
}

.bzc-switch input:checked + .bzc-switch__track { background: var(--bzc-accent); }
.bzc-switch input:checked + .bzc-switch__track::after { transform: translateX(1.125rem); }
.bzc-switch input:focus-visible + .bzc-switch__track { outline: 2px solid var(--bzc-accent); outline-offset: 2px; }

.bzc-embed {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  background: color-mix(in srgb, currentColor 5%, transparent);
  border: 1px dashed rgba(120, 130, 145, .5);
  border-radius: 12px;
  text-align: center;
}
.bzc-embed__panel { max-width: 420px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bzc-embed__title { margin: 0; font-weight: 700; }
.bzc-embed__body { margin: 0; opacity: .75; font-size: 13.5px; }
.bzc-embed__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.bzc-embed__note { margin: 2px 0 0; font-size: 12px; opacity: .6; }
.bzc-embed .bzc-btn { font-family: inherit; }

@keyframes bzc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bzc-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .bzc-notice, .bzc-panel, .bzc-backdrop { animation: none; }
  .bzc-btn, .bzc-switch__track, .bzc-switch__track::after { transition: none; }
}

@media (max-width: 640px) {
  .bzc-notice { margin: 10px; padding: 16px; gap: 14px; }
  .bzc-notice__actions { width: 100%; }
  .bzc-notice__actions .bzc-btn { flex: 1 1 auto; }
  .bzc[data-bzc-open="panel"] { padding: .625rem; }
  .bzc-panel { max-height: 88vh; }
}

.bzc-revisit {
  position: fixed;
  bottom: var(--bzc-revisit-offset, 16px);
  /* Above the page, below full-screen layers (popups, menu sheets, lightboxes at 9999) */
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--bzc-revisit-shadow, 0 6px 20px rgba(15, 23, 42, .14));
  transition: var(--bzc-transition);
}

.bzc-revisit--left { left: var(--bzc-revisit-offset, 16px); }
.bzc-revisit--right { right: var(--bzc-revisit-offset, 16px); }
.bzc-revisit:focus-visible { outline: 2px solid var(--bzc-accent); outline-offset: 2px; }
.bzc-revisit svg { flex: none; }

/* The kit's button, held against the theme's reset like the notice's own, with the corner's lift kept. */
.bzc-revisit.bzc-btn {
  padding: var(--bzc-btn-pad, var(--bzc-pad-btn) calc(var(--bzc-pad-btn) * 2)) !important;
  border-radius: var(--bzc-radius-btn) !important;
  font-family: var(--bzc-font-btn) !important;
  font-size: var(--bzc-fs-btn, var(--bzc-fs-sm)) !important;
  font-weight: var(--bzc-weight-btn) !important;
  line-height: 1.25 !important;
  letter-spacing: var(--bzc-ls-btn) !important;
  text-transform: var(--bzc-transform-btn) !important;
  transition: var(--bzc-transition) !important;
}

.bzc-revisit.bzc-btn--primary {
  background: var(--bzc-btn-bg, var(--bzc-accent)) !important;
  border: var(--bzc-btn-border-width, 2px) var(--bzc-btn-border-style, solid) var(--bzc-btn-border-colour, var(--bzc-btn-border, var(--bzc-accent-edge))) !important;
  color: var(--bzc-btn-ink, var(--bzc-accent-ink)) !important;
}

.bzc-revisit.bzc-btn--primary:hover {
  background: var(--bzc-btn-bg-hover, var(--bzc-accent-hover)) !important;
  border-color: var(--bzc-btn-border-colour-hover, var(--bzc-btn-border-hover, var(--bzc-accent-hover))) !important;
  color: var(--bzc-btn-ink-hover, var(--bzc-accent-ink)) !important;
}

.bzc-revisit.bzc-btn--ghost {
  background: var(--bzc-btn2-bg, var(--bzc-surface)) !important;
  border: var(--bzc-btn-border-width, 2px) var(--bzc-btn-border-style, solid) var(--bzc-btn-border-colour, var(--bzc-btn2-border, var(--bzc-line-strong))) !important;
  color: var(--bzc-btn2-ink, var(--bzc-ink)) !important;
}

.bzc-revisit.bzc-btn--ghost:hover {
  background: var(--bzc-btn2-bg-hover, var(--bzc-btn2-bg, var(--bzc-surface))) !important;
  border-color: var(--bzc-btn-border-colour-hover, var(--bzc-btn2-border-hover, var(--bzc-accent))) !important;
  color: var(--bzc-btn2-ink-hover, var(--bzc-accent)) !important;
}

.bzc-revisit.bzc-btn { box-shadow: var(--bzc-revisit-shadow, 0 6px 20px rgba(15, 23, 42, .14)) !important; }
.bzc-revisit.bzc-btn:hover { box-shadow: var(--bzc-revisit-shadow-hover, 0 10px 26px rgba(15, 23, 42, .18)) !important; }

/* An icon alone: a round button the height of the others, named for screen readers by its label. */
.bzc-revisit--icon.bzc-btn { width: 3.25rem; height: 3.25rem; padding: 0 !important; justify-content: center; }
.bzc-revisit--icon .bzc-revisit__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A designed return button paints itself; the corner only places it. */
.bzc-revisit--designed { padding: 0; border: 0; background: none; box-shadow: none; }

.bzc-revisit.bzc--theme-dark { --bzc-surface: var(--e-global-color-dark, #14181d); --bzc-ink: #f1f5f9; --bzc-line: rgba(255, 255, 255, .14); }

@media (prefers-color-scheme: dark) {
  .bzc-revisit.bzc--theme-auto { --bzc-surface: var(--e-global-color-dark, #14181d); --bzc-ink: #f1f5f9; --bzc-line: rgba(255, 255, 255, .14); }
}

/* On a phone a button with an icon keeps the icon alone, so it covers less of the page. */
@media (max-width: 640px) {
  .bzc-revisit--has-icon .bzc-revisit__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bzc-revisit--has-icon.bzc-btn { width: 3.25rem; height: 3.25rem; padding: 0 !important; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bzc-revisit, .bzc-revisit.bzc-btn { transition: none !important; }
}

.bzc-notice--designed { display: block; padding: 0; }

/* A designed panel keeps its header and footer in view: the part holding the categories is what scrolls, so an expanded list never pushes the buttons out of reach. */
.bzc .bzc-panel--designed { display: flex; flex-direction: column; }
.bzc-panel--designed > .elementor { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.bzc-panel--designed > .elementor > .e-con { flex: 1 1 auto; min-height: 0; max-height: 100%; }
.bzc-panel--designed > .elementor > .e-con > :where(.e-con, .elementor-element) { flex-shrink: 0; }
.bzc-panel--designed > .elementor > .e-con > .e-con:has(.bzc-el-categories) { flex: 1 1 auto; flex-shrink: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }





.bzc-el-categories { display: flex; flex-direction: column; gap: 14px; position: static; font-size: inherit; }
.bzc-el-categories .bzc-cat { background: transparent; }

.bzc-el-settings {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bzc-el-settings--button {
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: var(--bzc-radius, 12px);
}

.bzc-el-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── Layout: centred modal ─────────────────────────────────────────── */
.bzc--modal {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
  overflow-y: auto;
}

.bzc--modal .bzc-notice {
  max-width: 560px;
  margin: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.bzc--modal .bzc-notice__actions { justify-content: flex-end; }

/* ── Layout: corner widget ─────────────────────────────────────────── */
.bzc--corner { inset-inline: auto; }
.bzc--corner.bzc--bottom { bottom: 16px; left: 16px; }
.bzc--corner.bzc--top { top: 16px; left: 16px; }

.bzc--corner .bzc-notice {
  max-width: 340px;
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.bzc--corner .bzc-notice__actions { justify-content: stretch; }
.bzc--corner .bzc-notice__actions .bzc-btn { flex: 1; justify-content: center; }

/* `flex-basis` measures the main axis, and these two layouts turn the main
   axis on its side. `.bzc-notice__text` asks for `1 1 22rem` so the wording
   keeps a sensible column width on a wide bar — read down a stacked card that
   same 22rem becomes a 352px tall text block, which is where the hand's width
   of nothing between the wording and the buttons came from. */
.bzc--corner .bzc-notice__text,
.bzc--modal .bzc-notice__text { flex: 0 1 auto; }

.bzc--corner .bzc-notice__links,
.bzc--modal .bzc-notice__links { gap: .2rem .75rem; }

/* ── Embedded consent block ────────────────────────────────────────── */
.bzc-embedded {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--bzc-line);
  border-radius: var(--bzc-radius);
  background: var(--bzc-surface);
  font-size: inherit;
}

.bzc-embedded__title { margin: 0 0 4px; font-family: var(--bzc-font-head); font-weight: var(--bzc-weight-head); font-style: var(--bzc-style-head); text-transform: var(--bzc-transform-head); line-height: var(--bzc-lh-head, var(--bzc-lh, var(--e-global-typography-text-line-height, 1.6))); letter-spacing: var(--bzc-ls-head); }
.bzc-embedded__body { margin: 0; color: var(--bzc-muted); }
.bzc-embedded__choices { display: flex; flex-direction: column; gap: 12px; }
.bzc-embedded__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Floating consent control (widget) ─────────────────────────────── */
.bzc-el-settings--floating {
  position: fixed;
  bottom: 16px;
  z-index: 9990;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .14);
  border-radius: 999px;
  background: var(--bzc-surface, #fff);
  padding: 10px 18px;
}

.bzc-el-settings--floating.bzc-el-settings--left { left: 16px; }
.bzc-el-settings--floating.bzc-el-settings--right { right: 16px; }

/* ── Consent status ────────────────────────────────────────────────── */
.bzc-status { --bzc-status-on: var(--e-global-color-success, #17945c); --bzc-status-off: var(--e-global-color-muted, #94a3b8); }
.bzc-status__summary { margin: 0 0 12px; }
.bzc-status__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bzc-status__item { display: flex; align-items: center; gap: 10px; }

.bzc-status__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bzc-status-off);
}

.bzc-status__item[data-bzc-state="on"] .bzc-status__dot { background: var(--bzc-status-on); }
.bzc-status__label { flex: 1; }
.bzc-status__actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }

/* ── Cookie presentation templates ─────────────────────────────────── */
.bzc-cookies { --bzc-doc-line: rgba(127, 127, 127, .28); }
.bzc-cookies__scroll { overflow-x: auto; }

.bzc-cookies__table {
  width: 100%;
  border-collapse: collapse;
}

.bzc-cookies__table th,
.bzc-cookies__table td {
  padding: .6em .75em;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--bzc-doc-line);
}

.bzc-cookies__table th { font-weight: 600; white-space: nowrap; }
.bzc-cookies__table code { font: inherit; word-break: break-word; }

.bzc-cookies__group + .bzc-cookies__group { margin-top: 2em; }
.bzc-cookies__group-title { margin: 0 0 .35em; }
.bzc-cookies__group-desc { margin: 0 0 1em; opacity: .8; }

.bzc-cookies__cards { display: grid; gap: 1em; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.bzc-cookies__card {
  padding: 1.1em 1.25em;
  border: 1px solid var(--bzc-doc-line);
  border-radius: 12px;
}

.bzc-cookies__name { margin: 0 0 .3em; }
.bzc-cookies__provider { margin: 0 0 .5em; opacity: .75; }
.bzc-cookies__purpose { margin: 0 0 .8em; }
.bzc-cookies__list { margin: 0; }
.bzc-cookies__list dt { display: flex; justify-content: space-between; gap: 1em; font-weight: 600; margin-top: .6em; }
.bzc-cookies__list dt span { font-weight: 400; opacity: .7; white-space: nowrap; }
.bzc-cookies__list dd { margin: .15em 0 0; opacity: .8; }
.bzc-cookies__link { margin: .9em 0 0; }

.bzc-cookies__panel {
  border: 1px solid var(--bzc-doc-line);
  border-radius: 12px;
  padding: .9em 1.1em;
}

.bzc-cookies__panel + .bzc-cookies__panel { margin-top: .6em; }
.bzc-cookies__summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; cursor: pointer; }
.bzc-cookies__summary .bzc-cookies__group-title { margin: 0; font-size: 1em; font-weight: 700; }
.bzc-cookies__count { opacity: .7; white-space: nowrap; }
.bzc-cookies__panel .bzc-cookies__group-desc { margin: .8em 0; }

/* A placeholder that stands in front of a widget rather than replacing it:
   the widget stays in the document, emptied of the attribute its own script
   reads, so restoring it is a rename rather than a rebuild. */
.bzc-embed--sibling { margin-bottom: 1rem; }
.bzc-embed--sibling + .elementor-widget,
.bzc-embed--sibling + [data-bzc-elementor] { display: none; }

/* ── Company detail (Elementor widget) ───────────────────────────────────
   One legal fact, placed wherever a page needs it. Deliberately almost
   unstyled: it inherits the surrounding typography so a VAT number in a
   footer looks like the footer, not like this plugin. */
.bzc-company { margin: 0; }
.bzc-company__label { font-weight: 600; }
.bzc-company__value { font-variant-numeric: tabular-nums; }
.bzc-company--address .bzc-company__value { display: block; }

/* ── Compliance links (Elementor widget) ──────────────────────────────────
   The footer row of policy pages. A button sits in it beside real links and
   has to be indistinguishable from them, which means undoing everything a
   theme's button rules do to it. */
.bzc-el-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.25rem;
}

.bzc-el-links--list { flex-direction: column; align-items: flex-start; }

.bzc-el-links__item {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bzc-el-links__item--button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
}

.bzc-el-links__item:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bzc-el-links__sep { opacity: .5; padding-inline: .5rem; }
.bzc-el-links--inline .bzc-el-links__sep + .bzc-el-links__item { margin-inline-start: 0; }

/* ── Third parties (Elementor widget) ─────────────────────────────────────
   A disclosure list, not a card grid: it is read once, in order, by somebody
   checking whether a named company is on it. */
.bzc-el-providers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bzc-el-providers__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.bzc-el-providers__name { font-weight: 600; }
.bzc-el-providers__provider { opacity: .75; }

.bzc-el-providers__category {
  font-size: .8125em;
  padding: .1em .5em;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .6;
}

.bzc-el-providers__purpose { flex: 1 0 100%; opacity: .85; }
.bzc-el-providers__link { flex: 0 0 auto; text-underline-offset: 2px; }
.bzc-el-providers__empty { margin: 0; opacity: .85; }

/* ── Consent gate (Elementor widget) ──────────────────────────────────────
   The panel stands in for content of any height, so unlike an embed
   placeholder it has no aspect ratio to borrow and centres itself instead. */
.bzc-embed--gate { display: block; }

.bzc-embed--gate .bzc-embed__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .75rem;
  min-height: 180px;
}
