/* =========================================================
   Erturk Lines - Cerez Onay Merkezi (Cookie Consent)
   Bootstrap'tan bagimsiz, kendi icinde kapali stil dosyasi.
   Tum secicilier .erturk-cc on ekiyle baslar.
   ========================================================= */

.erturk-cc,
.erturk-cc *,
.erturk-cc *:before,
.erturk-cc *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.erturk-cc {
    font-family: Arial, Helvetica, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #2f3336;
}

.erturk-cc[hidden],
.erturk-cc-hidden {
    display: none !important;
}

.erturk-cc a {
    color: #e22126;
    text-decoration: underline;
}

.erturk-cc a:hover,
.erturk-cc a:focus {
    color: #ac161a;
}

/* ---------- Banner ---------- */

.erturk-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    background: #ffffff;
    border-top: 4px solid #e22126;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, .18);
    padding: 20px 0;
    -webkit-animation: erturk-cc-slide-up .28s ease-out both;
    animation: erturk-cc-slide-up .28s ease-out both;
}

@-webkit-keyframes erturk-cc-slide-up {
    from { -webkit-transform: translateY(100%); opacity: 0; }
    to   { -webkit-transform: translateY(0); opacity: 1; }
}

@keyframes erturk-cc-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.erturk-cc-banner__inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
}

.erturk-cc-banner__text {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 420px;
    flex: 1 1 420px;
    min-width: 260px;
}

.erturk-cc-banner__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #1d2124;
}

.erturk-cc-banner__desc {
    margin: 0;
    font-size: 13.5px;
    color: #4a5054;
}

.erturk-cc-banner__actions {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Butonlar ---------- */

.erturk-cc-btn {
    display: inline-block;
    min-width: 150px;
    padding: 11px 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    background: none;
    -webkit-transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.erturk-cc-btn:focus {
    outline: 3px solid #1c85b3;
    outline-offset: 2px;
}

.erturk-cc-btn--accept {
    background: #e22126;
    border-color: #e22126;
    color: #ffffff;
}

.erturk-cc-btn--accept:hover {
    background: #ac161a;
    border-color: #ac161a;
    color: #ffffff;
}

/* Reddet butonu, kabul butonuyla gorsel olarak esit agirlikta olmalidir (KVKK/GDPR). */
.erturk-cc-btn--reject {
    background: #ffffff;
    border-color: #2f3336;
    color: #2f3336;
}

.erturk-cc-btn--reject:hover {
    background: #2f3336;
    color: #ffffff;
}

.erturk-cc-btn--settings {
    background: #ffffff;
    border-color: #c8cccf;
    color: #4a5054;
    font-weight: 600;
}

.erturk-cc-btn--settings:hover {
    border-color: #4a5054;
    color: #1d2124;
}

/* ---------- Tercih penceresi ---------- */

.erturk-cc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483001;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 19, 21, .62);
    overflow-y: auto;
}

.erturk-cc-modal__dialog {
    background: #ffffff;
    border-radius: 6px;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.erturk-cc-modal__header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e6e8ea;
}

.erturk-cc-modal__title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #1d2124;
}

.erturk-cc-modal__close {
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    padding: 0 4px;
    color: #8b9296;
    cursor: pointer;
}

.erturk-cc-modal__close:hover {
    color: #1d2124;
}

.erturk-cc-modal__body {
    padding: 18px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.erturk-cc-modal__intro {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: #4a5054;
}

.erturk-cc-modal__footer {
    padding: 16px 22px;
    border-top: 1px solid #e6e8ea;
    background: #f8f8f8;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    border-radius: 0 0 6px 6px;
}

/* ---------- Kategori satirlari ---------- */

.erturk-cc-group {
    border: 1px solid #e6e8ea;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #ffffff;
}

.erturk-cc-group__head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.erturk-cc-group__title {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1d2124;
}

.erturk-cc-group__desc {
    margin: 0;
    padding: 0 14px 14px;
    font-size: 13px;
    color: #4a5054;
}

.erturk-cc-group__always {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 700;
    color: #109d2e;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* ---------- Anahtar (switch) ---------- */

.erturk-cc-switch {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    position: relative;
    display: inline-block;
    width: 50px;
    height: 27px;
}

.erturk-cc-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.erturk-cc-switch__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #c3c8cb;
    border-radius: 27px;
    -webkit-transition: background-color .18s ease;
    transition: background-color .18s ease;
}

.erturk-cc-switch__slider:before {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    -webkit-transition: -webkit-transform .18s ease;
    transition: transform .18s ease;
}

.erturk-cc-switch input:checked + .erturk-cc-switch__slider {
    background: #109d2e;
}

.erturk-cc-switch input:checked + .erturk-cc-switch__slider:before {
    -webkit-transform: translateX(23px);
    transform: translateX(23px);
}

.erturk-cc-switch input:focus + .erturk-cc-switch__slider {
    outline: 3px solid #1c85b3;
    outline-offset: 2px;
}

.erturk-cc-switch input:disabled + .erturk-cc-switch__slider {
    background: #109d2e;
    opacity: .45;
    cursor: not-allowed;
}

/* ---------- Politika baglantilari ---------- */

.erturk-cc-links {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.erturk-cc-links li {
    display: inline-block;
    margin: 0 14px 0 0;
}

/* ---------- Mobil ---------- */

@media (max-width: 767px) {
    .erturk-cc-banner {
        padding: 16px 0;
        max-height: 88vh;
        overflow-y: auto;
    }

    .erturk-cc-banner__inner {
        padding: 0 16px;
        gap: 14px;
    }

    .erturk-cc-banner__actions {
        width: 100%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .erturk-cc-btn {
        width: 100%;
        min-width: 0;
    }

    .erturk-cc-modal {
        padding: 0;
    }

    .erturk-cc-modal__dialog {
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }

    .erturk-cc-modal__footer {
        border-radius: 0;
    }

    .erturk-cc-modal__footer .erturk-cc-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .erturk-cc-banner {
        -webkit-animation: none;
        animation: none;
    }

    .erturk-cc-switch__slider,
    .erturk-cc-switch__slider:before,
    .erturk-cc-btn {
        -webkit-transition: none;
        transition: none;
    }
}

/* Sayfa icinden cerez tercihlerini yeniden acmak icin kullanilan baglanti */
.erturk-cc-open-link {
    cursor: pointer;
}
