:root {
  --cc-bg: #0f172a;
  --cc-bg-soft: #1e293b;
  --cc-text: #f8fafc;
  --cc-text-soft: #cbd5e1;
  --cc-accent: #22c55e;
  --cc-border: #334155;
  --cc-overlay: rgba(2, 6, 23, 0.65);
}

.cc-hidden {
  display: none !important;
}

#cc-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 24px));
  background: var(--cc-bg);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  z-index: 2147483000;
}

#cc-banner .cc-wrap {
  display: grid;
  gap: 12px;
  padding: 14px;
}

#cc-banner .cc-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

#cc-banner .cc-copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cc-text-soft);
}

#cc-banner .cc-copy a {
  color: #93c5fd;
  text-decoration: underline;
}

#cc-banner .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-btn {
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.cc-btn.ghost {
  background: transparent;
  color: var(--cc-text);
}

.cc-btn.primary {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  color: #052e16;
}

.cc-btn.secondary {
  background: var(--cc-bg-soft);
  color: var(--cc-text);
}

#cc-open-settings {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483000;
  background: var(--cc-bg);
  color: var(--cc-text);
}

#cc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
}

#cc-modal .cc-overlay {
  position: absolute;
  inset: 0;
  background: var(--cc-overlay);
}

#cc-modal .cc-dialog {
  position: relative;
  margin: min(80px, 10vh) auto 0;
  width: min(640px, calc(100vw - 24px));
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

#cc-modal .cc-head {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

#cc-modal .cc-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

#cc-modal .cc-body {
  padding: 16px;
}

#cc-modal .cc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

#cc-modal .cc-row + .cc-row {
  margin-top: 10px;
}

#cc-modal .cc-row h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

#cc-modal .cc-row p {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cc-switch {
  width: 46px;
  height: 26px;
  position: relative;
  display: inline-block;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.2s;
}

.cc-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.2s;
}

.cc-switch input:checked + .cc-slider {
  background: #22c55e;
}

.cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
}

.cc-switch input:disabled + .cc-slider {
  background: #94a3b8;
}

#cc-modal .cc-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 720px) {
  #cc-banner {
    bottom: 10px;
  }

  #cc-open-settings {
    left: 10px;
    bottom: 10px;
  }
}
