#cookieprefs {
    right: 0;
    padding: 45px;
    width: 650px;
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    font-size: .9em;
    line-height: 1.6;
    text-align: left;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 0 30px rgb(0 0 0 / 20%);
    opacity: 0;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 300ms ease-in-out;
    scrollbar-width: thin;
    background-color: var(--bodycolor1);
}
#cookieprefs h2 {
    color: var(--textcolor1);
}
#cookieprefs.not-static {
    position: fixed;
}
#cookieprefs.appear {
    opacity: 1;
}
#cookieprefs .cookietitle {
    font-size: 1.4em;
    font-weight: 600;
}
#cookieprefs .cookieintro {
    margin-bottom: 1.2em;
    position: relative;
}

#cookieprefs .cookieopt {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 1em;
    margin-bottom: 1em;
}
#cookieprefs .cookieopt details {
    flex-grow: 1;
    text-align: left;
}
#cookieprefs .cookieopt details summary {
    cursor: pointer;
    font-weight: 600;
}
#cookieprefs .cookieopt details p {
    margin-top: 20px;
    width: calc(100% + 60px);
}
#cookieprefs .cookieopt label.cookieopt-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    min-width: 60px;
    height: 30px;
}
#cookieprefs .cookieopt label.cookieopt-toggle .toggle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background-color: #444;
    transition: background-color 300ms ease-in-out;
}
#cookieprefs .cookieopt label.cookieopt-toggle .toggle-background:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--bodycolor1);
    transition: transform 300ms ease-in-out;
}
#cookieprefs .cookieopt label.cookieopt-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}
#cookieprefs .cookieopt label.cookieopt-toggle input[type="checkbox"]:not(:disabled) + .toggle-background {
    cursor: pointer;
}
#cookieprefs .cookieopt label.cookieopt-toggle input[type="checkbox"]:checked + .toggle-background {
    background-color: var(--success);
}
#cookieprefs .cookieopt label.cookieopt-toggle input[type="checkbox"]:disabled + .toggle-background {
    opacity: 0.25;
    background-color: #aaa;
}
#cookieprefs .cookieopt label.cookieopt-toggle input[type="checkbox"]:checked + .toggle-background:after {
    transform: translateX(30px);
}
#cookieprefs p a {
    color: var(--color1);
}
#cookieprefs .button-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--bodycolor1);
    box-shadow: 0 30px 30px 50px #fff;
    margin-top: 40px;
    padding-top: 0;
}
#cookieprefs .button-row button {
    align-items: center;
    left: 0;
    margin: 0;
    padding: 15px 22px 15px 22px;
    font-size: 1em;
    color: var(--textcolor1);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 5px;
    box-sizing: border-box;
}
#cookieprefs .button-row button:not(#cookies-accept-all) {
    background-color: #efefef;
}

#cookieprefs .button-row button#cookies-deny-all {
    color: var(--textcolor1);
}
#cookieprefs .button-row button#cookies-save-preferences {
    color: var(--textcolor1);
}
#cookieprefs .button-row button#cookies-accept-all {
    color: #fff;
    background-color: var(--success);
}

#cookieprefs .button-row button:not(#cookies-accept-all):hover {
    opacity: 0.8;
}
#cookieprefs .button-row button#cookies-accept-all:hover {
    opacity: 0.9;
}

div.cookieconsent-optout-marketing {
    position: absolute;
    top: -30px;
    left: 5%;
    padding: 25px 30px;
    width: 600px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}
div.cookieconsent-optout-marketing strong {
    display: block;
}
div.cookieconsent-optout-marketing a {
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
}
div.cookieconsent-optout-marketing a:hover {
    text-decoration: none;
}
div.content div.media div.videowrapper div.cookieconsent-optout-marketing a {
    display: initial;
}

@media screen and (max-width: 900px) {
    
    #cookieprefs {
        /*font-size: .8em;*/
    }
    #cookieprefs .button-row {
        flex-direction: column;
    }
    #cookieprefs .button-row .btn {
        width: 100%;
    }
    
}
@media screen and (max-width: 600px) {
    
    #cookieprefs {
        padding: 25px;
    }
    #cookieprefs .button-row .btn {
        justify-content: center;
    }
    
    div.cookieconsent-optout-marketing {
        position: relative;
        top: 0;
        left: 0;
        padding: 25px 7.5%;
        font-size: 14px;
        border-radius: 0;
        box-shadow: none;
    }
    div.cookieconsent-optout-marketing:after {
        position: absolute;
        bottom: -15px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 30px;
        height: 30px;
        content: "";
        transform: rotate(45deg);
        background-color: #fff;
    }

}