/* ==========================================================================
   Çerez onayı — alt bant + tercih paneli (Views/Shared/_CerezOnay.cshtml)
   - Bant sayfayi KILITLEMEZ: masaustunde sol altta kart (sagdaki WhatsApp
     butonuyla cakismaz), mobilde tam genislik alt panel (iletisim cubugunun ustunde).
   - Panel, SMS dogrulama popup'iyla ayni tasma korumasini kullanir:
     kaydirma overlay'de, kutu margin:auto ile ortalanir.
   ========================================================================== */

.cz-bant[hidden], .cz-panel[hidden] { display: none !important; }

/* ---------------------------------------------------------------- butonlar */
.cz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--r-sm, 10px);
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t);
}

.cz-btn--koyu {
    background: var(--ink, #14171A);
    color: #fff;
    border: 1.5px solid var(--ink, #14171A);
}
    .cz-btn--koyu:hover { background: var(--gri-dark, #6A6C6E); border-color: var(--gri-dark, #6A6C6E); }

.cz-btn--cizgi {
    background: #fff;
    color: var(--ink, #14171A);
    border: 1.5px solid var(--line-2, #DDE2E6);
}
    .cz-btn--cizgi:hover { border-color: var(--ink, #14171A); }

.cz-btn:focus-visible,
.cz-panel__kapat:focus-visible,
.cz-anahtar input:focus-visible + .cz-anahtar__iz {
    outline: 2px solid var(--ink, #14171A);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- alt bant */
.cz-bant {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 2147482500; /* header, karsilastirma ve iletisim cubugunun ustunde; SMS popup'in altinda */
    width: min(560px, calc(100vw - 44px));
    background: var(--card, #fff);
    color: var(--ink, #14171A);
    border: 1px solid var(--line, #E7EAED);
    border-radius: var(--r-lg, 20px);
    box-shadow: var(--sh-3, 0 30px 70px rgba(9,11,14,.16));
    padding: 20px 22px;
    animation: czIn .25s cubic-bezier(.4, 0, .2, 1);
}

.cz-bant__baslik {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.cz-bant__metin {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gri-dark, #6A6C6E);
    margin: 0 0 8px;
}

.cz-bant__linkler,
.cz-panel__alt {
    font-size: 13px;
    color: var(--muted, #697682);
    margin: 0;
}
    .cz-bant__linkler a,
    .cz-panel__alt a { color: var(--ink, #14171A); text-decoration: underline; text-underline-offset: 2px; }
    .cz-bant__linkler span,
    .cz-panel__alt span { margin: 0 6px; }

.cz-bant__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}
    .cz-bant__btns .cz-btn--cizgi { grid-column: 1 / -1; }

@keyframes czIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
    .cz-bant {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        border-radius: var(--r-lg, 20px) var(--r-lg, 20px) 0 0;
        border-bottom: none;
        padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        max-height: 85vh;
        overflow-y: auto;
    }
    .cz-bant__metin { font-size: 13.5px; }
}

/* ---------------------------------------------------------------- panel */
.cz-panel {
    position: fixed;
    inset: 0;
    z-index: 2147482600;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    background: rgba(9, 11, 14, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

body.cz-panel-acik { overflow: hidden; }

.cz-panel__kutu {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: auto;
    background: var(--card, #fff);
    border-radius: var(--r-lg, 20px);
    box-shadow: var(--sh-3, 0 30px 70px rgba(9,11,14,.16));
    padding: 26px 24px 22px;
    animation: czIn .22s cubic-bezier(.4, 0, .2, 1);
}

.cz-panel__kapat {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--muted, #697682);
    border-radius: 50%;
    cursor: pointer;
}
    .cz-panel__kapat:hover { background: var(--soft, #F5F6F8); color: var(--ink, #14171A); }
    .cz-panel__kapat svg { width: 20px; height: 20px; }

.cz-panel__baslik {
    font-family: var(--display);
    font-size: 21px;
    font-weight: 700;
    margin: 0 40px 6px 0;
}

.cz-panel__giris {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gri-dark, #6A6C6E);
    margin: 0 0 16px;
}

.cz-kat {
    border: 1px solid var(--line, #E7EAED);
    border-radius: var(--r, 14px);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.cz-kat__ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}
div.cz-kat__ust { cursor: default; }

.cz-kat__ad { font-size: 15px; font-weight: 700; color: var(--ink, #14171A); }
.cz-kat__sabit { font-size: 12.5px; font-weight: 700; color: var(--muted, #697682); white-space: nowrap; }

.cz-kat__acik {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gri-dark, #6A6C6E);
    margin: 6px 0 0;
}

/* Anahtar (switch) — gercek checkbox gorunmez ama erisilebilir kalir */
.cz-anahtar { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.cz-anahtar input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.cz-anahtar__iz {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: var(--line-2, #DDE2E6);
    transition: background var(--t);
    pointer-events: none;
}
    .cz-anahtar__iz::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(20, 23, 26, .25);
        transition: transform var(--t);
    }
.cz-anahtar input:checked + .cz-anahtar__iz { background: var(--ink, #14171A); }
    .cz-anahtar input:checked + .cz-anahtar__iz::after { transform: translateX(20px); }

.cz-panel__btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0 12px;
}

@media (max-width: 560px) {
    .cz-panel__btns { grid-template-columns: 1fr; }
    .cz-panel__kutu { padding: 22px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .cz-bant, .cz-panel__kutu { animation: none; }
}

/* Çerez Politikası sayfasındaki "Çerez tercihleriniz" kutusu (#tercihler) */
.cz-durum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 26px;
    padding: 18px 20px;
    background: var(--soft, #F5F6F8);
    border: 1px solid var(--line, #E7EAED);
    border-radius: var(--r, 14px);
    scroll-margin-top: 110px; /* sabit header altinda kalmasin */
}
.cz-durum__baslik { font-size: 16px; font-weight: 700; color: var(--ink, #14171A); margin: 0 0 8px; }
.cz-durum__liste {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--gri-dark, #6A6C6E);
}
    .cz-durum__liste b { font-weight: 700; color: var(--muted, #697682); }
    .cz-durum__liste b.is-acik { color: var(--ink, #14171A); }
.cz-durum__not { font-size: 13px; color: var(--muted, #697682); margin: 8px 0 0; }
.cz-durum .cz-btn { flex: 0 0 auto; }

@media (max-width: 560px) {
    .cz-durum { flex-direction: column; align-items: stretch; }
}

/* Altbilgideki "Çerez tercihleri" — diger yasal linklerle ayni gorunum */
.fcerez-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--ink);
    opacity: .88;
    cursor: pointer;
    text-align: left;
    transition: color var(--t);
}
    .fcerez-btn:hover { color: var(--gri); }
