/* ═══════════════════════════════════════════════════
   Bellissimo Cookie Consent Banner
   DSGVO/GDPR Compliant — Faz 2
   ═══════════════════════════════════════════════════ */

/* Overlay */
.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.cookie-overlay.active {
    display: block;
}

/* Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 24px 0;
    border-top: 3px solid #6c63ff;
    font-family: 'Inter', Arial, sans-serif;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.active {
    display: block;
}

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

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

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.cookie-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 4px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.cookie-text a {
    color: #6c63ff;
    text-decoration: underline;
}

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

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

.cookie-btn-accept {
    background: #6c63ff;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #5a52d5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.cookie-btn-necessary {
    background: #e9ecef;
    color: #333;
}

.cookie-btn-necessary:hover {
    background: #dee2e6;
}

.cookie-btn-settings {
    background: transparent;
    color: #6c63ff;
    border: 1px solid #6c63ff;
}

.cookie-btn-settings:hover {
    background: #f0efff;
}

/* Settings Panel */
.cookie-settings-panel {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.cookie-settings-panel.active {
    display: block;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cookie-category-info h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.cookie-category-info p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

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

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

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

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

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

.cookie-toggle input:disabled + .slider {
    background-color: #6c63ff;
    opacity: 0.6;
    cursor: not-allowed;
}

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

    .cookie-icon {
        display: none;
    }

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

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
