﻿/* The Conversion Eye — Cookie Consent UI (UPDATED)
   Fix: modal is now above the backdrop (clickable).
*/

.tce-consent-banner,
.tce-consent-modal {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: #e8eefc;
}

/* UPDATED: lighter banner so it stands out */
.tce-consent-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 9999;
    border: 1px solid rgba(125,211,252,.35);
    background: linear-gradient( 135deg, rgba(125,211,252,.18), rgba(167,139,250,.18) ), rgba(28, 36, 64, .92); /* lighter base */

    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05) inset;
}

.tce-consent-banner__inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 12px;
    padding: 14px;
    align-items: center;
}

@media (max-width: 900px) {
    .tce-consent-banner__inner {
        grid-template-columns: 1fr;
    }
}

.tce-consent-title {
    font-weight: 800;
    margin: 0 0 6px;
    font-size: 16px;
}

.tce-consent-text {
    margin: 0;
    color: rgba(210, 220, 255, 1); /* slightly brighter */
    font-size: 14px;
    line-height: 1.4;
}

.tce-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .tce-consent-actions {
        justify-content: flex-start;
    }
}

.tce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #e8eefc;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

    .tce-btn:hover {
        transform: translateY(-1px);
    }

    .tce-btn:active {
        transform: translateY(0);
    }

.tce-btn--primary {
    background: linear-gradient(135deg, rgba(125,211,252,.22), rgba(167,139,250,.22));
    border: 1px solid rgba(255,255,255,.16);
}

.tce-link {
    color: rgba(182, 194, 226, 1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .tce-link:hover {
        color: #e8eefc;
    }

/* Modal backdrop (UPDATED z-index relationship) */
.tce-consent-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    display: none;
}

/* Modal (UPDATED: now above backdrop so it is clickable) */
.tce-consent-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(720px, calc(100% - 28px));
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(15, 22, 40, .96);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0,0,0,.50);
    padding: 16px;
    z-index: 10001; /* <-- FIX */
    display: none;
}

.tce-consent-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .tce-consent-modal__header h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 900;
    }

.tce-consent-modal__close {
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    color: #e8eefc;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}

.tce-consent-grid {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.tce-consent-row {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

    .tce-consent-row h3 {
        margin: 0 0 4px;
        font-size: 15px;
    }

    .tce-consent-row p {
        margin: 0;
        color: rgba(182, 194, 226, 1);
        font-size: 13px;
        line-height: 1.4;
    }

.tce-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tce-switch {
    position: relative;
    width: 46px;
    height: 26px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    cursor: pointer;
}

    .tce-switch::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 999px;
        background: rgba(232,238,252,1);
        transition: transform .15s ease;
    }

    .tce-switch[data-on="true"] {
        background: rgba(52,211,153,.18);
        border-color: rgba(52,211,153,.30);
    }

        .tce-switch[data-on="true"]::after {
            transform: translateX(20px);
        }

    .tce-switch[aria-disabled="true"] {
        opacity: .55;
        cursor: not-allowed;
    }

.tce-consent-modal__footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 12px;
}
