/* ===== KVKK Çerez Onay ===== */
/* display atayan sınıflar `hidden` özniteliğini ezmesin diye guard */
.cc-banner[hidden],
.cc-modal[hidden],
.cc-reopen[hidden] {
    display: none !important;
}

.cc-banner {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    width: 33rem;
    max-width: calc(100% - 2rem);
    background: #547090;
    color: #ffffff;
    border-radius: 1.2rem;
    padding: 20px;
    z-index: 999999999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    font-size: 13px;
    line-height: 1.5;
}

.cc-banner__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}

.cc-banner__text {
    margin: 0 0 10px;
    font-size: 12.5px;
}

.cc-banner__link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 12.5px;
    display: inline-block;
    margin-bottom: 14px;
}

.cc-banner__link:hover,
.cc-banner__link:focus {
    color: #ffffff;
    opacity: .85;
}

.cc-banner__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
}

/* Butonlar — Reddet ile Kabul Et eşit vurguda (KVKK) */
.cc-btn {
    display: inline-block;
    border: 1px solid #ffffff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
    background: transparent;
    color: #ffffff;
}

.cc-btn--secondary {
    background: transparent;
    color: #ffffff;
}

.cc-btn--secondary:hover,
.cc-btn--secondary:focus {
    background: rgba(255, 255, 255, .15);
}

.cc-btn--primary {
    background: #ffffff;
    color: #2f4a63;
    border-color: #ffffff;
}

.cc-btn--primary:hover,
.cc-btn--primary:focus {
    background: #eef3f7;
    color: #2f4a63;
}

.cc-btn:focus-visible {
    outline: 2px solid #ffd54a;
    outline-offset: 2px;
}

/* ===== Ayarlar Modal ===== */
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.cc-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    color: #2f3b47;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.cc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 10px;
}

.cc-modal__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #2f3b47;
}

.cc-modal__close {
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64707c;
    padding: 0 4px;
}

.cc-modal__close:hover {
    color: #2f3b47;
}

.cc-modal__body {
    padding: 6px 24px 8px;
}

.cc-modal__intro {
    font-size: 13px;
    color: #5a6570;
    margin: 0 0 16px;
    line-height: 1.55;
}

.cc-category {
    border-top: 1px solid #e6eaee;
    padding: 14px 0;
}

.cc-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-category__title {
    font-size: 14.5px;
    font-weight: 700;
    color: #2f3b47;
}

.cc-category__desc {
    font-size: 12.5px;
    color: #6b7681;
    margin: 6px 0 0;
    line-height: 1.5;
}

.cc-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px 24px 22px;
    border-top: 1px solid #e6eaee;
    margin-top: 4px;
}

/* Modal içindeki butonlar koyu zeminli değil; renkleri uyarlıyoruz */
.cc-modal .cc-btn {
    border-color: #547090;
    color: #2f4a63;
}

.cc-modal .cc-btn--secondary:hover,
.cc-modal .cc-btn--secondary:focus {
    background: #eef3f7;
}

.cc-modal .cc-btn--primary {
    background: #547090;
    color: #ffffff;
    border-color: #547090;
}

.cc-modal .cc-btn--primary:hover,
.cc-modal .cc-btn--primary:focus {
    background: #445d78;
    color: #ffffff;
}

body.cc-modal-open {
    overflow: hidden;
}

/* ===== Toggle switch ===== */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #c3cbd3;
    border-radius: 999px;
    transition: background-color .15s ease;
}

.cc-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform .15s ease;
}

.cc-switch input:checked + .cc-slider {
    background: #547090;
}

.cc-switch input:checked + .cc-slider::before {
    transform: translateX(20px);
}

.cc-switch input:focus-visible + .cc-slider {
    outline: 2px solid #ffd54a;
    outline-offset: 2px;
}

.cc-switch--locked .cc-slider {
    background: #9db3c6;
    cursor: not-allowed;
    opacity: .8;
}

/* ===== Yeniden açma butonu ===== */
.cc-reopen {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 999999998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #547090;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.cc-reopen:hover,
.cc-reopen:focus {
    background: #445d78;
    color: #ffffff;
}

.cc-reopen__label {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cc-banner {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: none;
        border-radius: 0;
    }

    .cc-banner__actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .cc-banner__actions .cc-btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .cc-reopen__label {
        display: none;
    }

    .cc-reopen {
        padding: 12px;
    }
}
