/* Banner de consentimento de cookies (ver scripts/cookie-consent.js).
   CSS à parte e não Tailwind: o app.css compila-se com o CLI do Tailwind, fora do build do .NET,
   e um app.css por regenerar deixava o banner sem estilo. */

.rn-cc[hidden] { display: none !important; }

.rn-cc {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2147483000;
    max-width: 44rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    background: rgb(30 30 30);
    color: #fff;
    border: 1px solid rgb(213 199 184 / 0.25);
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.5);
    font-family: inherit;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.45;
}

.rn-cc__title {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgb(213 199 184);
    outline: none;
}

.rn-cc__text { margin: 0; color: rgb(228 228 231); }

.rn-cc__text a,
.rn-cc__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rn-cc__details {
    margin-top: 1.25rem;
    border-top: 1px solid rgb(213 199 184 / 0.2);
}

.rn-cc__category {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgb(213 199 184 / 0.2);
}

.rn-cc__category-title { display: block; font-weight: 600; color: #fff; }
.rn-cc__category-text { display: block; font-size: 0.9rem; color: rgb(161 161 170); }
.rn-cc__always { flex: none; font-size: 0.85rem; color: rgb(213 199 184); white-space: nowrap; }

.rn-cc__switch {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: rgb(238 52 66);
    color: rgb(238 52 66); /* o @tailwindcss/forms pinta o checkbox marcado com currentColor */
    cursor: pointer;
}

.rn-cc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* Aceitar e Rejeitar com o mesmo peso visual — a CNPD não aceita um "rejeitar" escondido. */
.rn-cc__btn {
    flex: 1 1 10rem;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid rgb(238 52 66);
    background: rgb(238 52 66);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 150ms, color 150ms;
}

.rn-cc__btn:hover { background: rgb(188 32 47); border-color: rgb(188 32 47); }

.rn-cc__btn--ghost {
    background: transparent;
    border-color: rgb(213 199 184 / 0.6);
    color: #fff;
}

.rn-cc__btn--ghost:hover { background: rgb(255 255 255 / 0.08); border-color: #fff; }

.rn-cc__btn:focus-visible,
.rn-cc__switch:focus-visible,
.rn-cc a:focus-visible,
.rn-cc-settings:focus-visible {
    outline: 2px solid rgb(213 199 184);
    outline-offset: 2px;
}

/* No modo "personalizar", Guardar ocupa o lugar de destaque. */
.rn-cc [data-cc-action="save"] { display: none; }
.rn-cc--customizing [data-cc-action="save"] { display: block; }

/* Link do rodapé é um <button> (abre as definições, não navega) com aspecto de link. */
.rn-cc-settings {
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 480px) {
    .rn-cc { left: 0; right: 0; bottom: 0; padding: 1.25rem 1rem; border-left: 0; border-right: 0; border-bottom: 0; }
    .rn-cc__btn { flex-basis: 100%; }
}
