/* ══════════════════════════════════════════════════════════════════════════
   WP Cookie Consent Pro v2.0 — Premium Banner CSS
   Supports: 4 styles × 3 button shapes × 4 shadows × 4 animations
   All scoped to #wpcc-* / .wpcc-* — zero theme conflicts
══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  --wpcc-primary:        #2563eb;
  --wpcc-primary-2:      #7c3aed;
  --wpcc-primary-rgb:    37,99,235;
  --wpcc-bg:             #ffffff;
  --wpcc-bg-dark:        #0f172a;
  --wpcc-surface-dark:   #1e293b;
  --wpcc-text:           #111827;
  --wpcc-text-dark:      #f1f5f9;
  --wpcc-muted:          #6b7280;
  --wpcc-muted-dark:     #94a3b8;
  --wpcc-border:         #e5e7eb;
  --wpcc-border-dark:    #1e293b;
  --wpcc-radius:         16px;
  --wpcc-radius-sm:      10px;
  --wpcc-radius-btn:     10px;
  --wpcc-shadow:         0 4px 24px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
  --wpcc-shadow-xl:      0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.10);
  --wpcc-font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --wpcc-font-size:      14px;
  --wpcc-padding:        24px;
  --wpcc-z:              999999;
  --wpcc-ease:           cubic-bezier(.4,0,.2,1);
  --wpcc-spring:         cubic-bezier(.34,1.56,.64,1);
  --wpcc-transition:     .35s var(--wpcc-ease);
  --wpcc-stripe:         linear-gradient(90deg, var(--wpcc-primary), var(--wpcc-primary-2));
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.wpcc-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: calc(var(--wpcc-z) - 1);
  opacity: 0; pointer-events: none;
  transition: opacity var(--wpcc-transition);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.wpcc-overlay--visible { opacity: 1; pointer-events: auto; }

/* ══════════════════════════════════════════════════════════════════════════
   BANNER BASE
══════════════════════════════════════════════════════════════════════════ */
.wpcc-banner {
  position: fixed;
  z-index: var(--wpcc-z);
  font-family: var(--wpcc-font);
  font-size: var(--wpcc-font-size);
  line-height: 1.6;
  color: var(--wpcc-text);
  background: var(--wpcc-bg);
  box-shadow: var(--wpcc-shadow);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.wpcc-banner--visible { opacity: 1 !important; pointer-events: auto !important; }

/* Accent top stripe */
.wpcc-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--wpcc-stripe);
  border-radius: var(--wpcc-radius) var(--wpcc-radius) 0 0;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   POSITIONS
══════════════════════════════════════════════════════════════════════════ */

/* Bottom bar */
.wpcc-pos-bottom {
  bottom: 0; left: 0; right: 0;
  border-radius: var(--wpcc-radius) var(--wpcc-radius) 0 0;
  transform: translateY(100%);
  transition: transform var(--wpcc-transition), opacity var(--wpcc-transition);
}
.wpcc-pos-bottom.wpcc-banner--visible  { transform: translateY(0); }
.wpcc-pos-bottom.wpcc-banner--hiding   { transform: translateY(100%); opacity: 0 !important; }

/* Top bar */
.wpcc-pos-top {
  top: 0; left: 0; right: 0;
  border-radius: 0 0 var(--wpcc-radius) var(--wpcc-radius);
  transform: translateY(-100%);
  transition: transform var(--wpcc-transition), opacity var(--wpcc-transition);
}
.wpcc-pos-top::before { top: auto; bottom: 0; border-radius: 0 0 var(--wpcc-radius) var(--wpcc-radius); }
.wpcc-pos-top.wpcc-banner--visible  { transform: translateY(0); }
.wpcc-pos-top.wpcc-banner--hiding   { transform: translateY(-100%); opacity: 0 !important; }

/* Floating cards */
.wpcc-pos-bottom-left,
.wpcc-pos-bottom-right {
  bottom: 1.5rem; max-width: 420px;
  border-radius: var(--wpcc-radius);
  border: 1px solid var(--wpcc-border);
  transform: translateY(calc(100% + 2rem)) scale(.95);
  transition: transform .45s var(--wpcc-spring), opacity var(--wpcc-transition);
}
.wpcc-pos-bottom-left  { left: 1.5rem; }
.wpcc-pos-bottom-right { right: 1.5rem; }
.wpcc-pos-bottom-left.wpcc-banner--visible,
.wpcc-pos-bottom-right.wpcc-banner--visible { transform: translateY(0) scale(1); }
.wpcc-pos-bottom-left.wpcc-banner--hiding,
.wpcc-pos-bottom-right.wpcc-banner--hiding  { transform: translateY(calc(100% + 2rem)) scale(.95); opacity: 0 !important; }

/* Center modal */
.wpcc-pos-center {
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.94);
  max-width: 520px; width: calc(100% - 2rem);
  border-radius: var(--wpcc-radius);
  border: 1px solid var(--wpcc-border);
  transition: transform .45s var(--wpcc-spring), opacity var(--wpcc-transition);
}
.wpcc-pos-center.wpcc-banner--visible { transform: translate(-50%, -50%) scale(1); }
.wpcc-pos-center.wpcc-banner--hiding  { transform: translate(-50%, -46%) scale(.94); opacity: 0 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   INNER LAYOUT
══════════════════════════════════════════════════════════════════════════ */
.wpcc-banner__inner {
  display: flex; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  padding: var(--wpcc-padding) calc(var(--wpcc-padding) * 1.25);
}
.wpcc-pos-center .wpcc-banner__inner,
.wpcc-pos-bottom-left .wpcc-banner__inner,
.wpcc-pos-bottom-right .wpcc-banner__inner {
  flex-direction: column; align-items: flex-start; gap: 1rem;
  padding: calc(var(--wpcc-padding) * .9) var(--wpcc-padding);
}
.wpcc-banner__content { flex: 1 1 260px; }
.wpcc-banner__title {
  display: flex; align-items: center; gap: .4rem;
  font-size: 15px; font-weight: 700; margin: 0 0 .4rem;
  color: var(--wpcc-text); letter-spacing: -.01em;
}
.wpcc-banner__icon { font-size: 18px; line-height: 1; }
.wpcc-banner__text { margin: 0 0 .4rem; color: var(--wpcc-muted); font-size: 13px; line-height: 1.65; }
.wpcc-banner__links { margin: 0; font-size: 12px; }
.wpcc-banner__links a {
  color: var(--wpcc-primary); text-decoration: none; font-weight: 500;
  transition: opacity .15s;
}
.wpcc-banner__links a:hover { opacity: .75; text-decoration: underline; }
.wpcc-banner__links .wpcc-sep { color: var(--wpcc-muted); margin: 0 .35rem; }
.wpcc-banner__actions {
  display: flex; gap: .55rem; flex-wrap: wrap; flex-shrink: 0; align-items: center;
}
.wpcc-pos-center .wpcc-banner__actions,
.wpcc-pos-bottom-left .wpcc-banner__actions,
.wpcc-pos-bottom-right .wpcc-banner__actions { width: 100%; }

/* Powered by */
.wpcc-powered {
  font-size: 10px; color: var(--wpcc-muted); opacity: .6;
  padding: 0 calc(var(--wpcc-padding) * 1.25) calc(var(--wpcc-padding) * .5);
  text-align: right;
}
.wpcc-powered a { color: inherit; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════════════ */
.wpcc-btn {
  all: unset;
  box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wpcc-font); font-size: 13px; font-weight: 600; line-height: 1;
  padding: .65rem 1.25rem;
  border-radius: var(--wpcc-radius-btn);
  transition: background .2s, transform .15s, box-shadow .2s, opacity .2s, border-color .2s;
  white-space: nowrap; letter-spacing: .01em;
  position: relative; overflow: hidden;
}
.wpcc-btn:focus-visible { outline: 3px solid var(--wpcc-primary); outline-offset: 2px; }
.wpcc-btn:active { transform: scale(.97) !important; }

/* Accept */
.wpcc-btn--accept {
  background: var(--wpcc-stripe);
  background-size: 200% 100%; background-position: 0 0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--wpcc-primary-rgb),.35);
  transition: background-position .4s, box-shadow .2s, transform .15s;
}
.wpcc-btn--accept:hover {
  background-position: 100% 0;
  box-shadow: 0 4px 18px rgba(var(--wpcc-primary-rgb),.45);
  transform: translateY(-1px);
}

/* Reject */
.wpcc-btn--reject {
  background: transparent; color: var(--wpcc-text);
  border: 1.5px solid var(--wpcc-border);
}
.wpcc-btn--reject:hover { background: #f9fafb; border-color: #d1d5db; }

/* Preferences */
.wpcc-btn--prefs {
  color: var(--wpcc-muted); font-weight: 500; font-size: 13px;
  padding: .65rem .6rem;
  text-decoration: underline; text-underline-offset: 2px;
}
.wpcc-btn--prefs:hover { color: var(--wpcc-primary); }

/* Outline variant (for "save" in prefs modal) */
.wpcc-btn--outline {
  background: transparent; color: var(--wpcc-primary);
  border: 1.5px solid var(--wpcc-primary);
}
.wpcc-btn--outline:hover { background: rgba(var(--wpcc-primary-rgb),.06); }

/* ── Button shape modifiers ─────────────────────────────────────────────── */
.wpcc-btn-pill .wpcc-btn  { border-radius: 99px !important; }
.wpcc-btn-square .wpcc-btn { border-radius: 6px !important; }

/* ── Reject style modifiers ─────────────────────────────────────────────── */
.wpcc-reject-ghost .wpcc-btn--reject {
  border: none; background: transparent; color: var(--wpcc-muted);
}
.wpcc-reject-ghost .wpcc-btn--reject:hover { color: var(--wpcc-text); background: #f3f4f6; }

.wpcc-reject-solid .wpcc-btn--reject {
  background: #f3f4f6; border: none; color: var(--wpcc-text);
}
.wpcc-reject-solid .wpcc-btn--reject:hover { background: #e5e7eb; }

/* ── Prefs btn outline ──────────────────────────────────────────────────── */
.wpcc-prefs-outline .wpcc-btn--prefs {
  text-decoration: none; border: 1.5px solid var(--wpcc-border);
  padding: .65rem 1.1rem; color: var(--wpcc-text);
}
.wpcc-prefs-outline .wpcc-btn--prefs:hover { border-color: var(--wpcc-primary); color: var(--wpcc-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   BANNER STYLES
══════════════════════════════════════════════════════════════════════════ */

/* ── Style: minimal ─────────────────────────────────────────────────────── */
.wpcc-style-minimal {
  box-shadow: 0 -1px 0 var(--wpcc-border);
}
.wpcc-style-minimal::before { display: none; }
.wpcc-style-minimal .wpcc-btn--accept {
  background: var(--wpcc-primary); box-shadow: none;
}
.wpcc-style-minimal .wpcc-btn--accept:hover {
  background: var(--wpcc-primary); filter: brightness(1.1); box-shadow: none;
}
.wpcc-style-minimal .wpcc-banner__title { font-weight: 600; font-size: 14px; }

/* ── Style: bold ────────────────────────────────────────────────────────── */
.wpcc-style-bold {
  background: var(--wpcc-text) !important;
  color: #fff !important;
}
.wpcc-style-bold::before { background: var(--wpcc-stripe); }
.wpcc-style-bold .wpcc-banner__title { color: #fff; }
.wpcc-style-bold .wpcc-banner__text  { color: rgba(255,255,255,.7); }
.wpcc-style-bold .wpcc-banner__links a { color: rgba(255,255,255,.9); }
.wpcc-style-bold .wpcc-banner__links .wpcc-sep { color: rgba(255,255,255,.4); }
.wpcc-style-bold .wpcc-btn--accept {
  background: #fff;
  color: var(--wpcc-text);
  box-shadow: none;
}
.wpcc-style-bold .wpcc-btn--accept:hover {
  background: rgba(255,255,255,.9);
}
.wpcc-style-bold .wpcc-btn--reject {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
}
.wpcc-style-bold .wpcc-btn--reject:hover { background: rgba(255,255,255,.1); }
.wpcc-style-bold .wpcc-btn--prefs { color: rgba(255,255,255,.6); }
.wpcc-style-bold .wpcc-btn--prefs:hover { color: #fff; }

/* ── Style: glass ───────────────────────────────────────────────────────── */
.wpcc-style-glass {
  background: rgba(255,255,255,.75) !important;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.6) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.8) !important;
}
.wpcc-style-glass::before { opacity: .85; }

/* ══════════════════════════════════════════════════════════════════════════
   SHADOW MODIFIERS
══════════════════════════════════════════════════════════════════════════ */
.wpcc-shadow-none   { box-shadow: none !important; }
.wpcc-shadow-soft   { box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05) !important; }
.wpcc-shadow-medium { box-shadow: var(--wpcc-shadow) !important; }
.wpcc-shadow-strong { box-shadow: 0 20px 60px rgba(0,0,0,.2), 0 4px 16px rgba(0,0,0,.12) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ANIMATION MODIFIERS
══════════════════════════════════════════════════════════════════════════ */
.wpcc-anim-fade.wpcc-pos-bottom,
.wpcc-anim-fade.wpcc-pos-top       { transform: none !important; }
.wpcc-anim-fade:not(.wpcc-banner--visible) { opacity: 0 !important; }

.wpcc-anim-bounce.wpcc-pos-bottom-left.wpcc-banner--visible,
.wpcc-anim-bounce.wpcc-pos-bottom-right.wpcc-banner--visible,
.wpcc-anim-bounce.wpcc-pos-center.wpcc-banner--visible {
  animation: wpcc-bounce .5s var(--wpcc-spring) both;
}
@keyframes wpcc-bounce {
  from { transform: translateY(20px) scale(.9); opacity: 0; }
  to   { transform: translateY(0)    scale(1);  opacity: 1; }
}

.wpcc-anim-none { transition: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   PREFERENCES MODAL
══════════════════════════════════════════════════════════════════════════ */
.wpcc-prefs-modal {
  position: fixed; inset: 0; z-index: calc(var(--wpcc-z) + 1);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; font-family: var(--wpcc-font);
  opacity: 0; pointer-events: none;
  transition: opacity var(--wpcc-transition);
}
.wpcc-prefs-modal--visible { opacity: 1; pointer-events: auto; }

.wpcc-prefs-modal__inner {
  background: var(--wpcc-bg);
  border-radius: var(--wpcc-radius);
  box-shadow: var(--wpcc-shadow-xl);
  width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto;
  padding: 2rem;
  border-top: 3px solid transparent;
  border-image: var(--wpcc-stripe) 1;
  transform: translateY(16px) scale(.98);
  transition: transform var(--wpcc-transition);
}
.wpcc-prefs-modal--visible .wpcc-prefs-modal__inner { transform: translateY(0) scale(1); }

.wpcc-prefs-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.wpcc-prefs-modal__header h2 {
  font-size: 18px; font-weight: 700; margin: 0; color: var(--wpcc-text); letter-spacing: -.015em;
}
.wpcc-close-btn {
  all: unset; cursor: pointer; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 15px; color: var(--wpcc-muted);
  transition: background .15s, color .15s;
}
.wpcc-close-btn:hover { background: #f3f4f6; color: var(--wpcc-text); }
.wpcc-close-btn:focus-visible { outline: 2px solid var(--wpcc-primary); }

.wpcc-prefs-modal__desc {
  font-size: 13px; color: var(--wpcc-muted); margin: 0 0 1.5rem; line-height: 1.65;
}
.wpcc-prefs-categories { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.75rem; }

/* Category row */
.wpcc-pref-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--wpcc-border);
  border-radius: var(--wpcc-radius-sm);
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
}
.wpcc-pref-row:hover { border-color: var(--wpcc-primary); }
.wpcc-pref-row:has(input:checked) {
  border-color: var(--wpcc-primary);
  box-shadow: 0 0 0 3px rgba(var(--wpcc-primary-rgb),.1);
}

.wpcc-pref-info { flex: 1; }
.wpcc-pref-header { display: flex; align-items: center; gap: .45rem; margin-bottom: .3rem; }
.wpcc-pref-icon { font-size: 15px; }
.wpcc-pref-label { font-size: 14px; font-weight: 600; color: var(--wpcc-text); }
.wpcc-pref-required {
  font-size: 11px; background: #dcfce7; color: #166534;
  padding: 2px 7px; border-radius: 99px; font-weight: 600;
}
.wpcc-pref-desc { font-size: 12px; color: var(--wpcc-muted); margin: 0; line-height: 1.55; }

/* Toggle switch */
.wpcc-toggle { position: relative; flex-shrink: 0; width: 44px; height: 24px; cursor: pointer; margin-top: 2px; }
.wpcc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.wpcc-toggle__slider {
  position: absolute; inset: 0;
  border-radius: 99px; background: #d1d5db;
  transition: background var(--wpcc-transition);
}
.wpcc-toggle__slider::before {
  content: ''; position: absolute;
  top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform var(--wpcc-transition);
}
.wpcc-toggle input:checked + .wpcc-toggle__slider { background: var(--wpcc-primary); }
.wpcc-toggle input:checked + .wpcc-toggle__slider::before { transform: translateX(20px); }
.wpcc-toggle input:disabled + .wpcc-toggle__slider { background: #86efac; cursor: not-allowed; }
.wpcc-toggle input:focus-visible + .wpcc-toggle__slider { outline: 3px solid var(--wpcc-primary); outline-offset: 2px; }

.wpcc-prefs-modal__footer { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════════════
   DARK THEME
══════════════════════════════════════════════════════════════════════════ */
@mixin dark-tokens {
  --wpcc-bg: var(--wpcc-bg-dark);
  --wpcc-text: var(--wpcc-text-dark);
  --wpcc-muted: var(--wpcc-muted-dark);
  --wpcc-border: var(--wpcc-border-dark);
}

.wpcc-theme-dark .wpcc-banner,
.wpcc-theme-dark .wpcc-prefs-modal__inner {
  background: var(--wpcc-bg-dark);
  color: var(--wpcc-text-dark);
  border-color: var(--wpcc-border-dark);
}
.wpcc-theme-dark .wpcc-banner__title,
.wpcc-theme-dark .wpcc-prefs-modal__header h2 { color: var(--wpcc-text-dark); }
.wpcc-theme-dark .wpcc-banner__text,
.wpcc-theme-dark .wpcc-prefs-modal__desc,
.wpcc-theme-dark .wpcc-pref-desc  { color: var(--wpcc-muted-dark); }
.wpcc-theme-dark .wpcc-pref-row   { background: #1e2433; border-color: var(--wpcc-border-dark); }
.wpcc-theme-dark .wpcc-pref-row:hover { border-color: var(--wpcc-primary); }
.wpcc-theme-dark .wpcc-pref-label { color: var(--wpcc-text-dark); }
.wpcc-theme-dark .wpcc-btn--reject { color: var(--wpcc-text-dark); border-color: var(--wpcc-border-dark); }
.wpcc-theme-dark .wpcc-btn--reject:hover { background: #1e293b; border-color: #475569; }
.wpcc-theme-dark .wpcc-close-btn:hover { background: #1e293b; }
.wpcc-theme-dark .wpcc-style-glass {
  background: rgba(15,23,42,.8) !important;
  border-color: rgba(255,255,255,.1) !important;
}

@media (prefers-color-scheme: dark) {
  .wpcc-theme-auto .wpcc-banner,
  .wpcc-theme-auto .wpcc-prefs-modal__inner {
    background: var(--wpcc-bg-dark);
    color: var(--wpcc-text-dark);
    border-color: var(--wpcc-border-dark);
  }
  .wpcc-theme-auto .wpcc-banner__title { color: var(--wpcc-text-dark); }
  .wpcc-theme-auto .wpcc-banner__text  { color: var(--wpcc-muted-dark); }
  .wpcc-theme-auto .wpcc-pref-row      { background: #1e2433; border-color: var(--wpcc-border-dark); }
  .wpcc-theme-auto .wpcc-pref-label    { color: var(--wpcc-text-dark); }
  .wpcc-theme-auto .wpcc-btn--reject   { color: var(--wpcc-text-dark); border-color: var(--wpcc-border-dark); }
  .wpcc-theme-auto .wpcc-close-btn:hover { background: #1e293b; }
  .wpcc-theme-auto .wpcc-prefs-modal__header h2 { color: var(--wpcc-text-dark); }
  .wpcc-theme-auto .wpcc-prefs-modal__desc { color: var(--wpcc-muted-dark); }
  .wpcc-theme-auto .wpcc-prefs-modal__inner { background: var(--wpcc-bg-dark); color: var(--wpcc-text-dark); }
}

/* ══════════════════════════════════════════════════════════════════════════
   IFRAME PLACEHOLDER
══════════════════════════════════════════════════════════════════════════ */
.wpcc-iframe-placeholder {
  position: relative; overflow: hidden; border-radius: 8px;
  min-height: 240px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #1a1f2e;
}
.wpcc-iframe-accept {
  background: var(--wpcc-stripe); color: #fff; border: 0;
  padding: .65rem 1.3rem; border-radius: var(--wpcc-radius-btn);
  cursor: pointer; font-size: 14px; font-weight: 600;
  font-family: var(--wpcc-font);
  transition: opacity .2s, transform .15s;
}
.wpcc-iframe-accept:hover { opacity: .88; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════════════════
   WIDGET FLOTANT
══════════════════════════════════════════════════════════════════════════ */
.wpcc-widget { position: fixed; z-index: calc(var(--wpcc-z) - 10); font-family: var(--wpcc-font); }
.wpcc-widget--bottom-left  { bottom: 1.25rem; left: 1.25rem; }
.wpcc-widget--bottom-right { bottom: 1.25rem; right: 1.25rem; }
.wpcc-widget--bottom-center { bottom: 1.25rem; left: 50%; transform: translateX(-50%); }

.wpcc-widget__btn {
  all: unset; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--wpcc-bg); color: var(--wpcc-text);
  border: 1.5px solid var(--wpcc-border);
  border-radius: 99px; padding: .5rem 1rem .5rem .75rem;
  cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.12);
  font-family: var(--wpcc-font); font-size: 13px; font-weight: 600;
  white-space: nowrap; user-select: none;
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.wpcc-widget__btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,.18); border-color: var(--wpcc-primary); transform: translateY(-1px); }
.wpcc-widget__btn:focus-visible { outline: 3px solid var(--wpcc-primary); outline-offset: 2px; }
.wpcc-widget__icon { font-size: 16px; line-height: 1; }

.wpcc-widget__menu {
  position: absolute; bottom: calc(100% + .5rem); left: 0; min-width: 220px;
  background: var(--wpcc-bg); border: 1.5px solid var(--wpcc-border);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.15);
  overflow: hidden; animation: wpcc-menu-in .2s var(--wpcc-ease);
}
.wpcc-widget--bottom-right .wpcc-widget__menu,
.wpcc-widget--bottom-center .wpcc-widget__menu { left: auto; right: 0; }
@keyframes wpcc-menu-in {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wpcc-widget__item {
  all: unset; box-sizing: border-box; display: flex; align-items: center;
  gap: .6rem; width: 100%; padding: .7rem 1rem; cursor: pointer;
  font-family: var(--wpcc-font); font-size: 13px; font-weight: 500;
  color: var(--wpcc-text); border-bottom: 1px solid var(--wpcc-border);
  transition: background .15s;
}
.wpcc-widget__item:last-child { border-bottom: none; }
.wpcc-widget__item:hover { background: #f9fafb; }
.wpcc-widget__item:focus-visible { outline: 2px solid var(--wpcc-primary); outline-offset: -2px; }
.wpcc-widget__item--danger { color: #dc2626; }
.wpcc-widget__item--danger:hover { background: #fef2f2; }

/* Dark widget */
.wpcc-theme-dark .wpcc-widget__btn {
  background: var(--wpcc-bg-dark); color: var(--wpcc-text-dark); border-color: var(--wpcc-border-dark);
}
.wpcc-theme-dark .wpcc-widget__menu { background: var(--wpcc-bg-dark); border-color: var(--wpcc-border-dark); }
.wpcc-theme-dark .wpcc-widget__item { color: var(--wpcc-text-dark); border-color: var(--wpcc-border-dark); }
.wpcc-theme-dark .wpcc-widget__item:hover { background: #1e293b; }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER LINK
══════════════════════════════════════════════════════════════════════════ */
#wpcc-footer-link-wrap { display: contents; }
.wpcc-footer-link {
  display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-family: var(--wpcc-font); font-size: 12px; padding: .5rem 0; opacity: .75;
  transition: opacity .2s;
}
.wpcc-footer-link:hover { opacity: 1; }
.wpcc-footer-link__icon { font-size: 14px; }
.wpcc-footer-link__btn {
  all: unset; cursor: pointer; color: inherit;
  text-decoration: underline; text-underline-offset: 2px; font-size: 12px;
  font-family: var(--wpcc-font); transition: color .15s;
}
.wpcc-footer-link__btn:hover { color: var(--wpcc-primary); }
.wpcc-footer-link__btn:focus-visible { outline: 2px solid var(--wpcc-primary); outline-offset: 2px; border-radius: 2px; }
.wpcc-footer-link__btn--revoke { color: #dc2626; }
.wpcc-footer-link__btn--revoke:hover { color: #b91c1c; }
.wpcc-footer-link__sep { color: var(--wpcc-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .wpcc-banner__inner { flex-direction: column !important; gap: 1rem !important; }
  .wpcc-banner__actions { width: 100%; }
  .wpcc-btn { flex: 1 1 auto; justify-content: center; }
  .wpcc-pos-bottom-left,
  .wpcc-pos-bottom-right { left: .75rem; right: .75rem; max-width: none; bottom: .75rem; }
  .wpcc-prefs-modal__footer { flex-direction: column; }
  .wpcc-prefs-modal__footer .wpcc-btn { justify-content: center; }
  .wpcc-prefs-modal__inner { padding: 1.25rem; }
}

@media print {
  #wpcc-root, .wpcc-overlay, .wpcc-widget, .wpcc-footer-link { display: none !important; }
}
