/**
 * Consentimento de cookies — tema Hub Atmos.
 */

.cookie-consent-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 9999;
    color: #ffffff;
}

.cookie-consent-content {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 42px;
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0%, rgba(67, 56, 202, .38), transparent 42%),
        linear-gradient(135deg, #0b1022 0%, #070a16 68%);
    box-shadow: 0 24px 70px rgba(2, 6, 23, .36);
}

.cookie-consent-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -92px;
    bottom: -54px;
    width: 430px;
    aspect-ratio: 9035 / 3235;
    background: url("../images/hub-atmos/infinity.png") center / contain no-repeat;
    opacity: .09;
    pointer-events: none;
}

.cookie-consent-text {
    max-width: 680px;
}

.cookie-consent-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #d9e629;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cookie-consent-text strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.cookie-consent-text p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: .86rem;
    line-height: 1.55;
}

.cookie-consent-text a {
    color: #d9e629;
    text-underline-offset: 3px;
}

.cookie-consent-buttons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 9px;
    min-width: 330px;
}

.cookie-btn {
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .015em;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn:focus-visible,
.cookie-checkbox:focus-visible {
    outline: 3px solid rgba(217, 230, 41, .42);
    outline-offset: 3px;
}

.cookie-btn-accept {
    grid-column: 1 / -1;
    background: #4338ca;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(67, 56, 202, .34);
}

.cookie-btn-accept:hover {
    background: #5145df;
    box-shadow: 0 13px 32px rgba(67, 56, 202, .42);
}

.cookie-btn-customize {
    border-color: rgba(217, 230, 41, .5);
    background: rgba(217, 230, 41, .08);
    color: #e9f25e;
}

.cookie-btn-customize:hover {
    border-color: #d9e629;
    background: rgba(217, 230, 41, .15);
}

.cookie-btn-reject {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .72);
}

.cookie-btn-reject:hover {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.cookie-consent-options {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(12px);
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
}

.cookie-checkbox {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #4338ca;
    cursor: pointer;
}

.cookie-option label {
    color: rgba(255, 255, 255, .82);
    font-size: .74rem;
    font-weight: 650;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.cookie-btn-save {
    min-width: 164px;
    background: #d9e629;
    color: #111629;
}

.cookie-btn-save:hover {
    background: #e6ef46;
    box-shadow: 0 10px 26px rgba(217, 230, 41, .2);
}

@keyframes cookieSlideIn {
    from {
        transform: translateY(28px) scale(.985);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cookie-consent-banner[style*="display: block"] {
    animation: cookieSlideIn .45s cubic-bezier(.2, .8, .2, 1);
}

@media (max-width: 900px) {
    .cookie-consent-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cookie-consent-buttons {
        width: 100%;
        min-width: 0;
    }

    .cookie-consent-options {
        grid-template-columns: 1fr 1fr;
    }

    .cookie-btn-save {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .cookie-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .cookie-consent-content {
        max-height: calc(100vh - 20px);
        padding: 22px 18px 18px;
        overflow-y: auto;
        border-radius: 22px;
    }

    .cookie-consent-content::before {
        right: -116px;
        bottom: 5px;
        width: 360px;
    }

    .cookie-consent-buttons,
    .cookie-consent-options {
        grid-template-columns: 1fr;
    }

    .cookie-btn,
    .cookie-btn-save {
        grid-column: auto;
        width: 100%;
    }

    .cookie-consent-options {
        padding: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner[style*="display: block"] {
        animation: none;
    }

    .cookie-btn {
        transition: none;
    }
}
