/* Cookie Banner Styles - MD3 Expressive */
:root {
    --cb-bg: #1a1c1e;
    --cb-text: #e2e2e6;
    --cb-accent: #aecbfa;
    --cb-surface: #2d3135;
    --cb-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cb-bg);
    color: var(--cb-text);
    padding: 1.5rem;
    box-shadow: var(--cb-shadow);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.0, 0, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

#cookie-banner.visibile {
    transform: translateY(0);
}

.cb-contenuto {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cb-testo {
    flex: 1 1 600px;
}

.cb-titolo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cb-accent);
}

.cb-descrizione {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #c4c7c5;
}

.cb-link {
    color: var(--cb-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cb-link:hover {
    border-color: var(--cb-accent);
}

.cb-azioni {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cb-bottone {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cb-accetta {
    background-color: var(--cb-accent);
    color: #00325b;
}

.cb-accetta:hover {
    background-color: #d2e3fc;
    box-shadow: 0 2px 8px rgba(174, 203, 250, 0.3);
}

.cb-rifiuta {
    background-color: transparent;
    border: 1px solid #8e918f;
    color: #e2e2e6;
}

.cb-rifiuta:hover {
    border-color: #e2e2e6;
    background-color: rgba(255, 255, 255, 0.05);
}

.cb-preferenze {
    background-color: transparent;
    color: #a8c7fa;
    text-decoration: underline;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.cb-preferenze:hover {
    color: #d2e3fc;
}

@media (max-width: 768px) {
    .cb-contenuto {
        flex-direction: column;
        align-items: flex-start;
    }

    .cb-azioni {
        width: 100%;
        justify-content: stretch;
    }

    .cb-bottone {
        flex: 1;
        justify-content: center;
    }
}