/* Custom Klaro Cookie Consent Styling - DIGAL */
/* Modern, clean design matching DIGAL's brand aesthetic */

/* === CONSENT NOTICE (Bottom Banner) === */
.klaro .cookie-notice {
    background: linear-gradient(135deg, rgba(24, 99, 220, 0.97) 0%, rgba(20, 80, 200, 0.97) 100%) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2) !important;
    padding: 24px 32px !important;
    margin: 0 auto !important;
    max-width: 1400px !important;
    border: none !important;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

/* Notice text styling */
.klaro .cookie-notice .cn-body {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.klaro .cookie-notice .cn-body p {
    margin: 0 0 16px 0 !important;
    font-weight: 400 !important;
}

/* Learn more link */
.klaro .cookie-notice .cn-learn-more {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    transition: opacity 0.3s ease;
}

.klaro .cookie-notice .cn-learn-more:hover {
    opacity: 0.8;
}

/* === BUTTONS === */
.klaro .cookie-notice .cn-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
}

/* Primary button (OK/Accept All) */
.klaro .cookie-notice .cn-buttons button.cm-btn.cm-btn-success {
    background: #ffffff !important;
    color: #1863DC !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.klaro .cookie-notice .cn-buttons button.cm-btn.cm-btn-success:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Secondary button (Decline/Reject) */
.klaro .cookie-notice .cn-buttons button.cm-btn.cm-btn-danger {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.klaro .cookie-notice .cn-buttons button.cm-btn.cm-btn-danger:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px) !important;
}

/* Tertiary button (Customize/Learn More) */
.klaro .cookie-notice .cn-buttons button.cm-btn.cm-btn-info {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.klaro .cookie-notice .cn-buttons button.cm-btn.cm-btn-info:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* === CONSENT MODAL (Detailed Settings) === */
.klaro .cookie-modal {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px);
}

.klaro .cookie-modal .cm-modal {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 600px !important;
    padding: 0 !important;
    border: none !important;
}

/* Modal header */
.klaro .cookie-modal .cm-header {
    background: linear-gradient(135deg, #1863DC 0%, #1450C8 100%) !important;
    color: #ffffff !important;
    padding: 28px 32px !important;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2) !important;
}

.klaro .cookie-modal .cm-header h1 {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
}

.klaro .cookie-modal .cm-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
    margin: 0 !important;
}

/* Modal body */
.klaro .cookie-modal .cm-body {
    padding: 24px 32px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

/* Service items */
.klaro .cookie-modal .cm-services .cm-service {
    background: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
}

.klaro .cookie-modal .cm-services .cm-service:hover {
    border-color: #1863DC !important;
    box-shadow: 0 4px 12px rgba(24, 99, 220, 0.15) !important;
}

.klaro .cookie-modal .cm-services .cm-service .cm-service-title {
    color: #212529 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.klaro .cookie-modal .cm-services .cm-service .cm-service-description {
    color: #6c757d !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Toggle switches */
.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider {
    background: #1863DC !important;
}

.klaro .cookie-modal .cm-list-label .slider {
    background: #ced4da !important;
    border-radius: 20px !important;
    transition: background 0.3s ease !important;
}

.klaro .cookie-modal .cm-list-label .slider:before {
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Required badge */
.klaro .cookie-modal .cm-service.cm-required {
    opacity: 0.7 !important;
}

.klaro .cookie-modal .cm-service.cm-required:after {
    content: "Erforderlich" !important;
    background: #6c757d !important;
    color: #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    float: right !important;
}

/* Modal footer */
.klaro .cookie-modal .cm-footer {
    background: #f8f9fa !important;
    padding: 20px 32px !important;
    border-radius: 0 0 16px 16px !important;
    border-top: 2px solid #e9ecef !important;
}

.klaro .cookie-modal .cm-footer .cm-buttons {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
}

/* Modal buttons */
.klaro .cookie-modal .cm-btn {
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-success {
    background: #1863DC !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24, 99, 220, 0.3) !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-success:hover {
    background: #1450C8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(24, 99, 220, 0.4) !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-info {
    background: #ffffff !important;
    color: #1863DC !important;
    border-color: #1863DC !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-info:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px) !important;
}

/* Close button */
.klaro .cookie-modal .cm-close {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
}

.klaro .cookie-modal .cm-close:hover {
    opacity: 1 !important;
}

/* === CONTEXT NOTICE (small info button) === */
.klaro .context-notice {
    background: #1863DC !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    box-shadow: 0 4px 12px rgba(24, 99, 220, 0.3) !important;
    transition: all 0.3s ease !important;
}

.klaro .context-notice:hover {
    background: #1450C8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(24, 99, 220, 0.4) !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .klaro .cookie-notice {
        padding: 20px 16px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .klaro .cookie-notice .cn-body {
        font-size: 14px !important;
    }
    
    .klaro .cookie-notice .cn-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .klaro .cookie-notice .cn-buttons button {
        width: 100% !important;
        text-align: center !important;
    }
    
    .klaro .cookie-modal .cm-modal {
        margin: 20px !important;
        max-width: calc(100% - 40px) !important;
    }
    
    .klaro .cookie-modal .cm-header,
    .klaro .cookie-modal .cm-body,
    .klaro .cookie-modal .cm-footer {
        padding: 20px !important;
    }
    
    .klaro .cookie-modal .cm-footer .cm-buttons {
        flex-direction: column !important;
    }
    
    .klaro .cookie-modal .cm-btn {
        width: 100% !important;
    }
}

/* === ANIMATIONS === */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.klaro .cookie-notice {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.klaro .cookie-modal {
    animation: fadeIn 0.3s ease !important;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.klaro .cookie-modal .cm-modal {
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* === ACCESSIBILITY === */
.klaro button:focus,
.klaro a:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

/* === CUSTOM SCROLLBAR === */
.klaro .cookie-modal .cm-body::-webkit-scrollbar {
    width: 8px;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-thumb {
    background: #1863DC;
    border-radius: 4px;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-thumb:hover {
    background: #1450C8;
}