/* Cookie body */
div#cookie_popup_body {
    position: fixed;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    padding: 15px 20px;
    left: 0;
    bottom: 0;
    background-color: white;
    z-index: 1040;
    background-color: #84776b;
    color: white;
    min-height: 50px;
}

#cookie_popup_content {
    font-size: 16px;
    line-height: 22px;
}

#cookie_popup_content .rich-text p {
    margin: 0px;
}

#cookie_popup_content_modal {
    margin-bottom:16px;
}

#cookie_popup_acceptButton, #cookie_popup_settingsButton {
    cursor: pointer;
    text-align: center;
    background-color: white;
    border: 1px solid white;
    border-radius: 3px;
    padding: 6px 15px;
    width: 48%;
    font-size: 16px;
    line-height: 25px;
    color: black;
    float: left;
}

#cookie_popup_settingsButton {
    border: 1px solid white;
    background-color: transparent;
    color: white;
    margin-left: 4%;
}

@media only screen and (max-width: 600px) {
    #cookie_popup_settingsButton {
        margin-left: 0%;
    }
}

.modal-title.modal_cookie_header {
    display: inline-block;
}

.cookie_options ul li {
    float: none;
}

/* Media queries */
/* Cookie body */
@media (min-width: 1140px) {
    #cookie_popup_body {
        padding-left: 15%;
        padding-right: 15%;
    }
}

@media (min-width: 768px){
    #cookie_popup_body {
        bottom: 0;
        bottom: auto;
        -ms-flex-direction: row;
        flex-direction: row;
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 992px){
    div#cookie_buttons {
        margin-top: 15px;
    }

    #cookie_popup_body {
        height: auto !important;
    }
    #cookie_popup_acceptButton, #cookie_popup_settingsButton{
        width: calc(50% - 4px);
    }
}

@media screen and (max-width: 500px){
    .cookie_checkboxes label {
        width: 100%;
    }
}

@media screen and (max-width: 465px){
    #cookie_popup_acceptButton, #cookie_popup_settingsButton{
        width: 100%;
        margin-top: 10px;
    }
}

/* Checkboxes */
input.cookie_checkbox {
    display: none;
}

span.cookie_checkbox {
    float: left;
    height: 16px;
    width: 16px;
    border: 1px solid #337ab7;
    margin: 4px 4px 0 0;
    padding: 2px;
    vertical-align: middle;
    cursor: pointer;
}

span.cookie_checkbox:after{
    content:"";
    display: block;
    width: 100%;
    height: 100%;
}

.cookie_checkboxes label input:checked ~ span.cookie_checkbox:after {
  background-color: #337ab7;
}

.cookie_checkboxes label input:disabled ~ span.cookie_checkbox {
    border: 1px solid #cecece;
    cursor: not-allowed;
}

.cookie_checkboxes label input:disabled ~ span.cookie_checkbox:after {
    background-color: #cecece;
}

.cookie_checkboxes label input:disabled ~ .description {
    cursor: not-allowed;
}

.cookie_checkboxes .description {
    margin-left: 30px;
    color: #7f7f7f;
    font-weight: normal;
}

.cookie_checkboxes {
    display: flex;
    flex-direction: column;
}

.cookie_checkboxes h4{
    margin-bottom: .5em;
    font-size: 20px;
}

.cookie_checkboxes ul {
    padding: 0px;
    list-style: none;
}

#CookiesOptions .modal-footer, #CookiesOptions .modal-header {
    border: none;
    text-align: left;
}

#CookiesOptions .modal-content{
    padding: 45px;
}

.cookie_checkboxes label {
    cursor: pointer;
    user-select: none;
}

.cookie_checkboxes ul.items li:not(:first-child) {
    margin-top: 20px;
}