/* Cookie Consent — GDPR / Legea 506/2004 */
.wd-cc-root {
  --wd-cc-bg: #0b1220;
  --wd-cc-panel: #111a2b;
  --wd-cc-text: #f4f7fb;
  --wd-cc-muted: #a8b3c7;
  --wd-cc-line: rgba(255, 255, 255, 0.12);
  --wd-cc-blue: #5a8fc0;
  --wd-cc-blue-deep: #3d6f9c;
  --wd-cc-radius: 16px;
  font-family: 'Outfit', system-ui, sans-serif;
  z-index: 10050;
}

.wd-cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--wd-cc-bg);
  color: var(--wd-cc-text);
  border: 1px solid var(--wd-cc-line);
  border-radius: var(--wd-cc-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  padding: 22px 22px 18px;
  display: none;
}

.wd-cc-banner.is-open { display: block; }

.wd-cc-banner h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wd-cc-banner p {
  margin: 0 0 16px;
  color: var(--wd-cc-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.wd-cc-banner a {
  color: #9dc4db;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wd-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wd-cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s, filter .2s;
}

.wd-cc-btn:focus-visible {
  outline: 2px solid #9dc4db;
  outline-offset: 2px;
}

.wd-cc-btn-accept {
  background: var(--wd-cc-blue);
  color: #fff;
  flex: 1 1 140px;
}
.wd-cc-btn-accept:hover { background: var(--wd-cc-blue-deep); }

.wd-cc-btn-reject {
  background: transparent;
  color: var(--wd-cc-text);
  border-color: var(--wd-cc-line);
  flex: 1 1 140px;
}
.wd-cc-btn-reject:hover { border-color: rgba(255,255,255,.35); }

.wd-cc-btn-prefs {
  background: rgba(255, 255, 255, 0.06);
  color: var(--wd-cc-text);
  border-color: var(--wd-cc-line);
  flex: 1 1 100%;
}
.wd-cc-btn-prefs:hover { background: rgba(255, 255, 255, 0.1); }

.wd-cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10060;
}

.wd-cc-overlay.is-open { display: flex; }

.wd-cc-modal {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: var(--wd-cc-panel);
  color: var(--wd-cc-text);
  border: 1px solid var(--wd-cc-line);
  border-radius: var(--wd-cc-radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  padding: 24px;
}

.wd-cc-modal h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.wd-cc-modal > p {
  margin: 0 0 18px;
  color: var(--wd-cc-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.wd-cc-cat {
  border: 1px solid var(--wd-cc-line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.wd-cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wd-cc-cat-head strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.wd-cc-cat p {
  margin: 8px 0 0;
  color: var(--wd-cc-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.wd-cc-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}

.wd-cc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.wd-cc-switch input:disabled { cursor: not-allowed; }

.wd-cc-switch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background .2s;
  position: relative;
}

.wd-cc-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.wd-cc-switch input:checked + span {
  background: var(--wd-cc-blue);
}

.wd-cc-switch input:checked + span::after {
  transform: translateX(18px);
}

.wd-cc-switch input:disabled + span {
  opacity: 0.7;
}

.wd-cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wd-cc-modal-actions .wd-cc-btn { flex: 1 1 140px; }

.wd-cc-fab {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10040;
  border: 1px solid rgba(20, 30, 45, 0.12);
  background: #fff;
  color: #1a2332;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(20, 30, 45, 0.14);
  display: none;
}

.wd-cc-fab.is-visible { display: inline-flex; align-items: center; gap: 8px; }
.wd-cc-fab:hover { filter: brightness(0.98); }
.wd-cc-fab:focus-visible {
  outline: 2px solid var(--wd-cc-blue);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .wd-cc-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px 16px 14px;
  }
  .wd-cc-btn-accept,
  .wd-cc-btn-reject { flex: 1 1 calc(50% - 10px); }
  .wd-cc-fab { font-size: 0.75rem; padding: 9px 12px; }
}
