/* Cookie consent panel — preset default theme.
   Retheme via the --cc-* variables below using colors from brand_config.md. */

:root {
  --cc-bg: #ffffff;
  --cc-text: #141414;
  --cc-text-muted: #6d6d6d;
  --cc-border: rgba(65, 65, 65, 0.16);
  --cc-surface: #f5f5f4;
  --cc-accent: #141414;
  --cc-accent-text: #ffffff;
  --cc-link: #010ed0;
  --cc-radius: 20px;
  --cc-font: "Inter", sans-serif;
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 10, 10, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cc-panel {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 901;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--cc-bg);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  font-family: var(--cc-font);
  transform: translate(-50%, 24px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
}

.cc-panel.cc-visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cc-tabs {
  display: flex;
  border-bottom: 1px solid var(--cc-border);
  padding: 0 24px;
}

.cc-tab {
  flex: none;
  padding: 18px 4px;
  margin-right: 28px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-text-muted);
  cursor: pointer;
}

.cc-tab.cc-active {
  color: var(--cc-link);
  border-bottom-color: var(--cc-link);
}

.cc-body {
  padding: 22px 24px 6px;
}

.cc-panel-view {
  display: none;
}

.cc-panel-view.cc-active {
  display: block;
}

.cc-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.cc-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--cc-text-muted);
  margin: 0;
}

.cc-text a {
  color: var(--cc-link);
  text-decoration: underline;
}

.cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  margin-bottom: 12px;
}

.cc-category-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
}

.cc-category-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--cc-text-muted);
  margin: 0;
}

.cc-switch {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  margin-top: 2px;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch-track {
  position: absolute;
  inset: 0;
  background: #d9d9d9;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cc-switch-track::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-switch-track {
  background: #1a2b4d;
}

.cc-switch input:checked + .cc-switch-track::before {
  transform: translateX(16px);
}

.cc-switch input:disabled + .cc-switch-track {
  background: #d9d9d9;
  cursor: not-allowed;
}

.cc-switch input:disabled + .cc-switch-track::before {
  transform: translateX(16px);
  background: #f2f2f2;
}

.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 24px 22px;
}

.cc-btn {
  flex: 1;
  min-width: 140px;
  padding: 13px 18px;
  font-family: var(--cc-font);
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cc-btn:hover {
  opacity: 0.88;
}

/* Przyciski drugorzędne — białe tło, czarny napis.
   Cienka ramka jest konieczna: bez niej biały przycisk zlałby się z białym
   tłem panelu i przestałby być rozpoznawalny jako przycisk. Rozmiar i krój
   pisma zostają identyczne jak w przycisku głównym — wybór odrzucenia zgody
   musi być tak samo łatwy do znalezienia i kliknięcia jak jej udzielenie. */
.cc-btn-ghost,
.cc-btn-outline {
  background: #fff;
  color: var(--cc-text);
  border-color: var(--cc-border);
}

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

.cc-settings-trigger {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 850;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cc-border);
  background: var(--cc-bg);
  color: var(--cc-text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cc-settings-trigger.cc-visible {
  display: flex;
}

@media (max-width: 640px) {
  .cc-panel { bottom: 12px; }
  .cc-tabs { padding: 0 16px; overflow-x: auto; }
  .cc-body { padding: 18px 16px 4px; }
  .cc-actions { padding: 14px 16px 18px; }
  .cc-btn { min-width: 100%; }
}
