:root {
  --cc-primary: #AA2121;
  --cc-primary-hover: #1e1e1e ;
  --cc-bg: #ffffff;
  --cc-text: #222222;
  --cc-muted: #666666;
  --cc-border: #e2e2e2;
  --cc-radius: 10px;
}

#cc-banner, #cc-modal-overlay {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}
#cc-banner *, #cc-modal-overlay * { box-sizing: border-box; }

/* ---- Bottom banner ---- */
#cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: var(--cc-bg);
  border-top: 1px solid var(--cc-border);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
  padding: 20px 24px;
  display: none;
}
#cc-banner.cc-visible { display: block; }

.cc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cc-banner-text {
  flex: 1 1 380px;
  color: var(--cc-text);
  font-size: 14px;
  line-height: 1.5;
}
.cc-banner-text a { color: var(--cc-primary); text-decoration: underline; }
.cc-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.cc-btn {
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.cc-btn-primary { background: var(--cc-primary); color: #fff; }
.cc-btn-primary:hover { background: var(--cc-primary-hover); }
.cc-btn-secondary { background: #eeeeee; color: var(--cc-text); }
.cc-btn-secondary:hover { background: #e0e0e0; }
.cc-btn-text { background: transparent; color: var(--cc-primary); text-decoration: underline; padding: 10px 6px; }

/* ---- Settings modal ---- */
#cc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cc-modal-overlay.cc-visible { display: flex; }

#cc-modal {
  background: var(--cc-bg);
  border-radius: var(--cc-radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px;
}
#cc-modal h2 { margin: 0 0 6px; font-size: 19px; color: var(--cc-text); }
#cc-modal p.cc-modal-intro { font-size: 14px; color: var(--cc-muted); margin: 0 0 18px; line-height: 1.5; }

.cc-category {
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cc-category-title { font-weight: bold; font-size: 14.5px; color: var(--cc-text); }
.cc-category-desc { font-size: 13px; color: var(--cc-muted); margin-top: 6px; line-height: 1.5; }

/* Toggle switch */
.cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #ccc; border-radius: 24px; transition: .2s;
}
.cc-slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; border-radius: 50%; transition: .2s;
}
.cc-switch input:checked + .cc-slider { background-color: var(--cc-primary); }
.cc-switch input:checked + .cc-slider:before { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider { opacity: 0.6; cursor: not-allowed; }

.cc-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px; flex-wrap: wrap;
}

/* Floating re-open link, optional, for footer use instead */
.cc-settings-link { cursor: pointer; color: var(--cc-primary); text-decoration: underline; background: none; border: none; font: inherit; padding: 0; }

@media (max-width: 560px) {
  .cc-banner-buttons { width: 100%; }
  .cc-btn { flex: 1 1 auto; }
}
