/* ---------- Cookie consent (GDPR / ePrivacy) ---------- */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 24, 0.55);
  backdrop-filter: blur(2px);
  z-index: 900;
  display: none;
}
.cc-overlay.show { display: block; }

.cc-banner {
  position: fixed;
  z-index: 950;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  background: #141416;
  color: var(--ink, #f3f4f5);
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 26px 28px;
  font-family: var(--font, Arial, sans-serif);
  display: none;
}
.cc-banner.show { display: block; }

.cc-banner h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: #fff;
}
.cc-banner p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #a0a5ab;
  margin: 0 0 18px;
}
.cc-banner p a { color: var(--accent-2, #ff9a3d); text-decoration: underline; }

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cc-btn {
  flex: 1 1 auto;
  min-width: 150px;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cc-accept { background: var(--accent, #f4761d); color: #16110a; }
.cc-accept:hover { background: var(--accent-2, #ff9a3d); }
.cc-reject { background: #232327; color: #f3f4f5; border-color: #33333a; }
.cc-reject:hover { background: #2c2c31; }
.cc-custom { background: transparent; color: #f3f4f5; border-color: #3a3a42; }
.cc-custom:hover { background: #202024; }

/* Preferences panel */
.cc-prefs { display: none; margin-top: 22px; border-top: 1px solid #2a2a2e; padding-top: 18px; }
.cc-prefs.show { display: block; }

.cc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #232327;
}
.cc-cat:last-child { border-bottom: 0; }
.cc-cat .cc-cat-text h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: #fff;
}
.cc-cat .cc-cat-text p { margin: 0; font-size: 0.82rem; color: #9aa0a6; }

/* Toggle switch */
.cc-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; margin-top: 2px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute;
  inset: 0;
  background: #3a3a42;
  border-radius: 999px;
  transition: background 0.2s;
}
.cc-slider::before {
  content: "";
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cc-switch input:checked + .cc-slider { background: var(--accent, #f4761d); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { background: var(--accent-deep, #e0530f); opacity: 0.5; cursor: not-allowed; }

.cc-prefs-actions { display: flex; gap: 10px; margin-top: 18px; }

/* Reopen link in footer */
.cc-reopen { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; }
.cc-reopen:hover { color: var(--accent-2, #e0be6f); }

@media (max-width: 560px) {
  .cc-banner { padding: 20px; bottom: 0; border-radius: 8px 8px 0 0; width: 100%; }
  .cc-btn { min-width: 100%; }
}
