.cookie-consent {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1100;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--testo-bianco, #ffffff);
    background: rgba(26, 54, 93, 0.95);
    border: 1px solid var(--bordo, rgba(255, 255, 255, 0.2));
    border-radius: var(--border-radius, 16px);
    box-shadow: var(--ombra, 0 4px 20px rgba(26, 54, 93, 0.3));
    font-family: var(--font-primary, 'Space Grotesk', sans-serif);
    backdrop-filter: blur(20px);
    animation: cookie-consent-in 0.3s ease both;
}

.cookie-consent--closing {
    pointer-events: none;
    animation: cookie-consent-out 0.3s ease both;
}

.cookie-consent__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent__copy {
    max-width: 700px;
}

.cookie-consent__copy h2 {
    margin: 0 0 0.5rem;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1.4;
}

.cookie-consent__copy p {
    margin: 0;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.cookie-consent__copy a {
    color: inherit;
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.cookie-consent__actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
}

.cookie-consent__button {
    min-width: 120px;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    color: var(--testo-scuro, #1a365d);
    background: var(--bianco, #ffffff);
    border: 1px solid var(--bianco, #ffffff);
    border-radius: var(--border-radius-lg, 24px);
    box-shadow: var(--ombra, 0 4px 20px rgba(26, 54, 93, 0.3));
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    transform: translateY(-2px);
    outline: 2px solid var(--bianco, #ffffff);
    outline-offset: 3px;
}

@keyframes cookie-consent-in {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cookie-consent-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(1rem); }
}

@media (max-width: 768px) {
    .cookie-consent {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 1.25rem;
    }

    .cookie-consent__content,
    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .cookie-consent__button {
        flex: 1;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent--closing {
        animation: none;
    }

    .cookie-consent__button {
        transition: none;
    }
}
