/* quick colour changes */

/* general size */
#cookie-banner,
#cookie-container {
    font-size: 14px;
}

/* inactive colour of switch toggle */
.switch-slider {
    background-color: #848484;
    -webkit-transition: .4s;
    transition: .4s;
}
.switch-slider:hover {
    opacity: 0.8;
}

/* active colour of switch toggle */
.switch-input:checked+.switch-slider {
    background-color: #49a478;
}

/* cookie button, used in the popup and main banner */
.cookie-button.cookie-button--accept {
    background: #49A478;
    -webkit-transition: .4s;
    transition: .4s;
}
.cookie-button.cookie-button--accept:hover {
    text-decoration: none;
}

/* cookie popup link */
.cookie-link {
    -webkit-transition: .4s;
    transition: .4s;
    color: #55B1D8;
    text-decoration: underline;
}

#cookie-banner,
#cookie-container,
#cookie-banner *,
#cookie-container * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    outline: none;
    color:white;
}

#cookie-container {
    background: rgba(0, 0, 0, 0.9);
    display: none;
    height: 100%;
    left: 0px;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 9999999;
    color: #fff;
    animation-name: fade-in;
    animation-duration: 400ms;
    animation-timing-function: ease-in-out;
    overflow: auto;
}

#cookie-container .cookies {
    max-width: 800px;
    padding: 0 20px;
    margin: 3% auto 3% auto;
}

.overflow-hidden {
    overflow: hidden;
}

.cookie-padding-20 {
    padding: 20px;
}

.cookie-flex {
    display: flex;
    align-items: center;
}

.cookie-grow {
    flex-grow: 1;
}

#cookie-banner {
    position: fixed;
    width: 100%;
    background-color: #333;
    color: #fff;
    z-index: 999999;
    min-height: 50px;
    bottom: 0;
    left: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    animation-name: fade-in;
    animation-duration: 400ms;
    animation-timing-function: ease-in-out;
}

.cookie-message {
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.cookie-button {
    color: #fff;
    padding: 10px;
    background: none;
    border: none;
    text-align: center;
    min-width: 150px;
    cursor: pointer;
    display: inline-block;
}

.cookie-button:hover {
    opacity: 0.8;
    color: #fff;
    text-decoration: underline;
}

@keyframes fade-in {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

/* switch */
.switch {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 34px;
}

.switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-input:disabled,
.switch-input:disabled+.switch-slider {
    opacity: 0.5;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "OFF";
    height: 26px;
    line-height: 26px;
    right: 9px;
    bottom: 4px;
    -webkit-transition: .4s;
    transition: .4s;
    font-size: 11px;
}

.switch-slider:after {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.switch-input:focus+.switch-slider {
    box-shadow: 0 0 1px #2196F3;
}

.switch-input:checked+.switch-slider:after {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.switch-input:checked+.switch-slider:after {
    left: 9px;
}

.switch-input:checked+.switch-slider:before {
    -webkit-transform: translateX(-26px);
    -ms-transform: translateX(-26px);
    transform: translateX(-26px);
    content: "ON";
    right: 10px;
}

@media all and (max-width: 800px) {
    #cookie-banner {
        flex-flow: column;
    }

    .cookie-message {
        display: none;
    }
}

.cookies p,
.cookies h1,
.cookies h2,
.cookies h3,
.cookies h4,
.cookies h5 {
    color: #fff;
}

.cookies h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cookie-flex {
    padding: 2rem 0;
    border-top: 1px solid #272727;
}

.cookie-flex p {
    margin: 0;
    padding: 0;
}