/* Custom Klaro styling to match app fonts and colors */

/* Using the same font family as the main app */
.klaro,
.klaro .cookie-modal,
.klaro .cookie-notice {
    font-family: 'Inter', sans-serif;
}

/* IMPORTANT: Force modal to bottom of screen and constrain width to match header/footer */
.klaro .cookie-modal {
    overflow: visible !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
}

/* Force positioning to appear at the bottom regardless of Klaro's attempts to center it */
body .klaro .cookie-modal,
html .klaro .cookie-modal {
    align-items: flex-end !important;
}

/* Make the modal width match the container width */
.klaro .cookie-modal .cm-modal {
    max-width: var(--container-width, 1140px) !important;
    width: 90% !important; /* Fallback and for responsive behavior */
    margin: 0 auto !important;
    border-radius: 0 !important;
    position: relative !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    height: auto !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
}

/* Make the notice also constrained to match the container width */
.klaro .cookie-notice {
    max-width: var(--container-width, 1140px) !important;
    width: 90% !important; /* Fallback and for responsive behavior */
    margin: 0 auto !important;
    padding: 1em !important;
    border-radius: 0 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
}

/* Preserve the default vertical service layout but with better spacing */
.klaro .cookie-modal .cm-services .cm-services-list {
    display: block !important; /* Restore vertical layout */
}

.klaro .cookie-modal .cm-services .cm-services-list .cm-service {
    margin-bottom: 10px !important;
    padding: 10px !important;
    border-radius: 5px !important;
    border: 1px solid #e9e9e9 !important;
}

/* Responsive layout for mobile */
@media (max-width: 600px) {
    .klaro .cm-purpose {
        margin-bottom: 10px !important;
    }
}

/* Service header layout */
.klaro .cookie-modal .cm-services .cm-service .cm-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Match button colors with app accent color */
.klaro .cookie-modal .cm-btn,
.klaro .cookie-notice .cm-btn,
.klaro .cookie-modal .cm-btn.cm-btn-success,
.klaro .cookie-notice .cm-btn.cm-btn-success {
    background-color: var(--accent-color, #155dfc) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
}

.klaro .cookie-modal .cm-btn:hover,
.klaro .cookie-notice .cm-btn:hover {
    background-color: var(--accent-hover-color, #3555d4) !important;
}

/* Cancel/decline button */
.klaro .cookie-modal .cm-btn.cm-btn-decline,
.klaro .cookie-notice .cm-btn.cm-btn-decline {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-decline:hover,
.klaro .cookie-notice .cm-btn.cm-btn-decline:hover {
    background-color: #e0e0e0 !important;
}

/* Link colors in the modal */
.klaro .cookie-modal a,
.klaro .cookie-notice a,
.klaro .cookie-modal .cm-link,
.klaro .cookie-notice .cm-link {
    color: var(--accent-color, #155dfc) !important;
    text-decoration: none !important;
}

.klaro .cookie-modal a:hover,
.klaro .cookie-notice a:hover {
    text-decoration: underline !important;
}

/* Force all toggle switches to be inline with their labels */
.klaro .cm-toggle-all {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-bottom: 10px !important;
}

/* Use more horizontal space for better readability */
.klaro .cookie-modal .cm-modal .cm-body {
    padding: 1em 1.5em !important;
}

/* Make the heading smaller */
.klaro .cookie-modal .cm-modal .cm-header {
    padding: 1em 1.5em !important;
    border-bottom: 1px solid #eee !important;
}

.klaro .cookie-modal .cm-modal .cm-header h1 {
    font-size: 1.5em !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

/* Reduce padding in footer */
.klaro .cookie-modal .cm-modal .cm-footer {
    padding: 1em !important;
    border-top: 1px solid #eee !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

/* Better styling for the switches */
.klaro .cm-toggle-slider {
    background-color: #ccc !important;
}

.klaro input:checked + .cm-toggle-slider {
    background-color: var(--accent-color, #155dfc) !important;
}

/* Remove extra padding from service description */
.klaro .cookie-modal .cm-services .cm-service .cm-service-description {
    margin-top: 0.5em !important;
}

/* Style the arrows and service counts to match the app design */
.klaro .cm-service .cm-header .cm-header-title,
.klaro [class*="cl-service-title"] {
    color: #333 !important;
    font-weight: 600 !important;
}

/* Style for service count indicators */
.klaro .cm-service-count,
.klaro [class*="cl-service-count"] {
    color: var(--accent-color, #155dfc) !important;
    font-size: 0.9em !important;
}

/* Footer cookie settings link styling to match other footer links */
.footer-cookie-settings {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
} 