.cookie-modal-wrapper {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0;
    z-index: 9999;
    background: rgb(0 0 0 / 30%);
    pointer-events: none;
}

.cookie-modal-wrapper .cookie-modal-inner {
    width: 60%;
    position: absolute;
    overflow: auto;
    max-height: 90%;
    left: 20%;
    bottom: 2%;
    pointer-events: all;
}

.cookie-modal-wrapper .cookie-modal-content-wrapper {
    margin-left: 5%;
    width: 90%;
    margin-top: 40px;
}

.cookie-modal-wrapper .cookie-modal-content {
    font-size: 13px;
    padding-left: 4px;
}

.cookie-modal-wrapper .cookie-modal-content-first div,
.cookie-modal-wrapper .cookie-modal-content-second div,
.cookie-modal-wrapper .cookie-modal-content-explain div {
    margin-left: 0;
    margin-right: 0;
}

.cookie-modal-wrapper .cookie-modal-content-second div {
    padding-top: 10px;
}

.cookie-modal-wrapper .cookie-modal-content-first h3,
.cookie-modal-wrapper .cookie-modal-content-second h3,
.cookie-modal-wrapper .cookie-modal-content-explain h3 {
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: .5rem;
}

.cookie-modal-wrapper .cookie-modal-content-second,
.cookie-modal-wrapper .cookie-modal-content-explain,
.cookie-modal-wrapper .cookie-details-container {
    display: none;
}

.cookie-modal-wrapper .cookie-modal-content-first > label,
.cookie-modal-wrapper .cookie-modal-content-second > label {
    margin: 0 0 30px;
}

.cookie-modal-wrapper .cookie-modal-content-explain > label {
    margin: 0 0 16px;
}

.cookie-modal-wrapper .cookie-modal-checkbox {
    margin-left: 20px;
    position: relative;
    padding-left: 0;
}

.cookie-modal-wrapper .cookie-modal-checkbox:before {
    content: "";
    border: 1px solid #a0a0a0;
    width: 16px;
    height: 16px;
    top: 4px;
    left: -20px;
    position: absolute;
}

.cookie-modal-wrapper .cookie-modal-checkbox.clicked:after {
    content: "";
    background-image: url("../../images/checkbox.svg");
    background-size: 20px;
    width: 19px;
    height: 23px;
    position: absolute;
    top: -3px;
    left: -17px;
    display: block;
}

.cookie-modal-wrapper .cookie-modal-checkbox.clicked.disabled:after {
    background-image: url("../../images/checkbox-disabled.svg");
}

.cookie-modal-wrapper .cookie-modal-checkbox-description-wrapper.disabled {
    margin-bottom: 16px;
}

.cookie-modal-wrapper .cookie-modal-description-wrapper {
    float: left;
    width: 100%;
}

.cookie-modal-wrapper .cookie-modal-description-wrapper label {
    width: auto;
    float: none;
    margin-top: 8px;
    margin-bottom: 8px;
}

.cookie-modal-wrapper .cookie-modal-description-wrapper label.head {
    text-decoration: underline;
    padding-top: 3px;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 0;
}

.cookie-modal-wrapper .cookie-modal-checkbox-wrapper {
    width: 20px;
    height: 26px;
}

.cookie-modal-wrapper .cookie-modal-button-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    display: block;
    overflow: auto;
}

.cookie-modal-wrapper .cookie-modal-content-explain .cookie-modal-button-wrapper {
    margin-top: 10px;
}

.cookie-modal-wrapper .cookie-modal-button-consent-all,
.cookie-modal-wrapper .cookie-modal-button-consent-selection,
.cookie-modal-wrapper .cookie-modal-button-consent-neccessary,
.cookie-modal-wrapper .cookie-modal-button-save {
    display: inline-block;
    float: left;
    width: 100%;
    font-size: 14px;
    border: 0;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transform: perspective(1px) translateZ(0);
    transition-duration: .8s;
    transition-property: color, background-color;
    font-weight: 400;
}

.cookie-modal-wrapper .cookie-modal-button-consent-neccessary {
    background-color: #008e4d;
    color: white;
    margin-top: 10px;
}

.cookie-modal-wrapper .cookie-modal-button-consent-selection {
    margin-top: 10px;
}

.cookie-modal-wrapper .cookie-modal-button-column {
    float: right;
    width: 30%;
}

.cookie-modal-wrapper .cookie-modal-preference {
    border: 1px solid #cacaca;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-preference-checkboxes {
    flex: 10 1 auto;
    display: flex;
    align-items: center;
    padding: 7px;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-preference-checkboxes label {
    margin: 0 10px 0 5px;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-preference-checkboxes input[type="checkbox"] {
    margin: 0 0 0 5px;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-details {
    flex: 1 1 auto;
    border-left: 1px solid #cacaca;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-details .cookie-details-button {
    height: 100%;
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-details .cookie-details-button svg {
    margin-left: 8px;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-details .cookie-details-button:hover {
    text-decoration: underline;
}

.cookie-modal-wrapper .cookie-modal-preference .cookie-details .cookie-details-button:focus {
    outline: none;
}

.cookie-modal-wrapper .cookie-details-container {
    margin-bottom: 50px;
}

.cookie-modal-wrapper .cookie-modal-button-save {
    float: right;
    margin-right: 0;
    padding: 10px 20px;
    margin-left: 4px;
}

.cookie-modal-wrapper .cookie-modal-content-first .cookie-modal-button-consent-all,
.cookie-modal-wrapper .cookie-modal-content-first .cookie-modal-button-consent-selection,
.cookie-modal-wrapper .cookie-modal-content-first .cookie-modal-button-consent-neccessary,
.cookie-modal-wrapper .cookie-modal-content-second .cookie-modal-button-consent-all,
.cookie-modal-wrapper .cookie-modal-content-explain .cookie-modal-button-consent-all {
    float: right;
    padding: 5px;
}

.cookie-modal-wrapper .cookie-modal-button-choose,
.cookie-modal-wrapper .cookie-modal-button-explain,
.cookie-modal-wrapper .cookie-modal-button-back,
.cookie-modal-wrapper .cookie-modal-button-back-to-first,
.cookie-modal-wrapper .cookie-modal-button-back-explain {
    float: left;
    line-height: 35px;
    margin-right: 50px;
}

.cookie-modal-wrapper .cookie-modal-button-back-explain {
    padding: 0 14px;
}

.cookie-modal-wrapper .cookie-modal-button-choose a,
.cookie-modal-wrapper .cookie-modal-button-explain a,
.cookie-modal-wrapper .cookie-modal-button-back a,
.cookie-modal-wrapper .cookie-modal-button-back-to-first a,
.cookie-modal-wrapper .cookie-modal-button-back-explain a {
    font-weight: 600;
}

.cookie-modal-wrapper .cookie-modal-button-choose a:hover,
.cookie-modal-wrapper .cookie-modal-button-explain a:hover,
.cookie-modal-wrapper .cookie-modal-button-back a:hover,
.cookie-modal-wrapper .cookie-modal-button-back-to-first a:hover,
.cookie-modal-wrapper .cookie-modal-button-back-explain a:hover {
    cursor: pointer;
}

.cookie-preference-checkboxes .statistical-cookies:hover {
    cursor: pointer;
}

.cookie-preference-checkboxes .statistical-cookies-label:hover {
    cursor: pointer;
}

.cookie-preference-checkboxes .necessary-cookies-label:hover {
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cookie-modal-wrapper .cookie-modal-inner {
        padding: 8px 0 0;
        width: 90%;
        left: 5%;
    }

    .cookie-modal-wrapper .cookie-modal-content-wrapper .cookie-modal-content {
        font-size: 12px;
    }

    .cookie-modal-wrapper .cookie-modal-button-wrapper {
        margin-top: 0 !important;
        display: inline-block;
        width: 100%;
    }

    .cookie-modal-wrapper .cookie-modal-content-first h3,
    .cookie-modal-wrapper .cookie-modal-content-second h3,
    .cookie-modal-wrapper .cookie-modal-content-explain h3 {
        font-size: 1.2rem;
    }

    .cookie-modal-wrapper .cookie-modal-content-first > label,
    .cookie-modal-wrapper .cookie-modal-content-second > label {
        margin: 0 0 12px;
    }

    .cookie-modal-wrapper .cookie-modal-button-consent-all,
    .cookie-modal-wrapper .cookie-modal-button-consent-selection,
    .cookie-modal-wrapper .cookie-modal-button-consent-neccessary,
    .cookie-modal-wrapper .cookie-modal-button-save {
        width: 100%;
    }
}
