.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #2563eb;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #374151;
}

.cookie-text h3 {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 18px;
}

.cookie-text p {
    margin-bottom: 10px;
}

.cookie-text a {
    color: #2563eb;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.cookie-btn-accept {
    background: #059669;
    color: white;
}

.cookie-btn-accept:hover {
    background: #047857;
}

.cookie-btn-reject {
    background: #dc2626;
    color: white;
}

.cookie-btn-reject:hover {
    background: #b91c1c;
}

.cookie-btn-customize {
    background: #6b7280;
    color: white;
}

.cookie-btn-customize:hover {
    background: #4b5563;
}

/* Modal personalizzazione */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.cookie-modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h2 {
    color: #1f2937;
    margin-bottom: 8px;
}

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

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

.cookie-category-title {
    font-weight: 600;
    color: #1f2937;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-slider {
    background-color: #059669;
}

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

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        text-align: center;
    }
    
    .cookie-modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
}