/* ============================================================
   Conica Studio — Cookie Consent
   Restrained editorial banner. Dark stage, light type.
   ============================================================ */

.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--stage);
  color: var(--on-stage-1);
  border-top: 1px solid var(--on-stage-line);
  font-family: var(--font-sans);
  transform: translateY(100%);
  transition: transform 480ms var(--ease-out);
  max-height: 90vh;
  overflow-y: auto;
}
.cc-banner.cc-open { transform: translateY(0); }
.cc-banner[hidden] { display: none; }

.cc-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--page-margin);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cc-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-stage-2);
  max-width: 78ch;
}
.cc-text strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-stage-3);
  margin-bottom: 10px;
}
.cc-text a {
  color: var(--on-stage-1);
  border-bottom: 1px solid var(--on-stage-line);
  padding-bottom: 1px;
}
.cc-text a:hover { border-bottom-color: var(--accent); opacity: 1; }

.cc-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--on-stage-1);
  border: 0;
  padding: 14px 0 4px;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out), opacity 240ms var(--ease-out);
}
.cc-btn:hover { border-bottom-color: var(--on-stage-1); }
.cc-btn:focus-visible { outline: 1px solid var(--on-stage-1); outline-offset: 4px; }

.cc-btn.cc-primary {
  background: var(--paper);
  color: var(--ink);
  padding: 16px 28px;
  border-bottom: 0;
}
.cc-btn.cc-primary:hover { opacity: 0.78; border-bottom: 0; }

.cc-btn.cc-text-link {
  font-size: 11px;
  color: var(--on-stage-2);
  border-bottom: 1px solid var(--on-stage-line);
  padding: 0 0 2px;
}
.cc-btn.cc-text-link:hover { color: var(--on-stage-1); border-bottom-color: var(--on-stage-1); }

/* ─── SETTINGS PANEL ───────────────────────────────── */
.cc-settings {
  display: none;
  border-top: 1px solid var(--on-stage-line);
  padding: 40px var(--page-margin) 32px;
  max-width: var(--page-max);
  margin: 0 auto;
}
.cc-banner.cc-settings-open .cc-settings { display: block; }
.cc-banner.cc-settings-open .cc-actions .cc-toggle-settings { border-bottom-color: var(--on-stage-1); }

.cc-settings-head {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-stage-3); margin-bottom: 28px;
}

.cc-pref {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--on-stage-line);
  align-items: start;
}
.cc-pref:last-of-type { border-bottom: 1px solid var(--on-stage-line); }
.cc-pref-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-stage-1);
  margin: 0 0 6px;
}
.cc-pref-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-stage-2);
  max-width: 64ch;
  margin: 0;
}
.cc-pref-always {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-stage-3);
  align-self: center;
}

/* Toggle switch */
.cc-switch {
  position: relative;
  width: 44px; height: 24px;
  display: inline-block;
  align-self: center;
}
.cc-switch input {
  opacity: 0; width: 0; height: 0;
  position: absolute;
}
.cc-switch .cc-slider {
  position: absolute; inset: 0;
  background: var(--stage-soft);
  border: 1px solid var(--on-stage-line);
  cursor: pointer;
  transition: background 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.cc-switch .cc-slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--on-stage-3);
  transition: transform 240ms var(--ease-out), background 240ms var(--ease-out);
}
.cc-switch input:checked + .cc-slider {
  background: var(--paper);
  border-color: var(--paper);
}
.cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
  background: var(--ink);
}
.cc-switch input:focus-visible + .cc-slider {
  outline: 1px solid var(--on-stage-1); outline-offset: 2px;
}

.cc-settings-actions {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 760px) {
  .cc-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px var(--page-margin);
  }
  .cc-actions {
    justify-content: flex-start;
    width: 100%;
    gap: 20px 24px;
  }
  .cc-pref {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cc-settings-actions { justify-content: flex-start; }
}
