/* Consent-Manager (consent.js) */
.cc-root { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: flex-start; pointer-events: none; font-family: var(--font); }
.cc-root--modal {
  inset: 0; left: 0; right: 0; bottom: 0; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 8, 10, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: auto;
}
.cc-box {
  pointer-events: auto; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--line-capsule); border-radius: 22px;
  padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.cc-box--settings { width: min(540px, 100%); }
.cc-title { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.cc-text { font-size: 14px; line-height: 1.6; color: var(--text-2); margin-bottom: 10px; }
.cc-link { display: inline-block; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn {
  flex: 1 1 auto; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  padding: 13px 18px; border-radius: 999px; border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s;
}
.cc-btn--main { background: var(--text); color: var(--bg); }
.cc-btn--main:hover { background: var(--brand); }
.cc-btn--primary { background: var(--brand); color: var(--bg); }
.cc-btn--primary:hover { background: var(--text); }
.cc-btn--ghost { flex-basis: 100%; font-weight: 500; color: var(--text); border-color: var(--line-input); }
.cc-btn--ghost:hover { border-color: var(--text); }

.cc-cats { display: flex; flex-direction: column; margin: 8px 0 14px; border-top: 1px solid var(--line); }
.cc-cat { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat__name { font-size: 15px; font-weight: 600; cursor: pointer; }
.cc-cat__desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text-3); max-width: 44ch; }
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; cursor: pointer;
  width: 44px; height: 26px; border-radius: 999px; background: var(--line-input); border: 0; transition: background-color .2s;
}
.cc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text); transition: transform .2s;
}
.cc-switch:checked { background: var(--access); }
.cc-switch:checked::after { transform: translateX(18px); background: var(--bg); }
.cc-switch:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 560px) {
  .cc-root { left: 10px; right: 10px; bottom: 10px; }
  .cc-box { padding: 20px; }
  .cc-btn { flex-basis: 100%; }
}
