.cookiepolicy {
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 10000;
    font-family: 'Open Sans', Arial, sans-serif;
    display: none;
    overflow: auto;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookiepolicy h2 {
    font-size: 1.7em;
    text-align: center;
    color: #022c5d;
}

.cookie-modal {
    width: 600px;
    overflow: auto;
    max-width: 100%;
    min-height: 200px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);
    padding: 1.4em 14px;
    margin: 1.75rem auto;
}

.cookie-modal > header {
    border: 0;
    box-shadow: none;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.2em;
    font-size: 2em;
    font-weight: 700;
    color: #022c5d;
    font-family: 'HelveticaNeue', 'Open Sans', Arial;
    display: flex;
}

.cookie-modal > header > i.fa-arrow-left {
    cursor: pointer;
}

.cookie-modal section.primary-text {
    
}

.cookie-modal section.cookie-settings {
    display: flex;
    flex-wrap: wrap;
}

.cookie-modal section > div {
    flex: 1;
}

.cookie-modal section > div.save-wrapper {
    flex: auto;
    width: 100%;
    text-align: right;
}

.cookie-modal section > div.settings-left { margin-right: 15px; }
.cookie-modal section > div.settings-right { margin-left: 15px; }

.cookie-modal section.bg-blue {
    margin-bottom: 1em;
    color: #fff;
    padding: 20px;
    font-size: 1em;
    line-height: 1.5em;
    border-radius: 10px;
    background: #fff;
    color: #022c5d;
    border: 1px solid #022c5d;
}

.cookie-modal p {
    margin: 0;
}

button.cookie-btn {
    border: 0;
    background: #54668e;
    padding: 1em;
    color: #fff;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
}

button.cookie-btn.green {
    background-color: #4fa344;
}

section.bottom {
    display: flex;
    justify-content: space-between;
}

.cookie-modal .toggle-panel {
    padding: 20px 0;
}

.cookie-modal .toggle-panel > .toggle-wrapper {
    display: flex;
    margin-top: 10px;
    font-weight: 600;
    justify-content: space-between;
}

@media screen and (max-width: 420px) {
    .cookiepolicy {
        overflow: auto;
        height: 100%;
    }

    .cookie-modal {
        overflow: scroll;
    }

    .cookie-modal section.cookie-settings {
        flex-wrap: wrap;
    }
}

/* ----- CHECKBOX ----- */
.tgl {display: none; }
.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-btn {box-sizing: border-box; }
.tgl::-moz-selection, .tgl:after::-moz-selection, .tgl:before::-moz-selection, .tgl *::-moz-selection, .tgl *:after::-moz-selection, .tgl *:before::-moz-selection, .tgl + .tgl-btn::-moz-selection {background: none; }
.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-btn::selection {background: none; }
.tgl + .tgl-btn {outline: 0; display: inline-block; width: 3em; height: 1.5em; position: relative; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.tgl + .tgl-btn:after, .tgl + .tgl-btn:before {position: relative; display: block; content: ""; width: 50%; height: 100%; }
.tgl + .tgl-btn:after {left: 0; }
.tgl + .tgl-btn:before {display: none; }
.tgl:checked + .tgl-btn:after {left: 50%; }
.tgl-light + .tgl-btn {background: #d4273e; border-radius: 2em; padding: 2px; -webkit-transition: all .4s ease; transition: all .4s ease; margin-bottom: -7px; }
.tgl-light + .tgl-btn:after {border-radius: 50%; background: #fff; -webkit-transition: all .2s ease; transition: all .2s ease; }
.tgl-light:checked + .tgl-btn {background: #afca0b; }
.tgl-light:checked + .tgl-btn.tgl-disabled {background: #888; }
