/* Stili per il banner di consenso cookie */

#cookie-consent-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.cookie-consent-body {
    margin-bottom: 20px;
}

.cookie-consent-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.cookie-consent-body a {
    color: #0056b3;
    text-decoration: underline;
}

.cookie-consent-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-primary-button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cookie-primary-button:hover {
    background-color: #003d82;
}

.cookie-secondary-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cookie-secondary-button:hover {
    background-color: #e0e0e0;
}

.cookie-settings-button {
    background-color: transparent;
    color: #0056b3;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    text-decoration: underline;
}

/* Pannello delle impostazioni */
.cookie-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.cookie-settings-close:hover {
    background-color: #f0f0f0;
}

.cookie-settings-body {
    padding: 20px;
}

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

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

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.cookie-category-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.cookie-settings-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Switch per le opzioni */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.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: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch.disabled .slider {
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-settings-button {
        margin-top: 10px;
        padding-left: 0;
    }
    
    .cookie-consent-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-consent-footer button {
        width: 100%;
    }
    
    .cookie-category-header {
        flex-direction: column;
    }
    
    .switch {
        margin-top: 10px;
    }
} 