/**
 * Cookie Consent Banner Styles
 * Il Glicine B&B Ristorante
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px;
    animation: slideUp 0.4s ease-out;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

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

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    color: #2c3e50;
    font-family: 'Cormorant Garamond', serif;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.cookie-btn-primary {
    background-color: #2c3e50;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.cookie-btn-secondary:hover {
    background-color: #7f8c8d;
}

.cookie-btn-link {
    background-color: transparent;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #ddd;
}

.cookie-btn-link:hover {
    background-color: #f8f9fa;
    border-color: #2c3e50;
}

/* Pannello Impostazioni Cookie */
.cookie-settings {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    overflow-y: auto;
}

.cookie-settings-content {
    max-width: 600px;
    margin: 100px auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-settings-content h3 {
    margin: 0 0 10px 0;
    font-size: 2em;
    color: #2c3e50;
    font-family: 'Cormorant Garamond', serif;
}

.cookie-settings-content > p {
    margin: 0 0 25px 0;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.cookie-type {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
}

.cookie-type-header {
    margin-bottom: 8px;
}

.cookie-type-header label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.cookie-type-header input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-type-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.cookie-type-description {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    padding-left: 28px;
    font-family: 'Poppins', sans-serif;
}

.cookie-settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.cookie-settings-buttons .cookie-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-buttons .cookie-btn {
        width: 100%;
    }

    .cookie-settings-content {
        margin: 20px;
        padding: 25px;
    }

    .cookie-settings-buttons {
        flex-direction: column;
    }
}

/* Link per riaprire le impostazioni (può essere aggiunto nel footer) */
.cookie-settings-link {
    cursor: pointer;
    color: #2c3e50;
    text-decoration: underline;
}

.cookie-settings-link:hover {
    color: #34495e;
}
