/* All selectors are scoped to this notice to leave the site's theme intact. */
#s4m365-notice.s4m365-dialog,
#s4m365-notice.s4m365-dialog *,
#s4m365-notice.s4m365-dialog *::before,
#s4m365-notice.s4m365-dialog *::after {
    box-sizing: border-box;
}

#s4m365-notice.s4m365-dialog {
    position: fixed;
    inset: 0;
    display: none;
    width: calc(100% - 32px);
    max-width: 580px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #e2e8f0;
    border-top: 5px solid #d99b18;
    border-radius: 18px;
    background: #ffffff;
    color: #172b47;
    box-shadow: 0 24px 90px rgba(4, 16, 37, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
    color-scheme: light;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
}

#s4m365-notice.s4m365-dialog[open],
#s4m365-notice.s4m365-dialog-fallback {
    display: block;
    animation: s4m365-appear 160ms ease-out;
}

#s4m365-notice.s4m365-dialog::backdrop {
    background: rgba(10, 22, 43, 0.68);
}

.s4m365-fallback-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 43, 0.68);
}

#s4m365-notice .s4m365-content {
    display: block;
    padding: 34px 36px 32px;
    margin: 0;
}

#s4m365-notice .s4m365-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 21px;
    border: 1px solid #f3d48b;
    border-radius: 50%;
    background: #fff6df;
    color: #875600;
    font: 700 27px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#s4m365-notice .s4m365-eyebrow {
    margin: 0 0 8px;
    padding: 0;
    color: #825400;
    font: 700 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

#s4m365-notice .s4m365-title {
    margin: 0 0 16px;
    padding: 0;
    color: #172b47;
    font-family: inherit;
    font-size: clamp(24px, 5vw, 29px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.025em;
    text-transform: none;
    overflow-wrap: anywhere;
}

#s4m365-notice .s4m365-message {
    margin: 0;
    padding: 0;
    color: #40526b;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: normal;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

#s4m365-notice .s4m365-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 27px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #e8edf3;
}

#s4m365-notice .s4m365-close,
#s4m365-notice .s4m365-continue {
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    border: 0;
    box-shadow: none;
    font-family: inherit;
    font-weight: 600;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
    -webkit-tap-highlight-color: transparent;
}

#s4m365-notice .s4m365-close {
    position: absolute;
    top: 11px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 0 3px;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 28px;
    line-height: 1;
}

#s4m365-notice .s4m365-close:hover {
    background: #edf2f7;
    color: #172b47;
}

#s4m365-notice .s4m365-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 12px 21px;
    border-radius: 8px;
    background: #193a61;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

#s4m365-notice .s4m365-continue:hover {
    background: #102b4a;
    color: #ffffff;
}

#s4m365-notice .s4m365-status-link {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #254f82;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

#s4m365-notice .s4m365-status-link:hover {
    color: #102b4a;
    text-decoration-thickness: 2px;
}

#s4m365-notice .s4m365-close:focus-visible,
#s4m365-notice .s4m365-continue:focus-visible,
#s4m365-notice .s4m365-status-link:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 4px;
}

#s4m365-notice .s4m365-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes s4m365-appear {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    #s4m365-notice .s4m365-content {
        padding: 27px 23px 25px;
    }

    #s4m365-notice .s4m365-message {
        font-size: 15px;
    }

    #s4m365-notice .s4m365-continue {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #s4m365-notice.s4m365-dialog[open],
    #s4m365-notice.s4m365-dialog-fallback {
        animation: none;
    }

    #s4m365-notice .s4m365-close,
    #s4m365-notice .s4m365-continue {
        transition: none;
    }
}
