/* =====================================================================
   Villora — çerez rızası (Reklam Merkezi). site.css değişkenlerini kullanır.
   Banner: alt, engellemeyen kart · Tercihler: dialog.modal.cc-modal
   ===================================================================== */
.cc-banner {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 100;
  max-width: 980px; margin-inline: auto;
  display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap;
  padding: 20px 22px; background: var(--card, #fffdf9); color: var(--ink, #13201f);
  border: 1px solid var(--line, #e2d8c7); border-radius: var(--r, 18px); box-shadow: var(--sh-3);
  animation: ccIn .32s var(--ease, ease-out);
}
.cc-banner:focus { outline: none; }
.cc-banner.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity .24s, transform .24s; }
.cc-text { flex: 1 1 380px; min-width: 0; }
.cc-title { margin: 0 0 4px; font: 600 20px/1.25 var(--f-display, Georgia, serif); letter-spacing: -.01em; }
.cc-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2, #33403e); }
.cc-policy { color: var(--sea, #0e4f53); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 1 auto; }
.cc-btn { height: 42px; padding: 0 18px; font-size: 14px; }
/* Kabul ve ret eşit ağırlıkta (KVKK/GDPR) */
.cc-btn-main { background: var(--sea, #0e4f53); color: #fff; }
.cc-btn-main:hover { background: var(--sea-2, #17676b); }
.cc-btn-prefs { border-color: var(--line-2, #d3c6b1); }

/* Tercihler penceresi */
dialog.cc-modal { width: min(560px, calc(100vw - 24px)); z-index: 110; }
.cc-modal .modal-h h3 { font-size: 22px; font-family: var(--f-display, Georgia, serif); }
.cc-modal [data-close] { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.cc-modal [data-close]:hover { background: var(--paper-2, #efe7da); }
.cc-modal [data-close] svg { width: 18px; height: 18px; }
.cc-body { display: grid; gap: 14px; }
.cc-intro { margin: 0; font-size: 14px; color: var(--ink-2, #33403e); }
.cc-cat { padding: 14px 16px; border: 1px solid var(--line, #e2d8c7); border-radius: var(--r-sm, 12px); background: var(--card, #fffdf9); }
.cc-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-t { font-weight: 800; font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-always { font-size: 11.5px; font-weight: 700; color: var(--ok, #2e8b57); background: var(--sea-soft, #dceae6); padding: 2px 8px; border-radius: 99px; }
.cc-cat-d { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted, #6b7774); }
.cc-modal-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 24px 22px; border-top: 1px solid var(--line, #e2d8c7); }

/* Anahtar (switch) */
.cc-switch { position: relative; width: 46px; height: 26px; flex: none; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-knob { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2, #d3c6b1); transition: background .2s; }
.cc-knob::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease, ease); }
.cc-switch input:checked + .cc-knob { background: var(--sea, #0e4f53); }
.cc-switch input:checked + .cc-knob::after { transform: translateX(20px); }
html[dir="rtl"] .cc-switch input:checked + .cc-knob::after { transform: translateX(-20px); }
.cc-switch input:disabled + .cc-knob { opacity: .6; }
.cc-switch input:focus-visible + .cc-knob { outline: 2px solid var(--sea, #0e4f53); outline-offset: 2px; }

/* Altbilgi bağlantısı (button) */
.ftr [data-consent-open] { font: inherit; color: inherit; opacity: .85; padding: 0; text-align: start; }
.ftr [data-consent-open]:hover { opacity: 1; text-decoration: underline; }

@keyframes ccIn { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 760px) {
  .cc-banner { inset-inline: 10px; bottom: 10px; padding: 16px; gap: 14px; }
  /* Mobil alt menünün üstünde dur */
  body.has-mnav .cc-banner { bottom: calc(68px + env(safe-area-inset-bottom)); }
  .cc-title { font-size: 18px; }
  .cc-desc { font-size: 13.5px; }
  .cc-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cc-actions .cc-btn-prefs { grid-column: 1 / -1; }
  .cc-btn { padding: 0 12px; }
  .cc-modal-f { padding: 14px 16px 18px; }
  .cc-modal-f .cc-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-banner.is-leaving { animation: none; transition: none; }
  .cc-knob, .cc-knob::after { transition: none; }
}
