/* Map
 **********************************************************************************/
#sn_map_container {
    text-align: center !important;
}

#map-legend {
    position: relative;
    font-size: 0.8rem !important;
    line-height: 1 !important;
}

#map-legend>div {
    display: inline-block !important;
    /* vertical-align: middle; */
}

#edm-map>g#letters,
#edm-map>g#locations {
    pointer-events: none;
}

.mapreg:hover,
.mapreg:focus {
    opacity: 0.90;
}

@keyframes append-animate {
    from {
        transform: scale(0.75);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* animate new box */
#sn_contacts>.contact,
#sn_header>.regn {
    animation: append-animate .3s linear;
}

/* Form
 **********************************************************************************/

#sn_postcode_search_form_container .form-field {
    display: flex;
    padding: 2px;
    max-width: 460px;
    background-color: transparnt;
    color: #555555;
    border: 2px solid #0F5079;
    border-radius: 5px;
}

#sn_postcode_search_form_container .form-field>input[type="search"] {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    margin: 0;
    padding: 7px 8px;
    font-size: 14px;
    color: inherit;
    border: 1px solid transparent;
    border-radius: inherit;
}

#sn_postcode_search_form_container .form-field>input[type="search"]::placeholder {
    color: #999;
}

#sn_postcode_search_form_container .form-field>button[type="submit"] {
    text-indent: -999px;
    overflow: hidden;
    width: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' width='22' height='22' viewBox='0 0 24 24' stroke-width='1.5' stroke='blue' %3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z' /%3E%3C/svg%3E%0A") no-repeat center;
    cursor: pointer;
    opacity: 0.7;
}

#sn_postcode_search_form_container .form-field>button[type="submit"]:hover {
    opacity: 1;
}

#sn_postcode_search_form_container .form-field>button[type="submit"]:focus,
#sn_postcode_search_form_container .form-field>input[type="search"]:focus {
    outline: none;
}


/* Lightbox
 **********************************************************************************/

#sn_postcode_search_lightbox {
    position: relative;
    width: 100%;
    margin: auto;
    padding: 0;
}

#sn_postcode_search_lightbox_content #sn_header {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1 !important;
    color: #454545;
    margin: 4rem 0;
    text-align: left;
}


#sn_postcode_search_lightbox_content #sn_contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}



/* Mobile devices (default, in this case it's defined for less than 600px) */
#sn_postcode_search_lightbox_content #sn_contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Larger devices like tablets and desktop (600px and above in this case) */
@media (min-width: 600px) {
    #sn_postcode_search_lightbox_content #sn_contacts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}




#sn_postcode_search_lightbox_content #sn_contacts .contact {
    padding: 14px;
    background-color: #fdfdfd;
    border: 2px solid #e7e7e7;
}

#sn_postcode_search_lightbox_content #sn_contacts .contact ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#sn_postcode_search_lightbox_content #sn_contacts .contact ul li {
    max-width: fit-content;
    margin-bottom: 10px;
    font-size: 1rem !important;
    font-weight: normal;
    line-height: 1;
    color: #3d3d3d;
    text-align: left;
    word-break: break-word !important;
}

#sn_postcode_search_lightbox_content #sn_contacts .contact ul li.highlight {
    font-weight: bold !important;
    text-decoration: underline;
}

#sn_postcode_search_lightbox_content #sn_contacts .error {
    grid-column-start: 1;
    grid-column-end: 3;
    font-size: 1rem !important;
    line-height: 1 !important;
    font-weight: bold;
    color: #ff0000;
}


/* Overrides
 **********************************************************************************/

#sn_postcode_search_lightbox_content p,
#sn_postcode_search_lightbox_content h5,
#sn_postcode_search_lightbox_content h4,
#sn_postcode_search_lightbox_content h3,
#sn_postcode_search_lightbox_content h2,
#sn_postcode_search_lightbox_content h1 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}