/* GDPR Cookie Banner Styles */
.gdpr-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    background-color: var(--gdpr-banner-bg, #2c3e50);
    color: var(--gdpr-banner-text, #ffffff);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.gdpr-banner-bottom {
    bottom: 0;
}

.gdpr-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.gdpr-cookie-message {
    flex: 1;
    min-width: 300px;
}

.gdpr-policy-link {
    color: var(--gdpr-button-bg, #3498db);
    text-decoration: underline;
    margin-left: 5px;
}

.gdpr-policy-link:hover {
    color: var(--gdpr-banner-text, #ffffff);
}

.gdpr-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gdpr-btn {
    background-color: var(--gdpr-button-bg, #3498db);
    color: var(--gdpr-button-text, #ffffff);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gdpr-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tutti i pulsanti usano gli stessi colori personalizzabili */
.gdpr-btn-accept,
.gdpr-btn-reject,
.gdpr-btn-customize {
    background-color: var(--gdpr-button-bg, #3498db);
    color: var(--gdpr-button-text, #ffffff);
}

/* Variazioni di opacità per distinguere i pulsanti */
.gdpr-btn-reject {
    opacity: 0.85;
}

.gdpr-btn-customize {
    opacity: 0.75;
}

/* Modal Styles */
.gdpr-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gdpr-modal-content {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gdpr-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gdpr-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.gdpr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdpr-modal-close:hover {
    color: #333333;
}

.gdpr-modal-body {
    padding: 20px;
}

.gdpr-cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
}

.gdpr-cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.gdpr-cookie-category input[type="checkbox"] {
    margin-top: 2px;
}

.gdpr-cookie-category p {
    margin: 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
}

.gdpr-modal-footer {
    padding: 20px;
    border-top: 1px solid #eeeeee;
    text-align: right;
}

.gdpr-btn-save {
    background-color: #27ae60;
    padding: 12px 30px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .gdpr-cookie-message {
        min-width: auto;
        margin-bottom: 15px;
    }
    
    .gdpr-cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .gdpr-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .gdpr-modal-header {
        padding: 15px;
    }
    
    .gdpr-modal-body {
        padding: 15px;
    }
    
    .gdpr-cookie-category {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .gdpr-cookie-banner {
        padding: 15px;
    }
    
    .gdpr-cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .gdpr-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Animation */
.gdpr-cookie-banner {
    animation: slideInBottom 0.5s ease-out;
}

@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-cookie-modal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gdpr-modal-content {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}