/* Banner e painel de preferencias de cookies/LGPD. */
.cookie-consent,
.cookie-settings {
    font-family: "Poppins", sans-serif;
}

.cookie-consent[hidden],
.cookie-settings[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    z-index: 1090;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    color: #fff;
    background: #17202a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.cookie-consent__content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.25rem;
}

.cookie-consent__title {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.15rem;
}

.cookie-consent__text {
    max-width: 780px;
    margin: 0;
    line-height: 1.55;
}

.cookie-consent a {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.cookie-consent a:hover,
.cookie-consent a:focus {
    color: #cfe8ff !important;
}

.cookie-consent__actions,
.cookie-settings__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cookie-consent__actions {
    flex: 0 0 auto;
}

.cookie-settings {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.cookie-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.cookie-settings__panel {
    position: relative;
    width: min(100%, 680px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    color: #212529;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

.cookie-settings__header,
.cookie-category {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-settings__close {
    flex: 0 0 auto;
    padding: 0;
    color: #212529;
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: 1;
}

.cookie-settings__categories {
    margin: 1.25rem 0;
    border-top: 1px solid #dee2e6;
}

.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.cookie-category .form-switch {
    min-width: 3rem;
    margin-top: 0.15rem;
}

.cookie-settings__actions {
    justify-content: flex-end;
}

body.cookie-settings-open {
    overflow: hidden;
}

/* Evita que o atalho flutuante do Minibox cubra o aviso ou suas acoes. */
body.cookie-banner-visible #minibox-bubble {
    display: none !important;
}

@media (max-width: 767.98px) {
    .cookie-consent {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
    }

    .cookie-consent__content {
        display: block;
        padding: 1rem;
    }

    .cookie-consent__actions {
        margin-top: 1rem;
    }

    .cookie-consent__actions .btn,
    .cookie-settings__actions .btn {
        flex: 1 1 100%;
    }

    .cookie-settings__panel {
        padding: 1.15rem;
    }

}
