/* Cookie Consent Banner - drop-in styles */
#cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: #1f2329;
  color: #f1f1f1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 20px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.25);
  display: none;
}
#cc-banner.cc-visible { display: block; }
#cc-banner a { color: #8ab4ff; text-decoration: underline; }
.cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cc-text { flex: 1 1 380px; }
.cc-text strong { display: block; margin-bottom: 4px; font-size: 15px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-btn {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.cc-btn-accept { background: #3b82f6; color: #fff; }
.cc-btn-accept:hover { background: #2563eb; }
.cc-btn-decline { background: transparent; color: #f1f1f1; border-color: #555; }
.cc-btn-decline:hover { background: #2a2f37; }
.cc-btn-settings { background: transparent; color: #cfd3d8; text-decoration: underline; border: none; padding: 9px 4px; }

/* Decline/settings buttons inside the light-background modal need dark text */
.cc-modal-box .cc-btn-decline { color: #1f2329; border-color: #ccc; }
.cc-modal-box .cc-btn-decline:hover { background: #f3f4f6; }

/* Settings/preferences panel */
#cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#cc-modal.cc-visible { display: flex; }
.cc-modal-box {
  background: #fff;
  color: #1f2329;
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-height: 85vh;
  overflow-y: auto;
}
.cc-modal-box h2 { margin: 0 0 12px; font-size: 18px; }
.cc-modal-box p { margin: 0 0 16px; font-size: 14px; color: #444; }
.cc-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
}
.cc-category:first-of-type { border-top: none; }
.cc-category-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.cc-category-info span { font-size: 13px; color: #666; }
.cc-switch { position: relative; width: 42px; height: 24px; flex: none; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background .15s;
}
.cc-slider::before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.cc-switch input:checked + .cc-slider { background: #3b82f6; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider { background: #9ca3af; cursor: not-allowed; opacity: .7; }
.cc-modal-actions { display: flex; gap: 8px; margin-top: 20px; justify-content: flex-end; }
