/* Banner de consentimento de cookies - LGPD
 * Escopado com prefixo .cc- para evitar colisão com o restante da home.
 */

.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1080;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    display: none;
    font-family: inherit;
    line-height: 1.5;
}

.cc-banner.cc-banner--visible {
    display: block;
    animation: cc-slide-up 220ms ease-out;
}

@keyframes cc-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cc-banner__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.cc-banner__copy {
    flex: 1 1 360px;
    min-width: 0;
}

.cc-banner__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
}

.cc-banner__text {
    font-size: 14px;
    margin: 0;
    color: #475569;
}

.cc-banner__text a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-banner__text a:hover {
    color: #1e40af;
}

.cc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cc-banner__btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    padding: 11px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    white-space: nowrap;
}

.cc-banner__btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.cc-banner__btn--ghost {
    color: #475569;
    border-color: #cbd5f5;
    background: #ffffff;
}

.cc-banner__btn--ghost:hover {
    color: #0f172a;
    border-color: #94a3b8;
}

.cc-banner__btn--secondary {
    color: #0f172a;
    background: #e2e8f0;
}

.cc-banner__btn--secondary:hover {
    background: #cbd5f5;
}

.cc-banner__btn--primary {
    color: #ffffff;
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

.cc-banner__btn--primary:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .cc-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 16px;
        border-radius: 12px;
    }

    .cc-banner__layout {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cc-banner__actions {
        justify-content: stretch;
    }

    .cc-banner__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
