/* Modal */
.klaro-hidden #klaro { display: none !important; }

.klaro-hidden #klaro.klaro-force-show { display: block !important; }

.cookie-modal {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cm-bg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0, .5);
}

.cm-modal {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: #fff;
    width: auto;
    max-width: 750px;
    height: auto;
    max-height: 98%;
    margin-left: auto;
    margin-right: auto;
    padding: 32px;
    border-radius: 8px;
    overflow: auto;
}

.cm-modal .hide {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    display: block;
    border-style: none;
    background: none;
    cursor: pointer;
}

.cm-modal .hide svg {
    display: block;
    stroke: #000;
}

.cm-header,
.cm-body {
    margin-left: -32px;
    margin-right: -32px;
    margin-bottom: 32px;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #ccc;
}

.cm-header .title {
    margin-bottom: 16px;
    font-size: 38px;
    font-weight: 700;
    line-height: 48px;
}

.cm-header p,
.cm-list-description {
    font-size: 14px;
    line-height: 1.3;
}

.cm-header > p:last-child { margin-bottom: 0; }

.cm-header p p { margin-bottom: 16px; }
.cm-header p p:last-child { margin-bottom: 0; }

.cm-header span a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cm-body ul { display: block; }

.cm-body span {
    display: inline-block;
    width: auto;
}

.cm-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.cm-footer-buttons .cm-btn-accept-all { order: 0; }
.cm-footer-buttons .cm-btn-accept { order: 1; }
.cm-footer-buttons .cn-decline { order: 2; }

.cm-footer-buttons .cm-btn {
    margin-left: 8px;
    margin-right: 8px;
}



/* Switches */
.cm-services,
.cm-purposes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-switch,
.cm-body .cm-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.cm-list-input:checked + .cm-list-label .slider { background-color: var(--color-primary); }

.cm-list-input.half-checked:checked + .cm-list-label .slider {
    background-color: var(--color-primary);
    opacity: 0.6;
}

.cm-list-input.half-checked:checked + .cm-list-label .slider:before,
.cm-list-input.only-required + .cm-list-label .slider:before { transform: translateX(10px); }

.cm-list-input.only-required + .cm-list-label .slider {
    background-color: var(--color-primary);
    opacity: 0.7;
}

.cm-list-input.required:checked + .cm-list-label .slider {
    background-color: var(--color-primary);
    opacity: 0.7;
    cursor: not-allowed;
}

.cm-list-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 30px;
    opacity: 0;
}

.cm-list-label .cm-switch {
    position: absolute;
    left: 0;
}

.cm-list-label .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f2f2f2;
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 30px;
    transition: 0.4s;
    cursor: pointer;
}

.cm-list-label .slider:before {
    position: absolute;
    left: 5px;
    bottom: 5px;
    height: 20px;
    width: 20px;
    background-color: #e6e6e6;
    border-radius: 50%;
    transition: 0.4s;
    content: '';
}

.cm-list-label input:checked + .slider:before { transform: translateX(20px); }

.cm-list-input:checked + .cm-list-label .slider:before { transform: translateX(20px); }

.cm-services .cm-content {
    display: none;
    margin-left: -40px;
}

.cm-services .cm-content.expanded {
    display: block;
    margin-top: 10px;
}

li.cm-service,
li.cm-purpose {
    position: relative;
    min-height: 40px;
    padding-left: 60px;
    vertical-align: middle;
    line-height: 20px;
}

li.cm-service:first-child,
li.cm-purpose:first-child { margin-top: 0; }

li.cm-service:last-child,
li.cm-purpose:last-child { margin-bottom: 0; }

li.cm-service p,
li.cm-purpose p { margin-top: 0; }

li.cm-service.cm-toggle-all,
li.cm-purpose.cm-toggle-all {
    margin-left: -32px;
    margin-right: -32px;
    margin-top: 24px;
    padding-left: 92px;
    padding-right: 32px;
    padding-top: 24px;
    border-top: 1px solid #ccc;
}

li.cm-service.cm-toggle-all .cm-switch,
li.cm-purpose.cm-toggle-all .cm-switch { left: 32px; }

li.cm-service span.cm-opt-out,
li.cm-service span.cm-required,
li.cm-purpose span.cm-opt-out,
li.cm-purpose span.cm-required {
    color: #5c5c5c;
    padding-left: 4px;
    font-size: 0.8em;
}

.cm-list-title { font-weight: 700; }

.cm-list-description,
.cm-services,
p.purposes { padding-top: 5px; }

p.purposes { color: #999; }

.cm-service:not(:last-child),
.cm-purpose:not(:last-child) { margin-bottom: 16px; }



/* Purposes */
.cm-hide-purposes p.purposes { display: none; }

.cm-list-input:checked + .cm-list-label .slider { background-color: var(--color-primary); }

li.cm-service.cm-toggle-all,
li.cm-purpose.cm-toggle-all {
    margin-top: 14px;
    padding-top: 14px;
}

.cm-list-label {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1;
}

.cm-list-description,
.cm-list-description p { font-size: 13px; }

.cm-list-description,
.cm-list-description p:last-child { margin-bottom: 0; }

.cm-service:not(:last-child),
.cm-purpose:not(:last-child) { margin-bottom: 14px; }

.cm-list-input.required:checked + .cm-list-label .slider { background-color: var(--color-primary); }

.cm-list-input.only-required + .cm-list-label .slider { background-color: #f2f2f2; }

p.purposes,
.cm-body span.cm-opt-out { display: none; }


@media ( max-width: 767px ) {
    .cm-modal {
        max-height: 100%;
        padding: 24px;
        border-radius: 0;
    }

    .cm-header,
    .cm-body {
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: 24px;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 24px;
    }

    .cm-header .title {
        font-size: 24px;
        line-height: 32px;
    }

    .cm-footer-buttons { justify-content: center; }

    .cm-footer-buttons button {
        width: 100%;
        margin: 0;
    }

    .cm-footer-buttons .cm-btn-accept,
    .cm-footer-buttons .cm-btn-accept-all { margin-bottom: 12px; }
}



/* Read more */
.klaro-read-more {
    display: none;
    margin-top: 16px;
}

.klaro-read-more.is-active { display: block; }

.klaro-read-more-btn {
    display: inline-block;
    margin-top: 16px;
    color: var(--color-primary);
    text-decoration: underline;
}