#schoolpub-emergency-popup {
    position: fixed;
    inset: 6vh 0 auto;
    width: calc(100% - 40px);
    max-width: 700px;
    max-height: calc(94vh - 20px);
    margin: 0 auto;
    padding: 0;
    border: 5px solid #0c9daa;
    border-radius: 14px;
    box-sizing: border-box;
    background: #d1f7fa;
    color: #033e4f;
    color-scheme: light;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    font-family: Arial, Helvetica, sans-serif;
}

#schoolpub-emergency-popup:not([open]) {
    display: none;
}

#schoolpub-emergency-popup::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

#schoolpub-emergency-popup .schoolpub-popup-header {
    padding: 22px 25px;
    background: #0c9daa;
    color: #fff;
    text-align: center;
}

#schoolpub-emergency-popup .schoolpub-popup-header h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

#schoolpub-emergency-popup .schoolpub-popup-body {
    padding: 34px;
    font-size: 19px;
    line-height: 1.65;
    text-align: center;
    overflow-wrap: anywhere;
}

#schoolpub-emergency-popup .schoolpub-popup-body p {
    margin: 0 0 1.2em;
}

#schoolpub-emergency-popup .schoolpub-popup-body p:last-child {
    margin-bottom: 0;
}

#schoolpub-emergency-popup .schoolpub-popup-body a {
    color: #0c9daa;
    text-decoration: underline;
}

#schoolpub-emergency-popup .schoolpub-popup-body img {
    max-width: 100%;
    height: auto;
}

#schoolpub-emergency-popup .schoolpub-popup-footer {
    padding: 0 25px 30px;
    text-align: center;
}

#schoolpub-emergency-popup .schoolpub-popup-close {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 13px 32px;
    border: 2px solid #033e4f;
    border-radius: 7px;
    background: #0c9daa;
    color: #ffffff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

#schoolpub-emergency-popup .schoolpub-popup-close:hover,
#schoolpub-emergency-popup .schoolpub-popup-close:focus {
    background: #033e4f;
    color: #ffffff;
}

#schoolpub-emergency-popup .schoolpub-popup-close:focus-visible {
    outline: 3px solid #0c9daa;
    outline-offset: 3px;
}

@media screen and (max-width: 700px) {
    #schoolpub-emergency-popup {
        inset: 4vh 0 auto;
        width: calc(100% - 24px);
        max-height: calc(96vh - 12px);
    }

    #schoolpub-emergency-popup .schoolpub-popup-header h2 {
        font-size: 25px;
    }

    #schoolpub-emergency-popup .schoolpub-popup-body {
        padding: 25px 20px;
        font-size: 17px;
    }
}

/* Sonata Bay palette; specificity also overrides theme button rules. */
#schoolpub-emergency-popup .schoolpub-popup-header h2 { color:#033e4f; }
#schoolpub-emergency-popup .schoolpub-popup-body a { color:#033e4f; }
#schoolpub-emergency-popup .schoolpub-popup-close { background:#8edfe7 !important; color:#033e4f !important; border-color:#033e4f; }
#schoolpub-emergency-popup .schoolpub-popup-close:hover,
#schoolpub-emergency-popup .schoolpub-popup-close:focus { background:#ffffff !important; color:#033e4f !important; }
