/**
 * Barra de consentimento de cookies — Roda de Rádio
 * Degradê + grade (quadrados) como .header-section; contorno verde como .top-bar.
 */
/* Evita rolagem horizontal por sombras que “vazam” ou por trechos com 100vw */
html {
    overflow-x: hidden;
}

#cookie-consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030; /* abaixo de modais Bootstrap (1055) */
    width: 100%;
    padding: 10px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a4720 0%, #238636 35%, #2ea043 70%, #3fb950 100%);
    /* inset: não vaza para fora da viewport (spread/blur externos geram scroll-x) */
    box-shadow:
        inset 0 0 0 0.2rem rgba(46, 160, 67, 0.25),
        inset 0 3px 18px rgba(46, 160, 67, 0.18);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

/* Grade de quadrados (mesmo SVG do topo / header-section) */
#cookie-consent-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
    pointer-events: none;
}

#cookie-consent-bar.cookie-consent--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#cookie-consent-bar .cookie-consent-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#cookie-consent-bar .cookie-consent-text {
    flex: 1 1 280px;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
}

#cookie-consent-bar .cookie-consent-text strong {
    font-weight: 700;
}

#cookie-consent-bar .cookie-consent-text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: opacity 0.2s;
}

#cookie-consent-bar .cookie-consent-text a:hover {
    opacity: 0.85;
    color: #fff;
}

#cookie-consent-bar .cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

#cookie-consent-bar .btn-cookie-accept {
    background: #fff;
    border: none;
    color: rgb(14, 92, 28);
    font-weight: 700;
    font-size: 16px;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#cookie-consent-bar .btn-cookie-accept:hover {
    color: rgb(14, 92, 28);
    opacity: 0.92;
    transform: translateY(-1px);
}

body.cookie-consent-pending {
    padding-bottom: 5.5rem;
}

@media (min-width: 992px) {
    body.cookie-consent-pending {
        padding-bottom: 4.5rem;
    }
}

@media (max-width: 576px) {
    #cookie-consent-bar {
        padding: 8px 15px;
    }
    #cookie-consent-bar .cookie-consent-text {
        font-size: 0.85rem;
    }
    #cookie-consent-bar .btn-cookie-accept {
        font-size: 14px;
    }
}
