/* Cookie consent - lightweight, corporate */
:root {
  --cc-bg: #0f172a;
  --cc-ink: #ffffff;
  --cc-muted: rgba(255,255,255,0.8);
  --cc-surface: #ffffff;
  --cc-border: #e2e8f0;
  --cc-shadow: 0 18px 40px rgba(15,23,42,0.18);
  --cc-radius: 14px;
  --cc-accent: #0E4B9E;
}

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  background: var(--cc-bg);
  color: var(--cc-ink);
  border-radius: var(--cc-radius);
  padding: 18px 20px;
  box-shadow: var(--cc-shadow);
  display: none;
}

.cc-banner.is-visible {
  display: block;
}

.cc-banner__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-muted);
}

.cc-banner__text a {
  color: #dbeafe;
  text-decoration: underline;
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cc-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--cc-ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn--primary {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.cc-btn--ghost {
  background: rgba(255,255,255,0.12);
}

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2100;
}

.cc-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cc-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(820px, 94vw);
  background: var(--cc-surface);
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2200;
}

.cc-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cc-modal__head {
  padding: 20px 24px 8px;
  font-size: 20px;
  font-weight: 700;
}

.cc-modal__body {
  padding: 8px 24px 18px;
  font-size: 14px;
  color: #334155;
}

.cc-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.cc-item {
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.cc-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-item__title {
  font-weight: 700;
  font-size: 15px;
}

.cc-item__desc {
  font-size: 13px;
  color: #475569;
}

.cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.cc-toggle input[type="checkbox"] {
  width: 42px;
  height: 22px;
  appearance: none;
  background: #e2e8f0;
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .2s ease;
}

.cc-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .2s ease;
}

.cc-toggle input[type="checkbox"]:checked {
  background: var(--cc-accent);
}

.cc-toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.cc-toggle input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 22px;
}

.cc-modal .cc-btn {
  color: #0f172a;
  border-color: #cbd5e1;
}

.cc-modal .cc-btn--ghost {
  background: #f8fafc;
}

.cc-link {
  color: var(--cc-accent);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

.cc-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--cc-border);
  background: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tally-blocked {
  padding: 16px;
  border-radius: 12px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.08);
  font-size: 14px;
  color: #334155;
  display: block;
}
/* Floating cookie preferences button */
.cc-fab {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15,23,42,0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  z-index: 2000;
}

.cc-fab svg {
  width: 24px;
  height: 24px;
}

.cc-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15,23,42,0.28);
}

.cc-fab--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.cc-fab__img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
}
