/* ---------------------------------------------------------
   PRIVACY CONSENT MANAGER - CSS COMPLETO
   Versione lunga originale + nessuna modifica non concordata
--------------------------------------------------------- */

/* Banner nascosto di default */
#pcm-banner.pcm-hidden {
    display: none;
}

/* Banner principale */
#pcm-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #e5e5e5;
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.pcm-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

/* Titolo */
#pcm-banner-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* Messaggio */
#pcm-banner-message {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Pulsanti banner */
.pcm-banner-buttons {
    margin-top: 15px;
}

.pcm-banner-buttons button {
    padding: 10px 18px;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

/* Accetta tutto */
#pcm-accept-all {
    background: #2ecc71;
    color: #fff;
}

/* Rifiuta tutto */
#pcm-reject-all {
    background: #e74c3c;
    color: #fff;
}

/* Preferenze */
#pcm-open-preferences {
    background: #3498db;
    color: #fff;
}

/* Link legali */
.pcm-legal-links {
    margin-top: 10px;
    font-size: 13px;
}

.pcm-legal-links a {
    color: #0073aa;
    text-decoration: none;
}

.pcm-legal-links a:hover {
    text-decoration: underline;
}

/* Pulsante X */
.pcm-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* ---------------------------------------------------------
   MODAL PREFERENZE
--------------------------------------------------------- */

#pcm-modal.pcm-hidden {
    display: none;
}

#pcm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pcm-modal-inner {
    background: #fff;
    width: 500px;
    max-width: 90%;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

.pcm-modal-inner h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    text-align: center;
}

/* Categorie */
#pcm-categories {
    margin-top: 15px;
}

.pcm-category {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pcm-category h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.pcm-category p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

/* Pulsanti modal */
.pcm-modal-buttons {
    margin-top: 20px;
    text-align: center;
}

.pcm-modal-buttons button {
    padding: 10px 18px;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

/* Salva preferenze */
#pcm-save-preferences {
    background: #2ecc71;
    color: #fff;
}

/* Annulla */
#pcm-cancel-preferences {
    background: #e74c3c;
    color: #fff;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 600px) {

    #pcm-banner {
        padding: 15px;
    }

    .pcm-banner-buttons button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }

    .pcm-modal-inner {
        width: 90%;
        padding: 20px;
    }
}
