/* Cookie Banner Styles */
#cookie-banner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#cookie-banner-overlay.show {
    display: block;
}

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 90vh;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#cookie-banner.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

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

.cookie-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1f2937;
}

.cookie-header p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
}

.cookie-footer p {
    margin: 20px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

/* Categories */
#cookie-categories {
    display: none;
    margin: 20px 0;
}

#cookie-categories.show {
    display: block;
}

.cookie-category {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

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

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

.category-desc {
    color: #6b7280;
    font-size: 14px;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--scharff-jade);
    border-radius: 24px;
    transition: 0.3s;
}

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

input:checked + .slider {
    background-color: #10b981;
}

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

input:disabled + .slider {
    background-color: #10b981;
    cursor: not-allowed;
}

/* Buttons */
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    min-width: 150px;
}

.btn-primary {
    background:  var(--scharff-jade);
    color: white;
}

.btn-primary:hover {
    background: var(--scharff-green);
    color: #111111;
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-text {
    background: transparent;
    color: #6b7280;
    text-decoration: underline;
    flex: 0 0 auto;
    min-width: auto;
}

#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
}

#cookie-settings-btn:hover {
    opacity: 1;
}

.privacy-links {
    margin-top: 15px;
    font-size: 13px;
    color: #6b7280;
}

.privacy-links a {
    color: var(--scharff-jade);
    text-decoration: none;
}

.privacy-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        padding: 20px;
    }
    .cookie-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}