@charset "UTF-8";

.cookie-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: var(--c_blue2);
    color: var(--c_white);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    padding: 20px 40px;
    box-sizing: border-box;
}

.cookie-banner.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 420px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--c_yellow);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-actions button {
    font-family: var(--fonte-padrao);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-banner-accept {
    background-color: var(--c_red);
    color: var(--c_white);
}

.cookie-banner-accept:hover {
    background-color: #c72d10;
}

.cookie-banner-reject {
    background-color: transparent;
    color: var(--c_white);
    border: 1px solid var(--c_white);
}

.cookie-banner-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media only screen and (max-width: 600px) {
    .cookie-banner {
        padding: 16px 20px;
    }

    .cookie-banner.visible {
        flex-direction: column;
        align-items: stretch;
    }

    /* flex-basis:420px em .cookie-banner-text foi pensado pra largura (layout
       em linha, desktop) — em column vira altura e estoura o banner. */
    .cookie-banner-text {
        flex: 1 1 auto;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-actions button {
        flex: 1;
    }
}
