/*
    Copyright (c) 2021, VALID Digitalagentur GmbH
*/


/* DISABLE */

.disabled_by_missing_cookie {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.25;
}


/* COLORS */

.cookie {
    --cookie-banner-color-high: #bbb;
    --cookie-banner-color-low: #000;
    --cookie-banner-color-link: #666;
    --cookie-banner-color-highlight: #fff;
    --cookie-selection-color-border: #bbb;
    --cookie-selection-color-disabled: #bbb;
    --cookie-selection-color-switch_slider: #bbb;
    --cookie-selection-color-switch_dot: #fff;
    --cookie-selection-color-switch_dot-highlight: #fff;
}


/* VIEW BANNER */

.cookie.view-banner.banner {
    z-index: 99999;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 1.875em 0;
    width: 100%;
    color: var(--cookie-banner-color-high);
    background-color: var(--cookie-banner-color-low);
}

.cookie.view-banner .inside {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width: 1023px) {
    .cookie.view-banner .inside {
        flex-direction: column;
    }
}

.cookie.view-banner .text {
    width: 45%;
    font-size: 1.125rem;
    line-height: 1.5em;
}

@media only screen and (max-width: 1023px) {
    .cookie.view-banner .text {
        width: 100%;
    }
}

.cookie.view-banner .text>* {
    font-size: inherit;
    line-height: inherit;
}

.cookie.view-banner .link {
    color: var(--cookie-banner-color-link);
}

.cookie.view-banner .group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 50%;
}

@media only screen and (max-width: 767px) {
    .cookie.view-banner .group {
        width: 100%;
        justify-content: flex-start;
    }
}

.cookie.view-banner .button {
    cursor: pointer;
    display: inline-block;
    padding: 0 1em;
    border: none;
    width: 48%;
    height: 2.5em;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 2.5em;
    border-radius: 5px;
    color: var(--cookie-banner-color-low);
    background-color: var(--cookie-banner-color-high);
    transition: background-color .25s ease-in-out;
}

.cookie.view-banner .button:hover,
.cookie.view-banner .button.highlight:hover {
    background-color: var(--cookie-banner-color-link);
}

.cookie.view-banner .button.highlight {
    background-color: var(--cookie-banner-color-highlight);
}

@media only screen and (max-width: 767px) {
    .cookie.view-banner .button:first-child {
        width: auto;
        margin-right: 0.75em;
    }
}

@media only screen and (max-width: 421px) {
    .cookie.view-banner .button:first-child {
        margin-bottom: 1em;
    }
}


/* VIEW SELECTION */

.cookie.view-selection .feature-list,
.cookie.view-selection .cookie-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cookie.view-selection .feature-list_item {
    margin-bottom: 3.125em;
    border-bottom: 1px solid var(--cookie-selection-color-border);
}

.cookie.view-selection .feature-list_item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.cookie.view-selection .cookie-list_item {
    margin-bottom: 1.5em;
}

.cookie.view-selection .feature_switch-label {
    cursor: pointer;
    font-weight: 700;
}

.cookie.view-selection .feature_switch {
    cursor: pointer;
    position: relative;
    display: inline-block;
    margin: 0 0 0 0.5em;
    border: none;
    width: 3em;
    height: 1.7em;
    font-weight: 700;
    font-size: inherit;
    line-height: inherit;
    background-color: transparent;
    text-align: left;
}

.cookie.view-selection .feature_switch-label.is-disabled,
.cookie.view-selection .feature_switch:disabled {
    cursor: not-allowed;
    color: var(--cookie-selection-color-disabled);
}

.cookie.view-selection .feature_switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cookie-selection-color-switch_slider);
    border-radius: 1.7em;
}

.cookie.view-selection .feature_switch-slider:before {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0.2em;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    background-color: var(--cookie-selection-color-switch_dot);
    transition: all .45s ease-in-out;
}

.cookie.view-selection .feature_switch[aria-checked=true] .feature_switch-slider:before {
    left: 1.5em;
    background-color: var(--cookie-selection-color-switch_dot-highlight);
}

.cookie.view-selection .feature_switch-text {
    position: relative;
    left: 3em;
}

.cookie.view-selection .description-list {
    clear: both;
    margin: 0;
}

.cookie.view-selection .description-term {
    float: left;
    margin: 0 .25em 0 0;
    min-width: 5em;
}

.cookie.view-selection .description-data {
    overflow: hidden;
}