/* ADSE - cookie-consent.css */
/* Stili per il banner dei cookie */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    font-size: 0.9rem;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
}

.cookie-content a {
    color: var(--adse-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.cookie-buttons .btn-primary {
    background-color: var(--adse-blue);
    color: #fff;
}

.cookie-buttons .btn-primary:hover {
    background-color: var(--adse-dark-blue);
}

.cookie-buttons .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.cookie-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal personalizzazione cookie */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    color: var(--adse-blue);
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-close:hover {
    color: var(--adse-blue);
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--adse-blue);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #666;
}

.cookie-modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.cookie-modal-footer .btn {
    padding: 10px 20px;
}

.btn-save-preferences {
    background-color: var(--adse-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-preferences:hover {
    background-color: var(--adse-dark-blue);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
        padding-right: 0;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        text-align: center;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        text-align: center;
    }
}