/* ==========================================================================
   LiteraMundo Cookie Consent Banner (Estilo LGPD / AdOpt)
   ========================================================================== */

.cf-cookie-banner-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    max-width: 420px;
    width: calc(100% - 48px);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none; /* Apenas o card recebe cliques */
}

.cf-cookie-card {
    pointer-events: auto;
    background: #FFFFFF;
    color: #111827;
    border-radius: 22px;
    padding: 24px 26px 22px 26px;
    box-shadow: 0 14px 40px -6px rgba(0, 0, 0, 0.18), 0 4px 16px -2px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cf-cookie-card.cf-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cf-cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cf-cookie-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.2px;
}

.cf-cookie-body p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #4B5563;
    margin: 0 0 14px 0;
    font-weight: 400;
}

.cf-cookie-links {
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.cf-cookie-link {
    color: #111827;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    transition: color 0.15s;
}

.cf-cookie-link:hover {
    color: #851D1D;
}

.cf-cookie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cf-cookie-btn-customize {
    background: none;
    border: none;
    color: #111827;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.15s;
}

.cf-cookie-btn-customize:hover {
    opacity: 0.75;
}

.cf-cookie-buttons-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cf-cookie-btn-reject {
    background: #FFFFFF;
    color: #111827;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    padding: 8px 22px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.cf-cookie-btn-reject:hover {
    background: #F3F4F6;
}

.cf-cookie-btn-accept {
    background: #111827;
    color: #FFFFFF;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    padding: 8px 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.cf-cookie-btn-accept:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
}

/* Painel de Customização */
.cf-cookie-customize-panel {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.cf-cookie-customize-panel.cf-active {
    display: block;
}

.cf-cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.cf-cookie-pref-info strong {
    display: block;
    font-size: 13px;
    color: #111827;
}

.cf-cookie-pref-info small {
    display: block;
    font-size: 11.5px;
    color: #6B7280;
}

/* Modal de Termos / Privacidade */
.cf-cookie-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cf-cookie-info-modal.cf-open {
    display: flex;
}

.cf-cookie-modal-card {
    background: #FFFFFF;
    color: #111827;
    border-radius: 20px;
    max-width: 540px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cf-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cf-cookie-modal-close {
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    transition: background 0.15s;
}

.cf-cookie-modal-close:hover {
    background: #E5E7EB;
    color: #111827;
}

@media (max-width: 480px) {
    .cf-cookie-banner-wrapper {
        bottom: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
    .cf-cookie-card {
        padding: 18px 20px;
    }
    .cf-cookie-buttons-group {
        gap: 6px;
    }
    .cf-cookie-btn-reject, .cf-cookie-btn-accept {
        padding: 7px 16px;
        font-size: 12.5px;
    }
}

