/* Çerez onay çubuğu: sayfanın altına sabitlenir. Metin üstte, butonlar altta; "Çerezleri Yönet" paneli butonların üstünde açılır. */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: #fff;
    color: #2f2e2a;
    border-top: 3px solid #f9d342;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* display verilen öğelerde hidden niteliği tek başına yetmez. */
.cookie-consent[hidden],
.cookie-consent__manage[hidden] {
    display: none !important;
}

.cookie-consent__inner {
    max-width: 1200px;
    max-height: 85vh;
    margin: 0 auto;
    /* Alt dolgu butonlardadır (bkz. .cookie-consent__actions): yapışık butonların altında içerik görünmesin. */
    padding: 1rem 1.25rem 0;
    overflow-y: auto;
}

.cookie-consent__text {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
}

.cookie-consent__links {
    margin: 0 0 0.875rem;
    font-size: 0.8125rem;
}

/* Yurt dışı aktarım bilgisi: ana metnin hemen altında, biraz daha küçük. */
.cookie-consent__note {
    margin: 0 0 0.25rem;
    color: #55534e;
    font-size: 0.8125rem;
}

.cookie-consent__links a {
    color: inherit;
    text-decoration: underline;
}

/* ---- Çerezleri Yönet paneli ---- */
.cookie-consent__manage {
    margin: 0 0 1rem;
    border-top: 1px solid #e5e5e5;
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-consent__category-text {
    min-width: 0;
}

.cookie-consent__category-title {
    display: block;
    margin: 0 0 0.125rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.cookie-consent__category-text p {
    margin: 0;
    color: #55534e;
}

/* Anahtar: gerçek onay kutusu görünmez ama klavye ve ekran okuyucuyla erişilebilir kalır. */
.cookie-consent__switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.cookie-consent__switch input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cookie-consent__switch input:disabled {
    cursor: not-allowed;
}

.cookie-consent__slider {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: #bdbab3;
    transition: background-color 0.15s;
}

.cookie-consent__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
    background: #2f2e2a;
}

.cookie-consent__switch input:checked + .cookie-consent__slider::before {
    transform: translateX(20px);
}

.cookie-consent__switch input:disabled + .cookie-consent__slider {
    opacity: 0.55;
}

.cookie-consent__switch input:focus-visible + .cookie-consent__slider {
    outline: 2px solid #2f2e2a;
    outline-offset: 2px;
}

/* ---- Butonlar ---- */
/* Ayrıntılar açılıp panel kaydırılabilir olunca butonlar altta görünür kalır. */
.cookie-consent__actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0 1rem;
    background: #fff;
}

/* Kabul ve ret aynı boyut ve ağırlıktadır; biri diğerinden gizlenmez ya da küçültülmez. */
.cookie-consent__btn {
    min-width: 150px;
    padding: 0.6rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.cookie-consent__btn--accept {
    background: #f9d342;
    border-color: #f9d342;
    color: #2f2e2a;
}

.cookie-consent__btn--reject {
    background: #2f2e2a;
    border-color: #2f2e2a;
    color: #fff;
}

.cookie-consent__btn--manage {
    background: #fff;
    border-color: #2f2e2a;
    color: #2f2e2a;
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
    outline: 2px solid #2f2e2a;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .cookie-consent__inner {
        padding: 0.875rem 1rem 0;
    }

    .cookie-consent__actions {
        flex-direction: column;
        padding-bottom: 0.875rem;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}
