/* Cookie Popup */
#cookie_popup{
    position: fixed;
    background-color: black;
    color: white;
    bottom: 0px;
    left: 0px;
    right: 0px;
    overflow: hidden;
    display: none;
    font-size: 16px;
    font-weight: 400;
}

#cookie_popup_inner{
    padding: 28px 35px 32px 35px;
}

#cookie_popup_text{
    padding-bottom: 20px;
    line-height: 1.3em;
}

#accept_cookies_button{
    background-color: white;
    color: black;
    font-size: 18px;
    padding: 5px 27px 5px 27px;
    display: inline-block;
    font-weight: 800;
    text-decoration: none;
    transition: box-shadow 300ms;
    cursor: pointer;
}

#accept_cookies_button:hover{
    box-shadow: 0px 0px 55px 5px rgba(236, 236, 222, 0.6);
}

#manage_your_settings{
    display: inline-block;
    margin-left: 30px;
    cursor: pointer;
    border-bottom: 2px solid white;
    vertical-align: center;
    font-weight: 700;
}

.cookie_settings_link,
a.cookie_settings_link{
    display: inline;
    cursor: pointer;
    border-bottom: 2px solid white;
    font-weight: 700;
    font-size: 14px;
    padding-bottom: 2px;
    text-decoration: none;
}

.small_screen_cookie_link,
a.small_screen_cookie_link{
    display: none;
}

#cookie_logo{
    display: none;
}

/* Cookie settings */
#cookie_settings_tray{
    position: fixed;
    width: 100vw;
    top: 0px;
    bottom: 0px;
    left: -100vw;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms 130ms, visibility 0ms 500ms, left 0ms 500ms;
    z-index: 7777;
    color: black;
    text-align: left;
}

.cookie_tray_open #cookie_settings_tray{
    visibility: visible;
    opacity: 1;
    left: 0vw;
    transition: opacity 250ms;
}

#cookie_settings_background_colour{
    background-color: black;
    position: fixed;
    top: 0px; bottom: 0px; left: 0px; right: 0px;
    opacity: 0.7;
}

#cookie_settings_list{
    width: 100%;
    max-width: 430px;
    padding: 94px 30px 95px 30px;
    margin: auto;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 300ms, opacity 300ms;
    box-sizing: border-box;
    background-color: #ebede1;
}

.cookie_tray_open #cookie_settings_list{
    transform: scale(1);
    opacity: 1;
}

#cookie_settings_title{
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    margin: 0px;
    line-height: 1.36;
    padding: 0px 20px 25px 20px;
    text-align: center;
}

#other_cookies{
    position: relative;
}

.other_cookies_cover{
    position: absolute;
    top: 0px; bottom: 0px; left: 0px; right: 0px;
    background-color: black;
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms, visibility 0ms 200ms;
}

.hide_other_cookies .other_cookies_cover{
    visibility: visible;
    opacity: 0.1;
    transition: opacity 200ms;
}

.cookie_container{
    padding: 20px 16px 18px 16px;
    position: relative;
    background-color: #F3F4ED;
    margin: 10px;
}

.cookie_title{
    font-size: 16px;
    font-weight: 500;
    float: left;
    line-height: 1.3em;
    width: calc(100% - 60px);
    transition: color 150ms;
}

.hide_other_cookies .cookie_title{
    color: #939392;
}

.cookie_switch{
    background-color: #27AD66;
    border-radius: 200px 200px 200px 200px;
    height: 20px;
    width: 40px;
    float: right;
    position: relative;
    cursor: pointer;
    margin-top: 2px;
    transition: background-color 150ms;
}

.cookie_knob{
    position: absolute;
    background-color: #188C52;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    right: 0px;
    transition: right 150ms, background-color 150ms;
}

.cookie_switch.off{
    background-color: #C95757;
}

.cookie_switch.off .cookie_knob{
    right: 19px;
    background-color: #AA2D27;
}

.hide_other_cookies .cookie_switch.off{
    background-color: #B3B3B3;
}

.hide_other_cookies .cookie_switch.off .cookie_knob{
    background-color: #727272;
}

.cookie_read_more{
    margin-top: 2px;
    cursor: pointer;
    display: inline-block;
}

.cookie_more_info_text{
    line-height: 1.3em;
    font-size: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid black;
    display: inline-block;
    transition: color 150ms, border-bottom 150ms;
}

.hide_other_cookies .cookie_more_info_text{
    color: #939392;
    border-bottom: 1px solid #939392;
}

.cookie_more_info{
    display: none;
    font-size: 16px;
    line-height: 1.3em;
}

#cookie_save_container{
    text-align: center;
    margin-top: 40px;
}

/* Site width */
@media screen and (max-width: 500px) {
    #cookie_popup{
        position: fixed;
        background-color: transparent;
        color: white;
        top: 0px;
        bottom: 0px;
        left: 0px;
        right: 0px;
        overflow: hidden;
        display: block;
        opacity: 0;
        z-index: 7777;
        animation: cookieTray 1s forwards;
    }

    @keyframes cookieTray {
        from{
            opacity: 0;
        }

        to{
            opacity: 1;
        }
    }

    @keyframes cookieTrayClose {
        0%{
            opacity: 1;
            display: block;
        }

        99%{
            opacity: 0;
            visibility: visible;
        }

        100%{
            visibility: hidden;
        }
    }

    #cookie_popup.close_cookie_popup{
        animation: cookieTrayClose 1s forwards;
    }

    #cookie_popup_background{
        position: absolute;
        top: 0px; bottom: 0px; left: 0px; right: 0px;
        background-color: black;
        opacity: 0.7;
    }

    #cookie_popup_inner{
        background-color: #ebede1;
        padding: 40px 25px 45px 25px;
        color: black;
        position: absolute;
        top: 50%;
        left: 35px;
        right: 35px;
        transform: translate(0, -50%);
    }

    .large_screen_cookie_link{
        display: none;
    }

    #cookie_logo{
        display: block;
        width: 50%;
        margin: 0px auto 20px auto;
    }

    .small_screen_cookie_link,
    a.small_screen_cookie_link{
        display: inline-block;
    }

    #accept_cookies_button{
        padding: 10px 27px 10px 27px;
    }

    .cookie_settings_link,
    a.cookie_settings_link{
        cursor: pointer;
        border-bottom: 2px solid black;
        font-weight: 400;
        font-size: 16px;
        margin: 20px 10px 0px 10px;
        padding-bottom: 0px;
    }

    /* Settings */
    #cookie_settings_list{
        margin: auto 35px auto 35px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 94px;
        padding-bottom: 95px;
        transition: none;
    }

    #cookie_settings_tray{
        transition: none
    }

    .cookie_tray_open #cookie_settings_tray{
        transition: none;
    }
}

@media screen and (max-width: 340px) {

    #cookie_settings_title{
        font-size: 14px;
    }
}

/* Height */
@media screen and (max-height: 600px) {

    #cookie_settings_list{
        padding-top: 64px;
        padding-bottom: 65px;
    }
}

@media screen and (max-height: 540px) {

    #cookie_settings_list{
        padding-top: 34px;
        padding-bottom: 35px;
    }
}

@media screen and (max-height: 485px) {

    #cookie_settings_list{
        padding-top: 29px;
        padding-bottom: 30px;
    }

    #cookie_save_container{
        margin-top: 20px;
    }
}