/* Cookie Consent Banner Styles */

#cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: bottom 0.4s ease-in-out;
    border-top: 3px solid #10b981;
}

#cookie-consent-banner.show {
    bottom: 0;
}

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

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

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e40af;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.cookie-banner-text a {
    color: #10b981;
    text-decoration: underline;
    font-weight: 600;
}

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

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #10b981;
    color: white;
}

.cookie-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cookie-btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.cookie-btn-secondary:hover {
    background: #cbd5e1;
}

.cookie-btn-text {
    background: transparent;
    color: #64748b;
    text-decoration: underline;
}

.cookie-btn-text:hover {
    color: #1e40af;
}

/* Settings Panel */
.cookie-settings-panel {
    flex-direction: column;
    align-items: stretch;
    max-width: 800px;
}

.cookie-settings-panel h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1e40af;
}

.cookie-category {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #1e40af;
}

.cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
}

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

.cookie-always-active {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.cookie-category-description {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.cookie-category-description a {
    color: #10b981;
    text-decoration: underline;
}

/* Map Overlay quando bloccata */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.map-overlay-content {
    text-align: center;
    color: white;
    padding: 30px;
}

.map-overlay-content p {
    margin: 10px 0;
    font-size: 16px;
}

.map-overlay-content strong {
    font-size: 20px;
    display: block;
    margin-bottom: 15px;
}

.map-overlay-content button {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 15px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-banner-text h3 {
        font-size: 16px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
}
