/* ===========================================================
	Klaro.js custom CSS
    By Tooltip Media
=========================================================== */

/* -------------- Klaro Default theme CSS - By Tooltip Media -------------- */

:root {
    --notice-right: auto;
    --notice-left: 24px;
    --notice-bottom: 24px;
    --notice-max-width: 440px;
    --tm-dark-black: #000000;
    --tm-medium-black: #282828;
    --tm-white-color: #FFFFFF;
    --tm-border-color: rgba(255, 255, 255, 0.25);
    --tm-dark-grey: #CCCCCC;
    --border-radius: 15px;
    --modal-bg-color: rgba(255, 255, 255, 0.1);
    --modal-bg-color-overlay: rgba(0, 0, 0, 0.85); 
    --tm-text-color: #FFFFFF;
    --box-shadow-modal: 0px 0px 20px rgba(0, 0, 0, .5), inset -10px 10px 15px rgba(255, 255, 255, .1), inset 10px -10px 35px rgba(255, 255, 255, .05);
}



/* Enter animation - only for the first notice display on page load */
body #klaro-cookie-notice.tm-klaro-initial-enter {
    opacity: 0;
    animation: klaro-cookie-notice-enter 1s ease-in-out forwards;
    animation-delay: 5s;
}

@keyframes klaro-cookie-notice-enter {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Floating modal in responsive mode */
@media (max-width: 1023px) {
    body #klaro .klaro .cookie-notice:not(.cookie-modal-notice) {
        bottom: 8px;
        right: 8px;
        width: calc(100% - 16px);
    }
}

/* Hide Powered by Klaro signature */
body .klaro .cookie-modal .cm-modal .cm-footer .cm-powered-by a {
    display: none;
}

body .klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
    bottom: 0;
    padding: 12px 16px;
}

body .klaro .cookie-notice:not(.cookie-modal-notice) .cn-body p {
    margin-bottom: 4px;
    opacity: 0.75;
}

body .klaro .cookie-notice .tm-modal-title {
    font-size: 1rem;
    margin-bottom: 8px !important;
}

body .klaro .cookie-notice p {
    margin-top: 0;
}

/* Buttons */
body .klaro .cookie-modal .cm-btn.cm-btn-success,
body .klaro .context-notice .cm-btn.cm-btn-success,
body .klaro .cookie-notice .cm-btn.cm-btn-success,
body .klaro .cookie-modal .cm-btn,
body .klaro .context-notice .cm-btn,
body .klaro .cookie-notice .cm-btn {
    border-style: solid;
    border-width: 2px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1rem;
    padding: 12px 20px;
    font-weight: 500;
    margin: 0 0.5rem 0 0;
    border-radius: 2px;
    cursor: pointer;
}

body .klaro .cookie-notice {
    border-radius: var(--border-radius);
}

/* Cookie Modal fix last button margin */
body .klaro .cm-modal .cm-footer-buttons button:last-child,
body .klaro .cookie-notice .cm-btn.cm-btn-success {
    margin-right: 0;
}

body .klaro .cookie-modal .cm-modal .cm-header h1.title {
    font-size: 1rem;
    font-weight: 600;
}

/* Z-index top of Crisp */
body .klaro .cookie-notice:not(.cookie-modal-notice) {
    z-index: 9998;
}
body .klaro .cookie-modal {
	z-index: 9999;
}



/* MEDIA QUERIES */
@media (min-width: 1024px) {

    body .klaro .cookie-notice:not(.cookie-modal-notice) {
        bottom: var(--notice-bottom);
        left: var(--notice-left);
        right: var(--notice-right);
        max-width: var(--notice-max-width);
        box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
    }

}


@media (max-width: 1023px) {
    body .klaro .cookie-notice:not(.cookie-modal-notice) {
        border-radius: var(--border-radius);
    }
}



@media (max-width: 424px) {
    body .klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-ok {
        display: flex;
        flex-flow: row;
        align-items: stretch;
        flex-direction: column;
    }
    body .klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons button.cm-btn {
        width: calc(50% - 0.25rem);
        text-align: center;
    }
    body .klaro .cm-modal .cm-footer .cm-footer-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    body .klaro .cm-modal .cm-footer-buttons .cm-btn {
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: center;
    }
}



/* --- Liquid glass effect adjustments --- */
body .klaro .cookie-notice:not(.cookie-modal-notice) {
    background-color: var(--modal-bg-color);
    font-size: 16px;
    line-height: 20px;
    color: var(--tm-white-color);
    box-shadow: var(--box-shadow-modal);
    backdrop-filter: blur(10px);
    width: 100%;
    border-radius: 15px;
}

body .klaro .cookie-notice:not(.cookie-modal-notice):before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.35) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


/*.klaro .cookie-notice .cn-body .tm-modal-title,
.klaro .cookie-notice .cn-body p,
.klaro .cookie-notice a,
.klaro .cookie-notice .cm-btn,
.klaro .cookie-notice .cm-btn.cm-btn-success {
    mix-blend-mode: difference;
}*/



body .klaro .cookie-notice .cn-body .tm-modal-title,
body .klaro .cookie-notice .cn-body p,
body .klaro .cookie-notice a {
    color: var(--tm-text-color);
}


body .klaro .cookie-notice .cn-body p.tm-modal-title {
    font-size: 1rem;
    opacity: 1;
}
body .klaro .cookie-notice .cn-body p {
    font-size: 0.875rem;
}


body .klaro .cookie-notice .cm-btn.cm-btn-success {
    color: var(--tm-dark-black);
    border-color: var(--tm-white-color);
    background-color: var(--tm-white-color);
}

body .klaro .cookie-notice .cn-decline {
    border-color: var(--tm-white-color);
    color: var(--tm-white-color);
    
}

body .klaro .cookie-notice .cn-decline,
body .klaro .cookie-modal .cm-btn-decline, 
body .klaro .cookie-notice .cm-btn.cm-btn-success, 
body .klaro .cm-modal .cm-footer-buttons button:last-child, 
body .klaro .cookie-notice .cm-btn.cm-btn-success {
    font-weight: 600;
}


/* Button colors */
body .klaro .cookie-modal .cm-btn.cm-btn-success,
body .klaro .context-notice .cm-btn.cm-btn-success {
    color: var(--tm-dark-black);
    border-color: var(--tm-white-color);
    background-color: var(--tm-white-color);
}

/* Refuse cookies button */
body .klaro .cookie-modal .cm-btn-decline {
    color: var(--tm-text-color);
    border-color: var(--tm-text-color);
}

body .klaro .cookie-modal .cm-btn-decline,
body .klaro .cookie-notice .cm-btn.cm-btn-success,
body .klaro .cm-modal .cm-footer-buttons button:last-child, 
body .klaro .cookie-notice .cm-btn.cm-btn-success {
    font-weight: 600;
}

body .klaro .cookie-modal .cm-btn,
body .klaro .context-notice .cm-btn,
body .klaro .cookie-notice .cm-btn {
    background-color: transparent;
}

/* Choose cookies button */
body .klaro .cookie-modal a,
body .klaro .context-notice a {
    color: var(--tm-text-color);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 0.5px;
}

/* Accept selected button */
body .klaro .cookie-modal .cm-btn.cm-btn-success.cm-btn-accept {
    background-color: transparent;
    color: var(--tm-text-color);
}

/* Decline button (Modal) */
body .klaro .cookie-modal .cm-btn-decline {
    color: var(--tm-text-color);
}

/* Réalisé par Klaro */
body .klaro .cookie-modal .cm-powered-by a {
    font-size: 0.65rem;
    font-weight: 300;
}

/* Modal colors, The modal is when you can choose your cookies options */
body .klaro .cookie-modal .cm-modal.cm-klaro {
    position: relative;
    background-color: var(--modal-bg-color);
    font-size: 16px;
    line-height: 20px;
    color: var(--tm-white-color);
    box-shadow: var(--box-shadow-modal);
    backdrop-filter: blur(10px);
    width: 100%;
    border-radius: 15px;
} 

body .klaro .cookie-modal .cm-modal.cm-klaro::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.35) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Title */
body .klaro .cookie-modal .cm-modal .cm-header h1.title,
body .klaro .cookie-modal p,
body .klaro .cookie-modal strong,
body .klaro .cookie-modal h1,
body .klaro .cookie-modal h2,
body .klaro .cookie-modal ul,
body .klaro .cookie-modal li,
body .klaro .context-notice p,
body .klaro .context-notice strong,
body .klaro .context-notice h1,
body .klaro .context-notice h2,
body .klaro .context-notice ul,
body .klaro .context-notice li,
body .klaro .cookie-notice p,
body .klaro .cookie-notice strong,
body .klaro .cookie-notice h1,
body .klaro .cookie-notice h2,
body .klaro .cookie-notice ul,
body .klaro .cookie-notice li,
body .klaro .cookie-modal .cm-list-description {
    color: var(--tm-text-color);
}

body .klaro .cookie-modal .cm-modal .cm-header {
    border-bottom-color: var(--tm-border-color);
}
body .klaro .cookie-modal .cm-modal .cm-footer,
body .klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose.cm-toggle-all {
    border-top-color: var(--tm-border-color);
}


body .klaro .cookie-modal .cm-modal .cm-header p,
body .klaro .cookie-modal .cm-modal .cm-body .cm-list-description {
    opacity: 0.75;
    font-size: 0.875rem;
}

/* Close modal button style */
body .klaro .cookie-modal .cm-modal .hide {
    width: 24px;
    height: 24px;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

body .klaro .cookie-modal .cm-modal .hide:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body .klaro .cookie-modal .cm-modal .hide svg {
    stroke: var(--tm-text-color);
}

/* Toggle button styles */
body .klaro .cookie-modal .cm-list-label .slider::before,
body .klaro .context-notice .cm-list-label .slider::before,
.klaro .cookie-notice .cm-list-label .slider::before {
    background-color: var(--tm-white-color);
}

body .klaro .cookie-modal .cm-list-label .slider,
body .klaro .context-notice .cm-list-label .slider,
body .klaro .cookie-notice .cm-list-label .slider {
    background-color: var(--tm-dark-grey);
}

body .klaro .cookie-modal .slider,
body .klaro .context-notice .slider,
body .klaro .cookie-notice .slider {
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

body .klaro .cookie-notice .cm-link {
    font-size: 0.875rem;
    font-weight: 600;
}

body .klaro .cookie-modal .cm-bg {
    background-color: var(--modal-bg-color-overlay);
}