/**
 * Cookie Notice CarParx - Stili CSS
 * Stile del popup per notifica cookie
 */

/* Overlay - Copre l'intera pagina */
.cookie-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Classe per mostrare il popup con animazione */
.cookie-notice-overlay.cookie-notice-visible {
    opacity: 1;
}

/* Classe per nascondere il popup con animazione */
.cookie-notice-overlay.cookie-notice-hidden {
    opacity: 0;
}

/* Container del popup */
.cookie-notice-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.cookie-notice-overlay.cookie-notice-visible .cookie-notice-container {
    transform: scale(1);
}

/* Contenuto del popup */
.cookie-notice-content {
    padding: 30px;
    text-align: center;
}

/* Testo del popup */
.cookie-notice-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Link alla cookie policy */
.cookie-notice-text a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cookie-notice-text a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Pulsante Accetta */
.cookie-notice-button {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.2);
}

.cookie-notice-button:hover {
    background-color: #005177;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.cookie-notice-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.2);
}

.cookie-notice-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Responsive - Mobile */
@media screen and (max-width: 600px) {
    .cookie-notice-container {
        max-width: 95%;
        width: 95%;
    }
    
    .cookie-notice-content {
        padding: 20px;
    }
    
    .cookie-notice-text {
        font-size: 14px;
        margin: 0 0 20px 0;
    }
    
    .cookie-notice-button {
        padding: 10px 30px;
        font-size: 14px;
        width: 100%;
    }
}

/* Responsive - Tablet */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .cookie-notice-container {
        max-width: 450px;
    }
}

/* Previene lo scroll della pagina quando il popup è visibile */
body.cookie-notice-active {
    overflow: hidden;
}
