/* Overlay */
.visitor-authorisation-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 600px;
    max-width: 90%;

    background: #ffffff;
    padding: 10px 30px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    z-index: 9999;
}
.visitor-authorisation-popup input[type="email"]{
    padding: 10px;
        width: 70%;
    margin: 2em 0;
}
.visitor-authorisation-popup input[type="checkbox"]{
    width: 18px;
    height: 18px;
    margin: 5px 1em 1em 0;
    float: left;
    appearance: none;
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border: 1px solid #999;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    background-color: white;
    transition: all 0.3s;
}
.visitor-authorisation-popup input[type="checkbox"]:hover, .visitor-authorisation-popup input[type="checkbox"]:focus {
    border-color: #0A105D;
    outline: none;
}
.visitor-authorisation-popup .form-error-message{
    margin-top: 24px;
    color: #a00001;
}
.visitor-authorisation-popup .form-success-message{
    color: #047507;
}

/* Checked state - red background */
.visitor-authorisation-popup input[type="checkbox"]:checked {
    background-color: #0A105D;
    border-color: #0A105D;
}

/* Checkmark */
.visitor-authorisation-popup input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}
.visitor-authorisation-popup .checklabel{
    display: inline;
    font-weight: normal;
}
.visitor-authorisation-popup a{
    text-decoration: underline;
}
.visitor-authorisation-popup button{
    color: #fff;
    background-color: #0d1055;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    padding: 12px 24px;
    text-transform: none;
    border-style: none;
    border-width: 0px;
    border-color: initial;
    border-radius: 12px;
    margin: 1.5em 0 0 0;
}
.visitor-authorisation-popup button:hover, .visitor-authorisation-popup button:focus{
    color: #fff;
    border-color: initial;
    background-color: #2328a1;
    border-style: none;
    border-width: 0px;
    border-radius: 12px;
    border: 0;
    padding: 12px 24px;
}
body.visitor-popup-active {
    overflow: hidden;
}
body.visitor-popup-active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(73, 73, 73, 0.97);
    z-index: 9998;
}
/* body.logged-in.visitor-popup-active::before, body.logged-in .visitor-authorisation-popup{
    display: none;
} */
form#visitor_authorisation_form .form-error-message {
    color: #a00001;    
    margin: 1em 0 0 0;
}

form#visitor_authorisation_form .form-success-message {
    color: #047507;
    margin: 1em 0 0 0;
}

label[for="filter-by-date"], select#filter-by-date, input#post-query-submit {
    display: none;
}