/* Cookie consent — banner + preferences sheet */

.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  display: none;
  max-width: 880px; margin: 0 auto;
}
.cc-banner.cc-open { display: block; }
.cc-banner h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.cc-banner p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cc-banner p a { color: var(--text); text-decoration: underline; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-btn {
  flex: 0 0 auto;
  padding: 10px 18px;
  font: inherit; font-size: 14px; font-weight: 600;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface2); color: var(--text);
  min-width: 120px;
}
.cc-btn:hover { opacity: 0.85; }
.cc-btn.cc-primary { background: var(--lime); color: #0E0E12; border-color: var(--lime); }

@media (max-width: 560px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px 18px; }
  .cc-actions { justify-content: stretch; }
  .cc-btn { flex: 1 1 100%; min-width: 0; }
}

.cc-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.cc-backdrop.cc-open { display: flex; }
.cc-sheet {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow: auto;
  padding: 24px;
}
.cc-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cc-sheet-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.cc-close {
  background: none; border: none; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.cc-row {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin: 12px 0;
  background: var(--surface2);
}
.cc-row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-row-head strong { font-size: 14px; }
.cc-row p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cc-switch {
  position: relative; width: 42px; height: 24px;
  background: var(--border); border-radius: 999px;
  cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.cc-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform 0.15s;
}
.cc-switch[aria-checked="true"] { background: var(--lime); }
.cc-switch[aria-checked="true"]::after { transform: translateX(18px); }
.cc-switch[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.cc-sheet-save { width: 100%; margin-top: 16px; }
