/* 09.10.2026 Site Analitiği — çerez bandı ve tercih penceresi (önek .ck-). Yalnız açık sayfalarda,
   giriş yapmamış ziyaretçide ve analitik açıkken yüklenir. Renkler public.css değişkenlerinden. */
.ck-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg, 0 18px 40px rgba(0, 0, 0, .18)); }
.ck-bar[hidden] { display: none; }
.ck-bar p { margin: 0; font-size: 14px; line-height: 1.5; }
.ck-bar a, .ck-dialog a { color: var(--accent); font-weight: 700; }
.ck-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ck-actions .pb-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ck-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); font-size: 20px; }
.ck-link, .ck-footlink { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck-link { margin-right: 6px; color: var(--text-soft); font-size: 14px; font-weight: 700; }
.ck-footlink { color: var(--text-soft); }

.ck-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg, 0 18px 40px rgba(0, 0, 0, .25)); }
.ck-dialog::backdrop { background: rgba(8, 20, 22, .55); }
.ck-dialog-body { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px 22px; }
.ck-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-dialog h2 { margin: 0; font-size: 20px; }
.ck-close { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.ck-muted { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); }
.ck-row strong { display: block; font-size: 15px; }
.ck-row small { display: block; margin-top: 4px; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.ck-always { flex: none; color: var(--accent); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ck-switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.ck-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ck-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .15s ease; pointer-events: none; }
.ck-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.ck-switch input:checked + span { background: var(--accent); }
.ck-switch input:checked + span::after { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
.ck-dialog footer .pb-btn { min-height: 42px; font-size: 14px; }

@media (max-width: 850px) {
    .ck-bar { flex-wrap: wrap; }
    .ck-actions { width: 100%; }
    .ck-actions .pb-btn { flex: 1; }
}
@media (max-width: 520px) {
    .ck-bar { left: 8px; right: 8px; bottom: 8px; gap: 12px; padding: 14px; }
    .ck-icon { display: none; }
    .ck-actions { flex-wrap: wrap; }
    .ck-link { order: 3; width: 100%; margin: 2px 0 0; text-align: center; }
    .ck-dialog footer { flex-direction: column-reverse; }
    .ck-dialog footer .pb-btn { width: 100%; }
}
