/* Çerez bildirimi ve tercihler penceresi (consent.js). Sitenin açık teması,
   renkleri ve yazı tipi; sabit konum: sayfa içeriği kaymaz. */
.cc-banner, .cc-overlay {
  --cc-brand: var(--brand, #8C57FF); --cc-brand-2: var(--brand-2, #A379FF);
  --cc-ink: var(--ink, #2E263D); --cc-muted: var(--muted, #6D6777);
  --cc-card: var(--card, #fff); --cc-line: var(--line, #ECEAF2); --cc-tint: #EDE5FF;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cc-ink); line-height: 1.5; box-sizing: border-box;
}
.cc-banner *, .cc-overlay * { box-sizing: border-box; }
.cc-banner {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 16px 24px;
  background: var(--cc-card); border: 1px solid var(--cc-line); border-radius: 18px;
  padding: 18px 20px; box-shadow: 0 20px 50px -18px rgba(46, 38, 61, .35);
  animation: cc-in .2s ease-out;
}
.cc-banner-body { flex: 1 1 auto; min-width: 0; }
.cc-title { font-size: 16px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.cc-text { font-size: 14px; color: var(--cc-muted); margin: 0; overflow-wrap: anywhere; }
.cc-text a { color: var(--cc-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.cc-btn {
  font: inherit; font-size: 14px; font-weight: 700; height: 42px; padding: 0 16px; border-radius: 12px;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.cc-btn:hover { transform: translateY(-1px); }
/* Kabul ve Ret aynı görsel ağırlıkta (Kurul rehberi: ret seçeneği kabul kadar kolay). */
.cc-main { color: #fff; background: linear-gradient(135deg, var(--cc-brand), var(--cc-brand-2)); box-shadow: 0 8px 20px -10px var(--cc-brand); }
.cc-ghost { color: var(--cc-ink); background: var(--cc-card); border-color: var(--cc-line); }
.cc-btn:focus-visible, .cc-x:focus-visible, .cc-text a:focus-visible, .cc-switch:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cc-brand) 55%, transparent); outline-offset: 2px;
}

.cc-overlay {
  position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; padding: 16px;
  background: rgba(46, 38, 61, .45);
}
.cc-overlay[hidden] { display: none; }
.cc-dialog {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--cc-card); border-radius: 20px; padding: 22px; box-shadow: 0 30px 70px -20px rgba(46, 38, 61, .5);
  animation: cc-in .18s ease-out;
}
.cc-dialog:focus { outline: none; }
.cc-d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cc-d-head .cc-title { font-size: 20px; margin-bottom: 8px; }
.cc-x {
  font: inherit; font-size: 24px; line-height: 1; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px;
  border: 1px solid var(--cc-line); background: var(--cc-card); color: var(--cc-muted); cursor: pointer;
}
.cc-cats { display: grid; gap: 10px; margin: 16px 0 18px; }
.cc-cat { border: 1px solid var(--cc-line); border-radius: 14px; padding: 12px 14px; }
.cc-cat-head { display: flex; align-items: center; gap: 10px; }
.cc-cat-title { font-weight: 800; font-size: 15px; margin-right: auto; }
.cc-pill { font-size: 12px; font-weight: 700; color: var(--cc-brand); background: var(--cc-tint); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cc-cat-desc { font-size: 13.5px; color: var(--cc-muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.cc-none { font-size: 13.5px; color: var(--cc-muted); margin: 0; padding: 10px 14px; background: #F7F5FB; border-radius: 12px; }
/* Anahtar görünümlü onay kutusu */
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px;
  background: #D9D5E2; position: relative; cursor: pointer; margin: 0; transition: background .15s;
}
.cc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s;
}
.cc-switch:checked { background: var(--cc-brand); }
.cc-switch:checked::after { transform: translateX(18px); }
.cc-switch:disabled { cursor: not-allowed; opacity: .7; }
.cc-dialog .cc-actions { justify-content: flex-end; }

.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html.cc-lock, html.cc-lock body { overflow: hidden; }
@keyframes cc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-banner, .cc-dialog { animation: none; } .cc-btn { transition: none; } }

@media (max-width: 760px) {
  .cc-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 14px; gap: 12px; }
  .cc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-actions .cc-ghost { grid-column: 1 / -1; }
  .cc-btn { width: 100%; padding: 0 10px; white-space: normal; line-height: 1.2; }
  .cc-dialog { padding: 18px; }
  .cc-dialog .cc-actions { grid-template-columns: 1fr 1fr; }
}
@media print { .cc-banner, .cc-overlay { display: none !important; } }
