/* =========================================================================
   Çerez onay bandı + tercih modalı (KVKK/GDPR Consent Mode v2)
   Turuncu hub teması (#019C61). Inline stil YASAK — tüm görsel burada.
   ========================================================================= */

:root {
    --cerez-turuncu: #019C61;
    --cerez-turuncu-koyu: #017E4E;
}

/* Görünürlük — JS 'cerez-acik' sınıfını ekler/kaldırır. Varsayılan gizli. */
.cerez-bar,
.cerez-modal-overlay {
    display: none;
}
.cerez-bar.cerez-acik,
.cerez-modal-overlay.cerez-acik {
    display: block;
}
.cerez-modal-overlay.cerez-acik {
    display: flex;
}

/* ── Kompakt tercih kartı (sol alt) ──────────────────────────────────── */
/* Sol altta durur: sağ alttaki Yardım paneli (_CanliChat) kapanmaz. */
.cerez-bar {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9990;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    padding: 16px;
    animation: cerezYukari 0.28s ease-out;
}
@keyframes cerezYukari {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cerez-bar-baslik {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cerez-bar-baslik svg {
    width: 18px;
    height: 18px;
    color: var(--cerez-turuncu);
    flex-shrink: 0;
}
.cerez-bar-aciklama {
    font-size: 12.5px;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}
.cerez-bar-aciklama a {
    color: var(--cerez-turuncu);
    text-decoration: underline;
    font-weight: 600;
}

/* Zorunlu / isteğe bağlı satırları */
.cerez-bar-kat {
    list-style: none;
    margin: 12px 0;
    padding: 0;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
}
.cerez-bar-kat li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    font-size: 12.5px;
}
.cerez-bar-kat li + li { border-top: 1px solid #f1f5f9; }
.cerez-bar-kat-ad { font-weight: 600; color: #0f172a; }
.cerez-bar-kat-durum { color: #64748b; text-align: right; }
.cerez-bar-kat-durum--acik { color: var(--cerez-turuncu); font-weight: 600; }

.cerez-bar-butonlar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Butonlar ────────────────────────────────────────────────────────── */
.cerez-btn {
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.cerez-btn-birincil {
    background: var(--cerez-turuncu);
    color: #ffffff;
}
.cerez-btn-birincil:hover { background: var(--cerez-turuncu-koyu); }
.cerez-btn-ikincil {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}
.cerez-btn-ikincil:hover { background: #f8fafc; border-color: #94a3b8; }
.cerez-btn-metin {
    background: transparent;
    color: #475569;
    padding: 10px 12px;
    text-decoration: underline;
}
.cerez-btn-metin:hover { color: var(--cerez-turuncu); }
/* Karttaki üç seçenek: bilinçli olarak aynı görünüm — hiçbiri "doğru cevap" gibi öne çıkmaz. */
.cerez-btn-esit {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    text-align: center;
}
.cerez-btn-esit:hover { background: #f8fafc; border-color: var(--cerez-turuncu); color: var(--cerez-turuncu-koyu); }
.cerez-btn:focus-visible { outline: 2px solid var(--cerez-turuncu); outline-offset: 2px; }

/* ── Tercih modalı ───────────────────────────────────────────────────── */
.cerez-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(15, 23, 42, 0.5);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cerez-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    animation: cerezModalIn 0.2s ease-out;
}
@keyframes cerezModalIn {
    from { transform: scale(.96); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.cerez-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 12px;
}
.cerez-modal-head h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.cerez-modal-head p {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0 0;
    line-height: 1.5;
}
.cerez-modal-kapat {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.cerez-modal-kapat:hover { color: #0f172a; }

.cerez-modal-govde { padding: 8px 24px 4px; }

/* Kategori kartı */
.cerez-kat {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.cerez-kat-bilgi h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}
.cerez-kat-bilgi p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.cerez-kat-zorunlu-etiket {
    font-size: 12px;
    font-weight: 600;
    color: var(--cerez-turuncu);
    white-space: nowrap;
    padding-top: 2px;
}

/* Toggle */
.cerez-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.cerez-switch input { opacity: 0; width: 0; height: 0; }
.cerez-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background .18s;
}
.cerez-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform .18s;
}
.cerez-switch input:checked + .cerez-slider { background: var(--cerez-turuncu); }
.cerez-switch input:checked + .cerez-slider::before { transform: translateX(18px); }
.cerez-switch input:disabled + .cerez-slider { background: var(--cerez-turuncu); opacity: .55; cursor: not-allowed; }

.cerez-modal-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 12px 24px 22px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

/* ── Mobil ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .cerez-bar { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
    .cerez-modal-foot { justify-content: stretch; }
    .cerez-modal-foot .cerez-btn { flex: 1 1 auto; text-align: center; }
}
