/* =========================================================================
   Magmaweld çerez rıza merkezi
   - Alt bant (1. katman) + "Gizlilik Tercihleri" penceresi (2. katman)
   - Tüm sınıflar mcc- ön ekli: sitede Bootstrap 3 ve birden çok tema CSS'i
     yüklü, çakışmayı önlemek için hiçbir genel sınıf adı kullanılmıyor.
   - Kutu modeli ve tipografi kapsayıcıda sıfırlanıyor; tema CSS'lerinin
     button/table/ul kurallarının içeri sızmaması için.
   ========================================================================= */

.mcc-root,
.mcc-root *,
.mcc-root *::before,
.mcc-root *::after {
    box-sizing: border-box;
}

.mcc-root {
    --mcc-brand: #005cb9;
    --mcc-brand-dark: #003d6b;
    --mcc-ink: #333333;
    --mcc-line: rgba(0, 92, 185, .14);
    --mcc-soft: rgba(0, 92, 185, .04);
    font-family: inherit;
    color: var(--mcc-ink);
    line-height: 1.5;
}

/* --------------------------------------------------------------------- */
/* 1. katman: alt bant                                                    */
/* --------------------------------------------------------------------- */

.mcc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147482000;
    background: #ffffff;
    border-top: 3px solid var(--mcc-brand);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .16);
    padding: 18px 20px;
    transform: translateY(110%);
    transition: transform .28s ease;
}

.mcc-banner.mcc-open {
    transform: translateY(0);
}

.mcc-banner-inner {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.mcc-banner-text {
    flex: 1 1 380px;
    min-width: 0;
}

.mcc-banner-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--mcc-ink);
}

.mcc-banner-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(51, 51, 51, .72);
}

.mcc-banner-desc a {
    color: var(--mcc-brand);
    text-decoration: underline;
}

.mcc-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

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

.mcc-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    padding: 11px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Reddet ile Kabul et aynı görsel ağırlıkta olmalı: "kabul"ü öne çıkaran
   tasarım KVKK/GDPR tarafında geçerli rıza sayılmıyor. */
.mcc-btn-primary {
    background: var(--mcc-brand);
    color: #ffffff;
}

.mcc-btn-primary:hover,
.mcc-btn-primary:focus {
    background: var(--mcc-brand-dark);
    color: #ffffff;
}

.mcc-btn-secondary {
    background: #ffffff;
    color: var(--mcc-brand);
    border-color: var(--mcc-brand);
}

.mcc-btn-secondary:hover,
.mcc-btn-secondary:focus {
    background: var(--mcc-soft);
    color: var(--mcc-brand-dark);
    border-color: var(--mcc-brand-dark);
}

.mcc-btn-ghost {
    background: transparent;
    color: rgba(51, 51, 51, .70);
    border-color: rgba(51, 51, 51, .22);
}

.mcc-btn-ghost:hover,
.mcc-btn-ghost:focus {
    color: var(--mcc-ink);
    border-color: rgba(51, 51, 51, .45);
}

.mcc-btn:focus-visible {
    outline: 2px solid var(--mcc-brand);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------- */
/* 2. katman: tercih penceresi                                            */
/* --------------------------------------------------------------------- */

.mcc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.mcc-overlay.mcc-open {
    opacity: 1;
    visibility: visible;
}

.mcc-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
    transform: translateY(16px);
    transition: transform .2s ease;
}

.mcc-overlay.mcc-open .mcc-modal {
    transform: translateY(0);
}

/* Başlık ------------------------------------------------------------- */

.mcc-modal-head {
    padding: 24px 24px 0 24px;
}

.mcc-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.mcc-modal-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--mcc-ink);
}

.mcc-modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(51, 51, 51, .60);
}

.mcc-consent-id {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--mcc-soft);
    border-radius: 6px;
    font-size: 11px;
    color: rgba(51, 51, 51, .55);
}

.mcc-consent-id b {
    font-family: Consolas, Monaco, monospace;
    font-weight: 500;
    letter-spacing: .3px;
    font-size: 10px;
    color: var(--mcc-ink);
}

.mcc-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: rgba(51, 51, 51, .4);
    padding: 0 4px;
    flex-shrink: 0;
}

.mcc-close:hover {
    color: var(--mcc-ink);
}

/* Sekmeler ----------------------------------------------------------- */

.mcc-tabs {
    display: flex;
    border-bottom: 1px solid var(--mcc-line);
    padding: 0 24px;
}

.mcc-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    color: rgba(51, 51, 51, .55);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.mcc-tab.mcc-active {
    color: var(--mcc-brand);
    font-weight: 600;
    border-bottom-color: var(--mcc-brand);
}

/* Gövde -------------------------------------------------------------- */

.mcc-modal-body {
    flex: 1 1 0%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mcc-pane {
    padding: 24px;
}

/* Kategori kartı ------------------------------------------------------ */

.mcc-cat {
    margin-bottom: 12px;
    border: 1px solid var(--mcc-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--mcc-soft);
}

.mcc-cat-main {
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mcc-cat-info {
    flex: 1;
    min-width: 0;
}

.mcc-cat-titlerow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mcc-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mcc-ink);
}

.mcc-chip {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(51, 51, 51, .07);
    color: rgba(51, 51, 51, .6);
    white-space: nowrap;
}

.mcc-chip-required {
    background: rgba(0, 92, 185, .12);
    color: var(--mcc-brand);
    font-weight: 600;
}

.mcc-cat-desc {
    font-size: 11px;
    color: rgba(51, 51, 51, .62);
    margin: 5px 0 0 0;
    line-height: 1.5;
}

.mcc-badges {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mcc-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(51, 51, 51, .07);
    color: rgba(51, 51, 51, .6);
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
}

.mcc-toggle-cookies {
    font-size: 11px;
    color: var(--mcc-brand);
    background: none;
    border: none;
    padding: 0;
    margin-top: 9px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mcc-toggle-icon {
    display: inline-block;
    transition: transform .2s ease;
    font-size: 9px;
}

.mcc-toggle-cookies.mcc-expanded .mcc-toggle-icon {
    transform: rotate(180deg);
}

/* Açma/kapama anahtarı ----------------------------------------------- */

.mcc-switch {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    padding: 0;
    transition: background-color .2s ease;
}

.mcc-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: left .2s ease;
}

.mcc-switch.mcc-on {
    background: var(--mcc-brand);
}

.mcc-switch.mcc-on::after {
    left: 20px;
}

.mcc-switch.mcc-locked {
    cursor: not-allowed;
    opacity: .5;
}

.mcc-switch:focus-visible {
    outline: 2px solid var(--mcc-brand);
    outline-offset: 2px;
}

/* Çerez listesi (açılır) --------------------------------------------- */

.mcc-cookies {
    border-top: 1px solid var(--mcc-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: rgba(255, 255, 255, .6);
}

.mcc-cookies-inner {
    padding: 8px 14px;
}

.mcc-cookie {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 92, 185, .08);
}

.mcc-cookie:last-child {
    border-bottom: none;
}

.mcc-cookie-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.mcc-cookie-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--mcc-ink);
    font-family: Consolas, Monaco, monospace;
    word-break: break-all;
}

.mcc-cookie-provider {
    font-size: 10px;
    color: rgba(51, 51, 51, .45);
    margin-left: 6px;
}

.mcc-cookie-duration {
    font-size: 10px;
    color: rgba(51, 51, 51, .45);
    white-space: nowrap;
    flex-shrink: 0;
}

.mcc-cookie-purpose {
    font-size: 10px;
    color: rgba(51, 51, 51, .55);
    margin: 3px 0 0 0;
    line-height: 1.5;
}

/* Politika sekmesi ---------------------------------------------------- */

.mcc-policy {
    font-size: 13px;
    line-height: 1.7;
    color: var(--mcc-ink);
}

.mcc-policy h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--mcc-ink);
}

.mcc-policy h4 {
    margin: 20px 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--mcc-brand);
}

.mcc-policy p {
    margin: 0 0 14px 0;
}

.mcc-policy ul {
    margin: 0 0 14px 0;
    padding-left: 20px;
}

.mcc-policy a {
    color: var(--mcc-brand);
}

.mcc-policy-cat {
    margin-bottom: 16px;
    border: 1px solid var(--mcc-line);
    border-radius: 8px;
    overflow: hidden;
}

.mcc-policy-cat-head {
    padding: 12px 16px;
    background: var(--mcc-soft);
    border-bottom: 1px solid var(--mcc-line);
}

.mcc-policy-cat-name {
    font-weight: 600;
    font-size: 13px;
}

.mcc-policy-cat-desc {
    font-size: 11px;
    color: rgba(51, 51, 51, .6);
    margin-top: 4px;
}

.mcc-policy-cat-body {
    padding: 12px 16px;
}

.mcc-table-wrap {
    overflow-x: auto;
}

.mcc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.mcc-table th {
    text-align: left;
    padding: 6px 8px;
    color: rgba(51, 51, 51, .6);
    font-weight: 600;
    background: var(--mcc-soft);
    white-space: nowrap;
}

.mcc-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 92, 185, .07);
    color: rgba(51, 51, 51, .75);
    vertical-align: top;
}

.mcc-table td.mcc-mono {
    font-family: Consolas, Monaco, monospace;
    color: var(--mcc-ink);
    word-break: break-all;
}

.mcc-policy-empty {
    font-size: 11px;
    color: rgba(51, 51, 51, .45);
}

.mcc-policy-foot {
    font-size: 11px;
    color: rgba(51, 51, 51, .45);
    margin-top: 20px;
    border-top: 1px solid var(--mcc-line);
    padding-top: 12px;
}

/* Alt bar ------------------------------------------------------------- */

.mcc-modal-foot {
    padding: 16px 24px;
    border-top: 1px solid var(--mcc-line);
    background: var(--mcc-soft);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* Yeniden açma bağlantısı --------------------------------------------- */

.mcc-reopen {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
}

/* --------------------------------------------------------------------- */
/* Dar ekran                                                              */
/* --------------------------------------------------------------------- */

@media (max-width: 767px) {
    .mcc-banner {
        padding: 16px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .mcc-banner-inner {
        gap: 14px;
    }

    .mcc-banner-actions {
        width: 100%;
    }

    .mcc-banner-actions .mcc-btn {
        flex: 1 1 100%;
    }

    .mcc-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .mcc-modal {
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .mcc-modal-head {
        padding: 18px 16px 0 16px;
    }

    .mcc-tabs {
        padding: 0 16px;
    }

    .mcc-tab {
        padding: 12px 14px;
        flex: 1;
    }

    .mcc-pane {
        padding: 16px;
    }

    .mcc-modal-foot {
        padding: 14px 16px;
    }

    .mcc-modal-foot .mcc-btn {
        flex: 1 1 100%;
    }
}

@media print {
    .mcc-root {
        display: none !important;
    }
}
