#cookieoverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 99998;
}

#cookie-settingswindow button,
#cookiebar button {
    outline: none;
}

#cookie-settingswindow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow-y: auto;
}

#cookie-settingswindow .inside-settingswindow {
    background: #FFF;
    font-family: inherit;
    color: inherit;
    padding: 15px 15px 30px 15px;
    border-radius: 5px;
    font-size: 14px;
    width: 500px;
    box-shadow: 0 0 20px rgba(0,0,0,.3);
    line-height: 1.6;
}

#cookie-settingswindow .inside-settingswindow .cookie--headline {
    font-size: 16px;
    border-bottom: 1px solid;
    padding-bottom: 2px;
    margin-bottom: 8px;
}

#cookie-settings--close {
    font-size: 22px;
    color: #888;
    text-transform: uppercase;
    text-align: right;
    font-family: Arial;
    cursor: pointer;
}

#cookie-settings--navbar {
    margin: 15px 0 30px 0;
}

#cookie-settings--navbar button {
    border-radius: 5px;
    padding: 5px 10px;
    font-family: inherit;
    font-size: 14px;
    background: #FFF;
    border: 1px solid #3366CC;
    color: #3366CC;
    cursor: pointer;
    margin-right: 5px;
}

#cookie-settings--navbar button:last-child {
    margin-right: 0;
}

#cookie-settings--navbar button.active,
#cookie-settings--navbar button:hover {
    background: #3366CC;
    color: #FFF;
}

.cookie--details {
    display: grid;
    grid-template-columns: 80% 20%;
}

.cookie--switch {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.cookie--switch input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 35px;
    position: relative;
    cursor: pointer;
    outline: none;
}

.cookie--switch input:before {
    width: 100%;
    height: 12px;
    background: #CCC;
    content: '';
    display: block;
    border-radius: 3px;
}

.cookie--switch input:after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: #888;
    border-radius: 100%;
    position: absolute;
    top: -4px;
    left: -3px;
}

.cookie--switch input:checked:before {
    background: rgba(51, 102, 204, .5);
}

.cookie--switch input:checked:after {
    left: auto;
    right: -3px;
    background: #3366CC;
}

.cookie--switch input:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.cookie--switch input:disabled:before {
    background: rgba(51, 102, 204, .5);
}

.cookie--switch input:disabled:after {
    background: #3366CC;
}

#cookie-settingswindow .cookie-buttons {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 50% 50%;
}

#cookiebar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #FFF;
    z-index: 99997;
    padding: 15px;
    border-radius: 5px;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.8;
    box-shadow: 0 0 20px rgba(0,0,0,.3);
    color: inherit;
}

#cookiebar .inside-cookiebar h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

#cookiebar .cookie-buttons,
#cookiebar .cookie-configbuttons {
    margin-top: 10px;
}

#cookiebar .cookie-configbuttons {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-gap: 5px;
    width: calc(100% - 5px);
}

#cookiebar .cookie-configbuttons button,
#cookie--save-settings {
    width: 100%;
    border-radius: 5px;
    padding: 5px;
    font-family: inherit;
    font-size: 14px;
    background: #FFF;
    border: 1px solid #888;
    color: #888;
    cursor: pointer;
}

#cookie--accept-all {
    width: 100%;
    text-align: center;
    background: green;
    color: #FFF;
    border-radius: 5px;
    padding: 10px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

#cookie--save-settings {
    color: green;
    border: 1px solid green;
}

#cookie-settingswindow .cookie-buttons button {
    width: auto!important;
}

.cookie--description {
    margin-bottom: 15px;
}

.cookie--description span {
    display: inline-block;
    padding-left: 12px;
    color: #888;
}

.cookie--description em {
    display: block;
}

@media only screen and (max-width: 580px) {
    #cookiebar {
        bottom: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
    }
    #cookie-settingswindow {
        align-items: baseline;
    }
}

@media only screen and (max-width: 460px) {
    .cookie--description strong {
        display: block;
    }
    .cookie--description span.first {
        padding-left: 0;
    }
}