#cookiewall .overlay {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
}

#cookiewall .modal {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border-radius: 20px;
    text-align: right;
    color: black;
    max-height: 100%;
    overflow-y: hidden;
}

#cookiewall .modal {
    overflow-y: auto;
}

#cookiewall .primary-content,
#cookiewall .secondary-content {
    text-align: left;
    font-size: 0.8em !important;
}

#cookiewall .primary-content .custom-logo {
    display: block;
    max-width: 150px;
    max-height: 50px;
    width: auto;
    height: auto;
}

#cookiewall .primary-content h5 {
    border-bottom: 1px solid grey;
}

#cookiewall .primary-content p {
    margin-bottom: 1.5em;
}

#cookiewall .secondary-content {
    display: none;
    margin-bottom: 1.5em;
}

#cookiewall .secondary-content:has(+ .choose-preferences:checked) {
    display: block;
}

#cookiewall .secondary-content .option {
    margin: 0px;
}

#cookiewall .secondary-content .description {
    color: grey;
}

#cookiewall .choose-preferences:checked,
#cookiewall .choose-preferences:checked+label {
    display: none;
}

#cookiewall .choose-preferences:checked+label+.save-preferences {
    display: inline-block;
}

#cookiewall .choose-preferences {
    display: none;
}

#cookiewall .choose-preferences+label {
    display: inline-block;
}

#cookiewall .choose-preferences+label,
#cookiewall .save-preferences {
    background-color: grey;
    color: white;
    padding: 10px 20px;
    border: 1px solid transparent;
    cursor: pointer;
}

#cookiewall .choose-preferences+label:hover,
#cookiewall .save-preferences:hover {
    background-color: grey;
    color: white;
}

#cookiewall .save-preferences {
    display: none;
}