﻿@keyframes cookiepulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.025);
    }
}

@keyframes showcookiebanner {
    from {
        visibility: hidden;
        opacity: 0;
        transform: translateY(300px);
    }

    1% {
        visibility: visible;
        opacity: 0;
        transform: translateY(300px);
    }

    to {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dismisscookiebanner {
    from {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    99% {
        visibility: visible;
        opacity: 0;
        transform: translateY(300px);
    }

    to {
        visibility: hidden;
        opacity: 0;
        transform: translateY(300px);
    }
}

#cookie-banner {
    display: none;
    background: #05396b;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    text-align: center;
    padding: 20px 15px;
    animation-delay: 500ms;
    animation-duration: 250ms;
    animation-name: showcookiebanner;
    animation-fill-mode: both!important;
    animation-timing-function: ease-in-out;
    font-weight: 400;
}

    #cookie-banner.cookie-banner-active {
        display: block;
    }

    #cookie-banner.is-dismiss {
        animation-name: dismisscookiebanner;
        animation-delay: 0s;
    }

    #cookie-banner > div {
        margin: 0 auto 10px;
        max-width: 738px;
    }

    #cookie-banner p {
        padding: 0;
        margin: 0;
        color: #ddd;
        line-height: 1.4;
    }

    #cookie-banner .cta {
        display: inline-block;
        float: none;
        font-size: 14px;
        margin: 10px;
        padding: 15px 30px;
        text-align: center;
    }

@media (max-width:768px) {
    #cookie-banner .cta {
        width: 90%;
    }
}

#cookie-banner .learn-more {
    font-size: 12px;
    padding: 10px
}

#cookie-banner div#cookie-prefs {
    display: flex;
    margin: 15px auto;
    font-size: 16px;
    text-align: left;
    align-items: stretch;
    max-width: 970px;
    color: white;
}

#cookie-prefs > div {
    position: relative;
    padding: 0 15px 35px;
    flex: 1;
}

#cookie-prefs h5 {
    margin: 0;
    color: white;
}

#cookie-prefs p {
    font-weight: 300;
    line-height: 1.25;
}

#cookie-prefs .cbox {
    position: absolute;
    bottom: 0;
}

@media (max-width:768px) {
    #cookie-banner div#cookie-prefs {
        display: block;
        margin-top: 20px;
        margin-bottom: 0;
    }

    #cookie-prefs > div {
        padding-bottom: 20px;
    }

    #cookie-prefs .cbox {
        position: static;
        padding-top: 10px;
    }

    #cookie-banner p, #cookie-prefs, #cookie-prefs h5 {
        font-size: 12px;
    }

        #cookie-prefs h5 {
            float: left;
            line-height: 1.25;
            font-weight: 700;
        }

            #cookie-prefs h5:after {
                content: '\a0-\a0';
            }

        #cookie-prefs .cbox p {
            line-height: 21px;
            margin-left: 28px !important;
        }
}

#cookie-prefs .cbox p {
    font-weight: 600;
}

.cbox {
    color: inherit;
    user-select: none;
    -webkit-user-select: none;
}

#cookie-prefs > div + div > .cbox {
    cursor: pointer;
}

.cbox i {
    display: block;
    float: left;
    width: 1.4em;
    height: 1.4em;
    color: inherit;
    border-width: 1px;
    border-style: solid;
    text-align: center;
    line-height: 1.4em;
    margin: -0.15em 0 0 0;
}

.cbox svg {
    opacity: 0.07;
    color: inherit;
}

.cbox p {
    margin-left: 1.7em !important;
    opacity: 0.5;
}

.cbox:hover p {
    opacity: 0.75;
}

.cbox.cbox-checked svg, .cbox.cbox-checked p {
    opacity: 1;
}
/* cb-alt */

#cookie-banner.cb-alt {
    background-color: transparent;
    padding: 120px 25px 90px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.95) 100%);
}

    #cookie-banner.cb-alt > div {
        margin: 0 auto;
        padding: 20px;
        max-width: 900px;
        background-color: #05396b;
        box-sizing: border-box;
        border: 2px double rgba(255,255,255,0.4);
        background-clip: padding-box;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4),0 10px 50px rgba(0,0,0,0.75);
        display: flex;
        align-items: center;
    }

    #cookie-banner.cb-alt .rte p {
        text-align: left;
        line-height: 1.25;
        font-size: 16px;
    }

    #cookie-banner.cb-alt div#cookie-prefs {
        position: absolute;
        bottom: 100%;
        left: 0;
        width: 240px;
        height: auto;
        display: none;
        background-color: #05396b;
        font-size: 14px;
        padding: 20px 20px 5px;
        border: 2px double rgba(255,255,255,0.4);
        background-clip: padding-box;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4),0 10px 50px rgba(0,0,0,0.75);
    }

        #cookie-banner.cb-alt div#cookie-prefs > div {
            padding: 0 0 15px !important;
        }

        #cookie-banner.cb-alt div#cookie-prefs .cbox {
            position: relative;
            margin-bottom: 4px !important;
        }

#cookie-settings {
    position: relative;
}

#cookie-banner.cb-alt .show-settings div#cookie-prefs {
    display: block;
}

#cookie-banner.cb-alt .cta {
    white-space: nowrap;
    display: block;
    margin: 0 10px;
}

    #cookie-banner.cb-alt .cta.settings {
        margin: 0 10px 0 20px;
        background-color: #888;
        border: none;
        color: #fff;
        display: inline-block;
        float: left;
        font-weight: 400;
        font-size: 14px;
        line-height: 1;
        height: auto;
        letter-spacing: 1px;
        margin-top: 0;
        text-align: center;
        text-transform: uppercase;
        -moz-transition: background .2s ease-in;
        -o-transition: background .2s ease-in;
        -webkit-transition: background .2s ease-in;
        transition: background .2s ease-in;
        text-decoration: none;
    }

        #cookie-banner.cb-alt .cta.settings:hover {
            background-color: #aaa;
            text-decoration: none;
        }


    #cookie-banner.cb-alt .cta.save {
        animation-delay: 0ms;
        animation-duration: 500ms;
        animation-name: cookiepulse;
        animation-fill-mode: forwards;
        animation-timing-function: ease-in-out;
        animation-direction: alternate;
        animation-iteration-count: infinite;
        background: #43b02a;
        border: none;
        color: #fff;
        display: inline-block;
        font-weight: 400;
        font-size: 14px;
        line-height: 1;
        height: auto;
        letter-spacing: 1px;
        margin-top: 0;
        text-align: center;
        text-transform: uppercase;
        -moz-transition: background .2s ease-in;
        -o-transition: background .2s ease-in;
        -webkit-transition: background .2s ease-in;
        transition: background .2s ease-in;
        text-decoration: none;
    }

        #cookie-banner.cb-alt .cta.save:hover {
            background: #2fd109;
            color: #FFFFFF;
            text-decoration: none;
        }


@media (max-width:768px) {
    #cookie-banner.cb-alt {
        padding-bottom: 25px;
    }

        #cookie-banner.cb-alt > div {
            display: block;
        }

        #cookie-banner.cb-alt .rte p {
            text-align: center;
            margin-bottom: 16px;
        }

        #cookie-banner.cb-alt .cta {
            width: auto;
            padding: 15px 10px;
        }

            #cookie-banner.cb-alt .cta.settings {
                float: left;
                width: 108px;
                margin: 0;
            }

            #cookie-banner.cb-alt .cta.save {
                margin: 0 0 0 128px;
            }

        #cookie-banner.cb-alt div#cookie-prefs {
            margin-bottom: 16px;
        }

            #cookie-banner.cb-alt div#cookie-prefs, #cookie-banner.cb-alt div#cookie-prefs p {
                font-size: 14px;
            }

                #cookie-banner.cb-alt div#cookie-prefs .cbox {
                    padding-top: 0;
                }
}
