/* Dev-ip.com — GDPR cookie consent  (matches site dark theme) */
.cc-root, .cc-root * { box-sizing: border-box; }
.cc-root {
  --cc-bg: #101013;
  --cc-panel: #17171b;
  --cc-border: #2A2A2A;
  --cc-text: #FFFFFF;
  --cc-muted: #A0A0A0;
  --cc-primary: #0066FF;
  --cc-primary-2: #00CCFF;
  --cc-radius: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- bottom banner ---------- */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  background: var(--cc-bg);
  border-top: 1px solid var(--cc-border);
  box-shadow: 0 -8px 32px rgba(0,0,0,.6);
  padding: 20px 24px;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.cc-banner.cc-show { transform: translateY(0); }
.cc-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.cc-banner-text { flex: 1 1 420px; color: var(--cc-muted); font-size: 13.5px; line-height: 1.6; }
.cc-banner-text b { color: var(--cc-text); font-weight: 600; }
.cc-banner-text a { color: var(--cc-primary-2); text-decoration: none; }
.cc-banner-text a:hover { text-decoration: underline; }
.cc-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cc-btn {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--cc-border); background: transparent; color: var(--cc-text);
  transition: all .18s ease; white-space: nowrap;
}
.cc-btn:hover { border-color: #3d3d44; background: #1d1d22; }
.cc-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
  color: #fff;
}
.cc-btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg,#0066FF,#00CCFF); }
.cc-btn-link { border: none; background: none; color: var(--cc-muted); padding: 11px 8px; text-decoration: underline; }
.cc-btn-link:hover { color: var(--cc-text); background: none; }

/* ---------- preferences modal ---------- */
.cc-overlay {
  position: fixed; inset: 0; z-index: 2147483001;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cc-overlay.cc-show { opacity: 1; pointer-events: auto; }
.cc-modal {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--cc-bg); border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius); box-shadow: 0 24px 60px rgba(0,0,0,.7);
  transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.cc-overlay.cc-show .cc-modal { transform: translateY(0) scale(1); }
.cc-modal-head { padding: 22px 24px 8px; }
.cc-modal-head h2 { margin: 0 0 6px; font-size: 19px; color: var(--cc-text); font-weight: 700; }
.cc-modal-head p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--cc-muted); }
.cc-modal-head p a { color: var(--cc-primary-2); text-decoration: none; }
.cc-modal-body { padding: 12px 24px 4px; }
.cc-cat {
  border: 1px solid var(--cc-border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; background: var(--cc-panel);
}
.cc-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-top h3 { margin: 0; font-size: 14px; color: var(--cc-text); font-weight: 600; }
.cc-cat p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--cc-muted); }

/* toggle */
.cc-switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-slider {
  position: absolute; inset: 0; border-radius: 999px; background: #33333a;
  transition: background .2s ease;
}
.cc-slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: transform .2s ease;
}
.cc-switch input:checked + .cc-slider { background: linear-gradient(135deg,#0066FF,#00CCFF); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider { opacity: .55; cursor: not-allowed; }
.cc-tag { font-size: 11px; color: var(--cc-muted); }

.cc-modal-foot {
  padding: 14px 24px 22px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--cc-bg); border-top: 1px solid var(--cc-border);
}

/* floating re-open button (optional, shown after consent) */
.cc-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 2147482000;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--cc-border); background: var(--cc-bg); color: var(--cc-muted);
  font-size: 18px; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.cc-fab:hover { color: #fff; border-color: #3d3d44; }

@media (max-width: 640px) {
  .cc-banner { padding: 16px; }
  .cc-banner-actions { width: 100%; }
  .cc-banner-actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-modal-foot .cc-btn { flex: 1 1 auto; }
}
