#cc-banner,
#cc-settings {
  --cc-magenta: #D8008D;
  --cc-magenta-dark: #B8007A;
  --cc-black: #0A0A0A;
  --cc-black-2: #1a1a1a;
  --cc-border: #2a2a2a;
  --cc-text: #ddd;
  --cc-muted: #999;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

#cc-banner *,
#cc-settings * {
  box-sizing: border-box;
}

#cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 20px clamp(16px, 4vw, 32px);
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid var(--cc-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#cc-banner.cc-visible {
  transform: translateY(0);
  opacity: 1;
}

#cc-banner .cc-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#cc-banner .cc-text {
  flex: 1 1 320px;
  color: var(--cc-text);
}

#cc-banner .cc-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

#cc-banner .cc-desc {
  margin: 0;
  color: var(--cc-muted);
  font-size: 13px;
}

#cc-banner .cc-desc a {
  color: var(--cc-magenta);
  text-decoration: none;
  font-weight: 600;
}

#cc-banner .cc-desc a:hover {
  color: #fff;
}

#cc-banner .cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cc-btn {
  appearance: none;
  border: 0;
  border-radius: 99px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cc-btn-primary {
  background: var(--cc-magenta);
  color: #fff;
}

.cc-btn-primary:hover {
  background: var(--cc-magenta-dark);
}

.cc-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #444;
}

.cc-btn-secondary:hover {
  border-color: #666;
}

.cc-btn-ghost {
  background: transparent;
  color: var(--cc-muted);
  border: 0;
  text-decoration: underline;
  padding-inline: 8px;
}

.cc-btn-ghost:hover {
  color: #fff;
}

#cc-settings {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

#cc-settings.cc-open {
  display: flex;
}

#cc-settings .cc-panel {
  width: min(520px, 100%);
  max-height: min(90vh, 680px);
  overflow: auto;
  background: var(--cc-black);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  padding: 28px;
}

#cc-settings .cc-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

#cc-settings .cc-panel > p {
  margin: 0 0 20px;
  color: var(--cc-muted);
  font-size: 13px;
}

#cc-settings .cc-category {
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--cc-black-2);
}

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

#cc-settings .cc-category h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

#cc-settings .cc-category p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--cc-muted);
}

#cc-settings .cc-always-on {
  font-size: 11px;
  font-weight: 700;
  color: var(--cc-magenta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#cc-settings .cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

#cc-settings .cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

#cc-settings .cc-toggle span {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#cc-settings .cc-toggle span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

#cc-settings .cc-toggle input:checked + span {
  background: var(--cc-magenta);
}

#cc-settings .cc-toggle input:checked + span::after {
  transform: translateX(20px);
}

#cc-settings .cc-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 640px) {
  #cc-banner .cc-inner {
    flex-direction: column;
    align-items: stretch;
  }

  #cc-banner .cc-actions {
    flex-direction: column;
  }

  .cc-btn {
    width: 100%;
    text-align: center;
  }
}
