/* Cookie Banner Pro – frontend styles */

#cbp-root { position: relative; z-index: 1000 !important; }

.cbp-banner {
  position: fixed;
  background: var(--cbp-bg, #fff);
  color: var(--cbp-text, #0f172a);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 20px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--cbp-body-size, 14px);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  z-index: 1000 !important;
}

.cbp-layout-bottom-right { bottom: 20px; right: 20px; left: auto; max-width: 320px; display: block; }
.cbp-layout-bottom-left  { bottom: 20px; left: 20px; right: auto; max-width: 320px; display: block; }
.cbp-layout-modal  {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  max-width: 560px;
  display: block;
}

.cbp-theme-dark {
  --cbp-bg: #0f172a;
  --cbp-text: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  .cbp-theme-auto {
    --cbp-bg: #0f172a;
    --cbp-text: #e2e8f0;
  }
}

/* ── Skin presets ────────────────────────────────────────────────────────── */
/* Classic — crisp flat white with a clean hairline border. */
.cbp-banner.cbp-skin-classic,
.cbp-modal.cbp-skin-classic {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

/* Soft — pastel gradient with a diffuse, pillowy shadow. */
.cbp-banner.cbp-skin-soft,
.cbp-modal.cbp-skin-soft {
  background: linear-gradient(155deg, #ffffff 0%, #eef1fb 55%, #e7ecf9 100%);
  border: 1px solid rgba(129, 140, 248, 0.30);
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.20), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.cbp-banner.cbp-skin-soft .cbp-inline-prefs,
.cbp-modal.cbp-skin-soft .cbp-cat-row {
  background: rgba(255, 255, 255, 0.66);
}

/* Glass — heavily frosted, translucent panel with a glossy edge. */
.cbp-banner.cbp-skin-glass,
.cbp-modal.cbp-skin-glass {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.cbp-banner.cbp-skin-glass .cbp-inline-prefs,
.cbp-modal.cbp-skin-glass .cbp-cat-row {
  background: rgba(255, 255, 255, 0.45);
}

/* Midnight — deep gradient with a soft blue glow halo. */
.cbp-banner.cbp-skin-midnight,
.cbp-modal.cbp-skin-midnight {
  --cbp-bg: #0b1220;
  --cbp-text: #e2e8f0;
  --cbp-primary: #60a5fa;
  background: linear-gradient(160deg, #0b1220 0%, #16213b 100%);
  color: #e2e8f0;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.72), 0 0 0 1px rgba(96, 165, 250, 0.12), 0 0 40px rgba(37, 99, 235, 0.18);
}
.cbp-banner.cbp-skin-midnight .cbp-link,
.cbp-modal.cbp-skin-midnight .cbp-link {
  color: #93c5fd;
}
.cbp-banner.cbp-skin-midnight .cbp-btn-secondary,
.cbp-modal.cbp-skin-midnight .cbp-btn-secondary {
  border-color: rgba(148, 163, 184, 0.75);
  color: #e2e8f0;
}
.cbp-banner.cbp-skin-midnight .cbp-btn-secondary:hover,
.cbp-modal.cbp-skin-midnight .cbp-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.16);
}
.cbp-banner.cbp-skin-midnight .cbp-inline-prefs,
.cbp-modal.cbp-skin-midnight .cbp-cat-row {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
}
.cbp-banner.cbp-skin-midnight .cbp-cat-required,
.cbp-modal.cbp-skin-midnight .cbp-cat-required {
  background: rgba(148, 163, 184, 0.18);
}

.cbp-pref-fab.cbp-skin-soft {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}
.cbp-pref-fab.cbp-skin-glass {
  background: rgba(37, 99, 235, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cbp-pref-fab.cbp-skin-midnight {
  background: #1d4ed8;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.cbp-banner.cbp-text-align-left,
.cbp-modal.cbp-text-align-left {
  text-align: left;
}
.cbp-banner.cbp-text-align-right,
.cbp-modal.cbp-text-align-right {
  text-align: right;
}

.cbp-body { flex: 1 1 460px; min-width: 0; }
.cbp-title { margin: 0 0 6px; font-size: var(--cbp-title-size, 16px); font-weight: 600; }
.cbp-message { margin: 0; color: inherit; opacity: 0.9; font-size: var(--cbp-body-size, 14px); }
.cbp-links { margin-top: 8px; font-size: 13px; opacity: 0.85; }
.cbp-link { color: var(--cbp-primary); text-decoration: underline; }

.cbp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.cbp-actions--triad .cbp-btn {
  flex: 1 1 calc(33.333% - 8px);
  justify-content: center;
}

.cbp-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 40px;
  transition: background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}
.cbp-btn:focus-visible {
  outline: 2px solid var(--cbp-btn-color, var(--cbp-primary));
  outline-offset: 2px;
}
.cbp-btn-primary {
  background: var(--cbp-btn-color, var(--cbp-primary));
  color: #fff;
}
.cbp-btn-primary:hover { opacity: 0.92; }
.cbp-btn-secondary {
  border-color: currentColor;
}
/* Secondary hover was rgba(0,0,0,.05) - about a 2% luminance shift on white,
 * which the client reported as not visibly changing at all. Deepened to a gray
 * that reads clearly on the light background while leaving the label at its
 * original colour, so contrast against the text only improves. The border is
 * darkened with it: on an outline button the fill alone is easy to miss. */
.cbp-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.45);
}
.cbp-btn-secondary:active { background: rgba(15, 23, 42, 0.2); }
.cbp-btn-link {
  text-decoration: underline;
  color: var(--cbp-primary);
  padding-left: 4px;
  padding-right: 4px;
}

/* Preferences modal */
.cbp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cbp-modal {
  background: var(--cbp-bg, #fff);
  color: var(--cbp-text, #0f172a);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--cbp-body-size, 14px);
}
.cbp-cat-list {
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cbp-cat-row {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
}
.cbp-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.cbp-cat-name { font-weight: 600; cursor: pointer; }
.cbp-cat-desc { margin: 4px 0 0; opacity: 0.85; font-size: 13px; }
.cbp-cat-required {
  font-size: 12px;
  opacity: 0.7;
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}
.cbp-cat-toggle {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: background 160ms ease;
  vertical-align: middle;
}
.cbp-cat-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease;
}
.cbp-cat-toggle:checked {
  background: var(--cbp-btn-color, var(--cbp-primary, #2563eb));
}
.cbp-cat-toggle:checked::after {
  transform: translateX(20px);
}
.cbp-cat-toggle:focus-visible {
  outline: 2px solid var(--cbp-btn-color, var(--cbp-primary, #2563eb));
  outline-offset: 2px;
}
/* Required category: always ON, not interactive */
.cbp-cat-toggle--locked {
  cursor: default;
  opacity: 0.65;
}

/* Floating prefs button */
.cbp-pref-fab {
  position: fixed;
  background: var(--cbp-primary, #2563eb);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  /* Must stay below #cbp-root (1000) so an opened preferences modal/banner covers it. */
  z-index: 998;
}
.cbp-fab-bottom-right  { bottom: var(--cbp-fab-y, 20px); right: var(--cbp-fab-x, 20px); left: auto;  top: auto; }
.cbp-fab-bottom-left   { bottom: var(--cbp-fab-y, 20px); left:  var(--cbp-fab-x, 20px); right: auto; top: auto; }
.cbp-fab-bottom-center { bottom: var(--cbp-fab-y, 20px); left: 50%; transform: translateX(-50%); right: auto; top: auto; }
.cbp-fab-top-right     { top: var(--cbp-fab-y, 20px);    right: var(--cbp-fab-x, 20px); left: auto;  bottom: auto; }
.cbp-fab-top-left      { top: var(--cbp-fab-y, 20px);    left:  var(--cbp-fab-x, 20px); right: auto; bottom: auto; }
.cbp-fab-top-center    { top: var(--cbp-fab-y, 20px);    left: 50%; transform: translateX(-50%); right: auto; bottom: auto; }
.cbp-pref-fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 640px) {
  .cbp-layout-bottom-right,
  .cbp-layout-bottom-left {
    left: 8px;
    right: 8px;
    max-width: none;
    bottom: 8px;
  }
  .cbp-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .cbp-actions { justify-content: stretch; }
  .cbp-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cbp-btn,
  .cbp-accordion-toggle,
  .cbp-placeholder-accept { transition: none; }
  .cbp-anim-slide,
  .cbp-anim-fade { animation: none !important; }
}

/* ── Per-cookie accordion ────────────────────────────────────────────────── */
.cbp-cat-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cbp-accordion-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: inherit;
  opacity: 0.6;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease;
  line-height: 1;
}
.cbp-accordion-toggle.cbp-accordion-open {
  transform: rotate(90deg);
}
.cbp-cat-detail {
  margin-top: 8px;
}
.cbp-cat-desc-inline {
  margin: 6px 0 0;
}
.cbp-cookie-table {
  margin-top: 8px;
  font-size: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 6px;
  overflow: hidden;
}
.cbp-cookie-row {
  display: grid;
  grid-template-columns: 1fr 2fr 80px;
  gap: 0 8px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.cbp-cookie-row:last-child { border-bottom: none; }
.cbp-cookie-header {
  background: rgba(15, 23, 42, 0.05);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cbp-cookie-name     { font-weight: 500; word-break: break-all; }
.cbp-cookie-desc     { opacity: 0.85; }
.cbp-cookie-duration { opacity: 0.75; text-align: right; }

/* ── Modal header with close button ──────────────────────────────────────── */
.cbp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.cbp-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.cbp-modal-close:hover { opacity: 1; }
.cbp-modal-close:focus-visible {
  outline: 2px solid var(--cbp-primary);
  outline-offset: 2px;
}
.cbp-pref-actions {
  margin-top: 16px;
  justify-content: flex-end;
}
.cbp-consent-id {
  margin: 10px 0 0;
  font-size: 11px;
  opacity: 0.6;
  user-select: text;
}
.cbp-consent-id code {
  font-size: 11px;
  user-select: text;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
/* 40px was too small to read: a real client logo rendered as an unidentifiable
 * thumbnail — in testing the site owner did not recognise their own logo and
 * took it for an unexplained new button. `contain` still letterboxes a wide
 * logo inside the box, so this is a floor on legibility, not a forced crop. */
.cbp-logo {
  display: block;
  width: var(--cbp-logo-size, 56px);
  height: var(--cbp-logo-size, 56px);
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* ── Button size variants ────────────────────────────────────────────────── */
.cbp-btn-sz-small  { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.cbp-btn-sz-medium { padding: 10px 16px; min-height: 40px; }

/* ── Button corner variants ──────────────────────────────────────────────── */
.cbp-btn-corner-sharp   { border-radius: 2px; }
.cbp-btn-corner-rounded { border-radius: 8px; }
.cbp-btn-corner-pill    { border-radius: 999px; }

/* ── Button type variants ────────────────────────────────────────────────── */
/* filled (default) — already handled by .cbp-btn-primary/.cbp-btn-secondary */
.cbp-btn-type-outline.cbp-btn-primary {
  background: transparent;
  color: var(--cbp-btn-color, var(--cbp-primary));
  border-color: var(--cbp-btn-color, var(--cbp-primary));
}
.cbp-btn-type-outline.cbp-btn-primary:hover {
  background: var(--cbp-btn-color, var(--cbp-primary));
  color: #fff;
}
.cbp-btn-type-outline.cbp-btn-secondary {
  border-color: var(--cbp-text, #0f172a);
  opacity: 0.8;
}

/* ── Floating button icon ────────────────────────────────────────────────── */
.cbp-pref-fab svg {
  display: block;
  pointer-events: none;
}

/* ── New banner layouts ──────────────────────────────────────────────────── */
/* Dynamic radius from PHP config */
.cbp-banner { border-radius: var(--cbp-radius, 12px); }
.cbp-modal   { border-radius: var(--cbp-radius, 12px); }

/* Top bar — full width at top */
.cbp-layout-top-bar {
  top: 0; left: 0; right: 0; bottom: auto;
  width: 100%; max-width: 100%;
  border-radius: 0 0 var(--cbp-radius, 12px) var(--cbp-radius, 12px);
  transform: none;
}
/* Bottom bar — full width at bottom */
.cbp-layout-bottom-bar {
  bottom: 0; left: 0; right: 0; top: auto;
  width: 100%; max-width: 100%;
  border-radius: var(--cbp-radius, 12px) var(--cbp-radius, 12px) 0 0;
  transform: none;
}
.cbp-layout-bottom-bar .cbp-body,
.cbp-layout-top-bar    .cbp-body {
  max-width: 900px; margin: 0 auto;
}
.cbp-layout-bottom-bar .cbp-actions,
.cbp-layout-top-bar    .cbp-actions {
  flex-direction: row; gap: 8px;
}

/* ── Animation ───────────────────────────────────────────────────────────── */
@keyframes cbp-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes cbp-slide-down {
  from { transform: translateY(-40px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes cbp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cbp-anim-slide.cbp-layout-top-bar { animation: cbp-slide-down 300ms cubic-bezier(0.22,1,0.36,1) both; }
.cbp-anim-slide.cbp-layout-modal { animation: cbp-fade-in 220ms ease both; }
.cbp-anim-slide:not(.cbp-layout-top-bar):not(.cbp-layout-modal) { animation: cbp-slide-up 300ms cubic-bezier(0.22,1,0.36,1) both; }
.cbp-anim-fade  { animation: cbp-fade-in 280ms ease both; }

/* ── Shadow variants ─────────────────────────────────────────────────────── */
.cbp-shadow-soft   { box-shadow: 0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06); }
.cbp-shadow-strong { box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.12); }

/* ── Button large size ───────────────────────────────────────────────────── */
.cbp-btn-sz-large { padding: 13px 22px; min-height: 48px; font-size: 15px; }

/* ── Button ghost type ───────────────────────────────────────────────────── */
.cbp-btn-type-ghost.cbp-btn-primary   { background: transparent; color: var(--cbp-btn-color, var(--cbp-primary)); border-color: transparent; }
.cbp-btn-type-ghost.cbp-btn-secondary { background: transparent; color: var(--cbp-text); border-color: transparent; opacity: 0.7; }
.cbp-btn-type-ghost.cbp-btn-primary:hover { background: rgba(37,99,235,.08); }

/* ── Floating button shape variants ─────────────────────────────────────── */
.cbp-fab-shape-circle  { border-radius: 50%;   aspect-ratio: 1; }
.cbp-fab-shape-rounded { border-radius: 12px; }
.cbp-fab-shape-pill    { border-radius: 999px; }

/* ── Floating button size variants ──────────────────────────────────────── */
.cbp-fab-sz-small  { width: 40px; height: 40px; }
.cbp-fab-sz-medium { width: 52px; height: 52px; }
.cbp-fab-sz-large  { width: 64px; height: 64px; }
.cbp-fab-shape-pill.cbp-fab-sz-small  { width: auto; height: 36px; padding: 0 14px; aspect-ratio: auto; }
.cbp-fab-shape-pill.cbp-fab-sz-medium { width: auto; height: 44px; padding: 0 18px; aspect-ratio: auto; }
.cbp-fab-shape-pill.cbp-fab-sz-large  { width: auto; height: 54px; padding: 0 22px; aspect-ratio: auto; }
.cbp-fab-shape-rounded.cbp-fab-sz-small  { aspect-ratio: auto; padding: 0 14px; height: 40px; width: auto; }
.cbp-fab-shape-rounded.cbp-fab-sz-medium { aspect-ratio: auto; padding: 0 18px; height: 48px; width: auto; }
.cbp-fab-shape-rounded.cbp-fab-sz-large  { aspect-ratio: auto; padding: 0 22px; height: 58px; width: auto; }

/* Floating button label text */
.cbp-fab-label { font-size: 13px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.cbp-fab-shape-circle .cbp-fab-label { display: none; }

/* ── Content placeholders ────────────────────────────────────────────────── */
.cbp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cbp-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  text-align: center;
}
.cbp-placeholder-text {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  max-width: 360px;
}
.cbp-placeholder-accept {
  appearance: none;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 120ms ease;
}
.cbp-placeholder-accept:hover { opacity: 0.88; }
.cbp-placeholder-accept:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

/* Card variant — adds shadow */
.cbp-placeholder--card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Branded variant — uses site primary colour via CSS var if available */
.cbp-placeholder--branded {
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.cbp-placeholder--branded .cbp-placeholder-accept {
  background: var(--cbp-btn-color, var(--cbp-primary, #2563eb));
}

/* ── Banner title (H3) ──────────────────────────────────────────────────── */
.cbp-banner-title {
  margin: 0 0 8px;
  font-size: var(--cbp-title-size, 18px);
  font-weight: 700;
  color: var(--cbp-text, #1f2937);
  line-height: 1.3;
}

/* ── Top accent bar ─────────────────────────────────────────────────────── */
.cbp-banner::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--cbp-primary, #3b82f6);
  border-radius: var(--cbp-radius, 8px) var(--cbp-radius, 8px) 0 0;
  margin: -20px -24px 16px;
}

/* ── Privacy acceptance checkbox ────────────────────────────────────────── */
.cbp-privacy-acceptance {
  margin: 12px 0;
  padding: 12px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 8px;
}
.cbp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.cbp-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--cbp-btn-color, var(--cbp-primary, #3b82f6));
  cursor: pointer;
}
.cbp-checkbox-text {
  font-size: 13px;
  font-weight: 500;
  color: #1e40af;
  line-height: 1.4;
}
.cbp-privacy-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
}
.cbp-privacy-link:hover { color: #1e3a8a; text-decoration: none; }

/* Disable/dim accept button until checkbox is ticked */
#cbp-accept-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Inline preferences panel ───────────────────────────────────────────── */
.cbp-inline-prefs {
  margin: 12px 0 4px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.cbp-inline-prefs fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.cbp-inline-prefs legend {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  padding: 0;
}
.cbp-inline-prefs .cbp-cat-row {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.cbp-inline-prefs .cbp-cat-row:last-child { margin-bottom: 0; }
.cbp-inline-prefs .cbp-cat-head {
  margin-bottom: 0;
}
.cbp-inline-prefs .cbp-cat-name { font-size: 14px; }
.cbp-inline-prefs .cbp-cat-desc { font-size: 12px; }

/* ── Wider bottom-right/left banner (matches zoaretzpituach 380px) ───────── */
.cbp-layout-bottom-right,
.cbp-layout-bottom-left { max-width: 380px; }

/* ── Small-screen cookie detail layout ───────────────────────────────────── */
@media (max-width: 480px) {
  .cbp-cookie-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .cbp-cookie-duration { text-align: left; }
}

/* ── GPC notice (rendered outside shadow DOM) ────────────────────────────── */
.cbp-gpc-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  /* Above the FAB (998) but below #cbp-root (1000) so an opened modal covers it. */
  z-index: 999;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cbp-gpc-notice-text {
  font-size: 13px;
  line-height: 1.4;
}
.cbp-gpc-notice-link,
.cbp-gpc-notice-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  min-height: 34px;
  padding: 4px 10px;
  cursor: pointer;
}
.cbp-gpc-notice-link { white-space: nowrap; }
.cbp-gpc-notice-close {
  min-width: 34px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 480px) {
  .cbp-gpc-notice {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ── Dark theme (Theme = Dark, or Auto on a dark-preference device) ───────
 * --cbp-bg / --cbp-text are resolved in banner.js (see effectiveBackground()),
 * because they're written as an inline style that a class rule here could never
 * beat. What's left are the surfaces and borders that aren't expressed as those
 * two variables and would otherwise stay light-on-dark: secondary button
 * outlines, links, category rows, and the agreement notice.
 */
/* The skin presets set `background` (and sometimes `color`) as literal values at
 * .cbp-banner.cbp-skin-* specificity, which outranks the base rule that reads
 * --cbp-bg. Without this the dark palette resolved correctly and the card still
 * came out white. The :not() raises specificity above the skin rules and spares
 * Midnight, which is a dark skin already and keeps its own gradient. */
.cbp-banner.cbp-is-dark:not(.cbp-skin-midnight),
.cbp-modal.cbp-is-dark:not(.cbp-skin-midnight) {
  background: var(--cbp-bg, #0f172a);
  color: var(--cbp-text, #e2e8f0);
  border-color: rgba(148, 163, 184, 0.28);
}

.cbp-is-dark .cbp-link,
.cbp-is-dark .cbp-btn-link { color: #93c5fd; }
.cbp-is-dark .cbp-btn-secondary { border-color: rgba(148, 163, 184, 0.75); }
.cbp-is-dark .cbp-btn-secondary:hover { background: rgba(148, 163, 184, 0.16); }
.cbp-is-dark .cbp-inline-prefs,
.cbp-is-dark .cbp-cat-row,
.cbp-is-dark .cbp-cookie-table {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
}
.cbp-is-dark .cbp-cat-required { background: rgba(148, 163, 184, 0.18); }
.cbp-is-dark .cbp-privacy-acceptance {
  background: rgba(30, 64, 175, 0.24);
  border-color: rgba(147, 197, 253, 0.45);
}
.cbp-is-dark .cbp-checkbox-text { color: #dbeafe; }
.cbp-is-dark .cbp-privacy-link { color: #93c5fd; }
.cbp-is-dark .cbp-privacy-link:hover { color: #bfdbfe; }
.cbp-is-dark .cbp-modal-close { color: inherit; }

/* ── Bar layouts: uniform, compact action buttons ─────────────────────────
 * Previously the three actions each claimed `flex: 1 1 calc(33.333% - 8px)` of
 * a container that, in a full-width bar, is the whole viewport — so they came
 * out oversized and visually unequal (each box sized by its share of the bar,
 * not by its label). Here they're sized to the content within one shared
 * min/max, so all three read as one set of buttons.
 */
/* width:100% plus horizontal padding overflowed the viewport by the padding
 * amount, because the shadow root has no CSS reset and the default box model is
 * content-box. In a bottom/top bar that pushed the last action button (and, in
 * RTL, the agreement notice) off the edge of the screen. */
.cbp-banner,
.cbp-modal,
.cbp-modal-backdrop { box-sizing: border-box; }

/* A bar should read as one horizontal strip, not a stack. It previously came out
 * ~290px tall (a third of a 1900x850 viewport) in three rows that did not even
 * share an alignment: .cbp-body was centred by `margin: 0 auto`, the agreement
 * notice was forced onto its own full-width row, and the button group landed at
 * the left of a third row. These rules put body / notice / actions on one
 * vertically-centred line that wraps only when it genuinely runs out of room. */
.cbp-layout-bottom-bar,
.cbp-layout-top-bar {
  padding: 12px clamp(16px, 3vw, 44px);
  gap: 10px 20px;
  align-items: center;
  justify-content: center;
}
.cbp-layout-bottom-bar .cbp-body,
.cbp-layout-top-bar    .cbp-body {
  max-width: none;
  margin: 0;
  flex: 1 1 300px;
}
.cbp-layout-bottom-bar .cbp-message,
.cbp-layout-top-bar    .cbp-message { margin: 2px 0 0; }
/* Floated rather than left as a block, so the logo sits beside the wording
 * instead of claiming a whole line of its own. Physical float values (not
 * `inline-start`) for the widest browser support, with an explicit RTL flip. */
.cbp-layout-bottom-bar .cbp-logo,
.cbp-layout-top-bar    .cbp-logo {
  float: left;
  margin-right: 12px;
  margin-bottom: 0;
}
[dir="rtl"].cbp-layout-bottom-bar .cbp-logo,
[dir="rtl"].cbp-layout-top-bar    .cbp-logo {
  float: right;
  margin-right: 0;
  margin-left: 12px;
}
.cbp-layout-bottom-bar .cbp-actions,
.cbp-layout-top-bar    .cbp-actions {
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}
.cbp-layout-bottom-bar .cbp-actions .cbp-btn,
.cbp-layout-top-bar    .cbp-actions .cbp-btn,
.cbp-layout-bottom-bar .cbp-actions--triad .cbp-btn,
.cbp-layout-top-bar    .cbp-actions--triad .cbp-btn {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 132px;
  max-width: 240px;
  padding-left: 14px;
  padding-right: 14px;
  line-height: 1.25;
  white-space: normal;
}
/* The agreement notice shares the bar's single row when there is room, and drops
 * to its own line only once the row genuinely cannot hold it. Pinning it to 100%
 * unconditionally was what forced the three-row stack. */
.cbp-layout-bottom-bar .cbp-privacy-acceptance,
.cbp-layout-top-bar    .cbp-privacy-acceptance {
  flex: 0 1 auto;
  margin: 0;
  padding: 8px 12px;
}
.cbp-layout-bottom-bar .cbp-actions,
.cbp-layout-top-bar    .cbp-actions { flex: 0 0 auto; }
.cbp-layout-bottom-bar .cbp-inline-prefs,
.cbp-layout-top-bar    .cbp-inline-prefs { flex: 1 1 100%; }

/* Below the tablet breakpoint a bar has no room for three side-by-side
 * buttons; stack them full width instead of letting them overflow. */
@media (max-width: 720px) {
  .cbp-layout-bottom-bar .cbp-actions,
  .cbp-layout-top-bar    .cbp-actions { justify-content: stretch; }
  /* Three full-width rows of buttons made the banner eat over half a phone
   * screen. The primary action keeps its own full-width row; the two secondary
   * ones share the row below it, which is one row shorter and still leaves each
   * button far wider than a comfortable touch target. */
  .cbp-layout-bottom-bar .cbp-actions .cbp-btn,
  .cbp-layout-top-bar    .cbp-actions .cbp-btn,
  .cbp-layout-bottom-bar .cbp-actions--triad .cbp-btn,
  .cbp-layout-top-bar    .cbp-actions--triad .cbp-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    max-width: none;
  }
  .cbp-layout-bottom-bar .cbp-actions .cbp-btn-primary,
  .cbp-layout-top-bar    .cbp-actions .cbp-btn-primary {
    flex: 1 1 100%;
    order: -1;
  }
  /* A phone has no room to spare for decoration: smaller logo, tighter type. */
  .cbp-layout-bottom-bar .cbp-logo,
  .cbp-layout-top-bar    .cbp-logo { width: 40px; height: 40px; }
  .cbp-layout-bottom-bar .cbp-banner-title,
  .cbp-layout-top-bar    .cbp-banner-title { font-size: 17px; }
  .cbp-layout-bottom-bar .cbp-privacy-acceptance,
  .cbp-layout-top-bar    .cbp-privacy-acceptance { padding: 6px 10px; }
  .cbp-layout-bottom-bar,
  .cbp-layout-top-bar { padding: 12px 14px; }

  /* Once the banner switches to a column at narrow widths, .cbp-body's
   * `flex: 1 1 460px` basis stops being a width and becomes a HEIGHT, leaving a
   * ~460px empty gap between the message and the buttons — on a 375px screen the
   * banner covered almost the entire viewport. Auto basis makes it as tall as its
   * content, which is what the stacked layout wanted all along. */
  .cbp-banner .cbp-body { flex: 0 1 auto; }
  .cbp-layout-bottom-bar .cbp-privacy-acceptance,
  .cbp-layout-top-bar    .cbp-privacy-acceptance { flex: 1 1 100%; }
  /* The desktop rule shrink-wraps this container to its content; left as-is the
   * buttons inside would never get the full width they need to stack. */
  .cbp-layout-bottom-bar .cbp-actions,
  .cbp-layout-top-bar    .cbp-actions { flex: 1 1 100%; }
  /* Keep the logo floated beside the title on a phone too. Giving it its own
   * line costs ~48px of a 720px screen for pure decoration; sharing the title's
   * line keeps it visible without spending a row on it. */
  .cbp-layout-bottom-bar .cbp-logo,
  .cbp-layout-top-bar    .cbp-logo { margin-bottom: 4px; }
}
