/* WP Consent Mode v2 — themeable via CSS variables.
   Override the --wpcc-* variables in your theme; nothing else needs touching. */
:root {
  --wpcc-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wpcc-bg: #111;
  --wpcc-fg: #fff;
  --wpcc-muted: rgba(255,255,255,.8);
  --wpcc-line: rgba(255,255,255,.14);
  --wpcc-radius: 12px;
  --wpcc-shadow: 0 10px 30px rgba(0,0,0,.25);
  --wpcc-btn-bg: #fff;
  --wpcc-btn-fg: #111;
  --wpcc-btn-hover: #e8e8e8;
  --wpcc-ghost-fg: #fff;
  --wpcc-ghost-border: rgba(255,255,255,.35);
  --wpcc-overlay: rgba(0,0,0,.45);
  --wpcc-accent: #fff;
  --wpcc-z: 999999;
}

#wpccv2-root { position: fixed; z-index: var(--wpcc-z); left: 16px; bottom: 16px; font-family: var(--wpcc-font); }
#wpccv2-root:empty { display: none; }

.wpccv2-banner, .wpccv2-modal { background: var(--wpcc-bg); color: var(--wpcc-fg); border-radius: var(--wpcc-radius); box-shadow: var(--wpcc-shadow); }
.wpccv2-banner { width: min(440px, calc(100vw - 32px)); padding: 18px; }
.wpccv2-banner__title { font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.wpccv2-banner__text { font-size: 13.5px; line-height: 1.45; color: var(--wpcc-muted); margin: 0; }
.wpccv2-banner__policy, .wpccv2-banner__policy:hover, .wpccv2-banner__policy:focus { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--wpcc-fg); text-decoration: underline; text-underline-offset: 2px; }
.wpccv2-banner__policy:hover { opacity: .85; }
.wpccv2-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.wpccv2-banner__actions .wpccv2-btn--ghost { grid-column: 1 / -1; }

.wpccv2-btn { font: inherit; border: 1px solid var(--wpcc-ghost-border); background: transparent; color: var(--wpcc-ghost-fg); padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.wpccv2-btn:hover { background: rgba(255,255,255,.08); }
.wpccv2-btn:focus-visible { outline: 2px solid var(--wpcc-accent); outline-offset: 2px; }
.wpccv2-btn--primary { background: var(--wpcc-btn-bg); color: var(--wpcc-btn-fg); border-color: var(--wpcc-btn-bg); }
.wpccv2-btn--primary:hover { background: var(--wpcc-btn-hover); border-color: var(--wpcc-btn-hover); }
.wpccv2-btn--ghost { border-color: transparent; }

.wpccv2-overlay { position: fixed; inset: 0; z-index: calc(var(--wpcc-z) + 1); background: var(--wpcc-overlay); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--wpcc-font); }
.wpccv2-modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.wpccv2-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid var(--wpcc-line); }
.wpccv2-modal__title { font-weight: 700; font-size: 16px; margin: 0; color: inherit; }
.wpccv2-close { font: inherit; border: 0; background: transparent; color: var(--wpcc-fg); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.wpccv2-close:hover { background: rgba(255,255,255,.08); }
.wpccv2-close:focus-visible { outline: 2px solid var(--wpcc-accent); }
.wpccv2-modal__body { padding: 14px 18px; display: grid; gap: 10px; }
.wpccv2-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px; border: 1px solid var(--wpcc-line); border-radius: calc(var(--wpcc-radius) - 2px); }
.wpccv2-row__title { display: block; font-weight: 600; font-size: 14px; margin-bottom: 3px; cursor: pointer; }
.wpccv2-row--locked .wpccv2-row__title { cursor: default; }
.wpccv2-row__desc { font-size: 12.5px; line-height: 1.4; color: var(--wpcc-muted); max-width: 420px; }
.wpccv2-row__input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wpcc-accent); cursor: pointer; }
.wpccv2-row__input:disabled { cursor: default; opacity: .7; }
.wpccv2-modal__footer { padding: 12px 18px 16px; border-top: 1px solid var(--wpcc-line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Optional floating "manage" button (settings: floating_button = 1) */
.wpccv2-manage { position: fixed; left: calc(16px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--wpcc-z); width: 44px; height: 44px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--wpcc-bg); color: var(--wpcc-fg); font-size: 0; cursor: pointer; box-shadow: var(--wpcc-shadow); }
.wpccv2-manage::before { content: "\1F36A"; font-size: 20px; }

@media (max-width: 480px) {
  #wpccv2-root { left: 0; right: 0; bottom: 0; }
  .wpccv2-banner { width: 100%; border-radius: var(--wpcc-radius) var(--wpcc-radius) 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .wpccv2-overlay { align-items: flex-end; padding: 0; }
  .wpccv2-modal { width: 100%; max-height: 92vh; border-radius: var(--wpcc-radius) var(--wpcc-radius) 0 0; }
}
