:root {
  --cc-bg: #ffffff;
  --cc-text: #0f172a;
  --cc-muted: #64748b;
  --cc-border: #e2e8f0;
  --cc-accent: #1e3a5f;
  --cc-accent-text: #ffffff;
  --cc-secondary-bg: #f1f5f9;
  --cc-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"],
.theme-dark {
  --cc-bg: #111827;
  --cc-text: #e5e7eb;
  --cc-muted: #94a3b8;
  --cc-border: #1f2937;
  --cc-accent: #d4a853;
  --cc-accent-text: #0b1220;
  --cc-secondary-bg: #1f2937;
  --cc-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: var(--cc-bg);
  color: var(--cc-text);
  border-top: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  padding: 18px 20px 20px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

#cookie-consent-banner.cc-visible {
  transform: translateY(0);
}

.cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.cc-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.cc-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cc-muted);
  line-height: 1.5;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-btn {
  border: 1px solid var(--cc-border);
  background: var(--cc-secondary-bg);
  color: var(--cc-text);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.cc-btn-primary {
  background: var(--cc-accent);
  color: var(--cc-accent-text);
  border-color: transparent;
}

.cc-prefs {
  display: none;
  border-top: 1px solid var(--cc-border);
  padding-top: 12px;
  margin-top: 4px;
}

.cc-prefs.cc-open {
  display: block;
}

.cc-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
}

.cc-pref-row label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-pref-row small {
  color: var(--cc-muted);
}

.cc-pref-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .cc-actions {
    flex-direction: column;
  }
  .cc-btn {
    width: 100%;
  }
}
