/* LIVRA — Çerez onay bandı ve tercih penceresi (services/consent.js) | önek: lcm- */

.lcm-banner,
.lcm-modal {
    --lcm-ink: #121212;
    --lcm-blue: #1e3a5f;
    --lcm-mute: rgba(18, 18, 18, .6);
    --lcm-line: rgba(18, 18, 18, .12);
    font-family: Montserrat, Arial, sans-serif;
    box-sizing: border-box;
}

.lcm-banner *,
.lcm-modal * {
    box-sizing: border-box;
}

.lcm-banner[hidden],
.lcm-modal[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------------- BANT */
.lcm-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2147483000;
    display: grid;
    gap: 16px;
    width: min(440px, calc(100% - 40px));
    padding: 22px;
    border: 1px solid var(--lcm-line);
    border-radius: 22px;
    color: var(--lcm-ink);
    background: #fff;
    box-shadow: 0 30px 80px rgba(10, 20, 40, .25);
    animation: lcm-up .45s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes lcm-up {
    from { opacity: 0; transform: translateY(16px); }
}

.lcm-banner strong {
    display: block;
    font: 700 16px/1.3 Poppins, Montserrat, sans-serif;
}

.lcm-banner p {
    margin: 8px 0 0 !important;
    color: var(--lcm-mute);
    font-size: 13.5px;
    line-height: 1.55;
}

.lcm-banner a,
.lcm-policy {
    color: var(--lcm-blue) !important;
    font-weight: 600;
    text-decoration: underline !important;
}

.lcm-banner__actions,
.lcm-modal__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lcm-banner__actions .lcm-btn {
    flex: 1 1 auto;
}

/* Butonlar: tema buton stillerinden bağımsız */
.lcm-btn,
.lcm-close {
    -webkit-appearance: none;
    appearance: none;
    position: static !important;
    display: inline-flex !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    align-items: center;
    justify-content: center;
    border: 1.5px solid transparent !important;
    border-radius: 999px !important;
    font: 700 13.5px/1 Montserrat, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.lcm-btn::before,
.lcm-btn::after,
.lcm-close::before,
.lcm-close::after {
    content: none !important;
    display: none !important;
}

.lcm-btn--solid {
    border-color: var(--lcm-ink) !important;
    color: #fff !important;
    background: var(--lcm-ink) !important;
}

.lcm-btn--solid:hover {
    border-color: var(--lcm-blue) !important;
    background: var(--lcm-blue) !important;
}

.lcm-btn--line {
    border-color: var(--lcm-ink) !important;
    color: var(--lcm-ink) !important;
    background: #fff !important;
}

.lcm-btn--line:hover {
    color: #fff !important;
    background: var(--lcm-ink) !important;
}

.lcm-btn--ghost {
    border-color: var(--lcm-line) !important;
    color: var(--lcm-ink) !important;
    background: #f5f5f5 !important;
}

.lcm-btn--ghost:hover {
    border-color: var(--lcm-ink) !important;
}

/* ---------------------------------------------------------------- PENCERE */
.lcm-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: grid;
    padding: 20px;
    place-items: center;
}

html.lcm-lock {
    overflow: hidden;
}

.lcm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, .55);
    backdrop-filter: blur(4px);
}

.lcm-modal__panel {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 26px;
    color: var(--lcm-ink);
    background: #fff;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
    outline: none;
    animation: lcm-up .4s cubic-bezier(.2, .75, .25, 1) both;
}

.lcm-close {
    position: absolute !important;
    top: 16px;
    right: 16px;
    width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    color: var(--lcm-ink) !important;
    background: #f5f5f5 !important;
    font-size: 15px !important;
}

.lcm-modal h2 {
    margin: 0 !important;
    font: 700 26px/1.2 Poppins, Montserrat, sans-serif !important;
    letter-spacing: -.02em;
    color: var(--lcm-ink) !important;
}

.lcm-modal__lead {
    margin: 10px 0 22px !important;
    color: var(--lcm-mute);
    font-size: 14.5px;
    line-height: 1.6;
}

.lcm-cats {
    display: grid;
    gap: 10px;
}

.lcm-cat {
    display: block;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--lcm-line);
    border-radius: 16px;
    background: #fafafa;
    cursor: pointer;
}

div.lcm-cat {
    cursor: default;
}

.lcm-cat__head {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.lcm-cat__head b {
    font: 600 15px/1.3 Poppins, Montserrat, sans-serif;
}

.lcm-cat p {
    margin: 8px 0 0 !important;
    color: var(--lcm-mute);
    font-size: 13px;
    line-height: 1.55;
}

.lcm-cat small {
    display: block;
    margin-top: 6px;
    color: var(--lcm-blue);
    font-size: 12px;
    font-weight: 600;
}

.lcm-always {
    color: #1f8a52;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lcm-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.lcm-switch input {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0;
    cursor: pointer;
}

.lcm-switch i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 99px;
    background: rgba(18, 18, 18, .18);
    transition: background-color .2s ease;
    pointer-events: none;
}

.lcm-switch i::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

.lcm-switch input:checked + i {
    background: var(--lcm-blue);
}

.lcm-switch input:checked + i::after {
    transform: translateX(20px);
}

.lcm-switch input:focus-visible + i {
    outline: 3px solid #4da3ff;
    outline-offset: 2px;
}

.lcm-modal__actions {
    margin-top: 22px;
}

.lcm-modal__actions .lcm-btn {
    flex: 1 1 auto;
}

.lcm-policy {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .lcm-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 18px;
    }

    .lcm-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .lcm-banner__actions .lcm-btn--solid {
        grid-column: 1 / -1;
        order: -1;
    }

    .lcm-modal {
        padding: 0;
        place-items: end stretch;
    }

    .lcm-modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
    }

    .lcm-modal__actions {
        display: grid;
    }
}

/* Tema checkbox stillerinden bağımsız anahtar */
.lcm-switch input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

.lcm-switch input[type="checkbox"]::before,
.lcm-switch input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}

.lcm-switch i {
    position: absolute;
    inset: 0;
    font-style: normal;
}
