/* Scoped styles; typography inherits the active theme's font (Averta on MYM). */
#mym-otw-overlay {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(728px, calc(100% - 40px));
    max-width: none;
    height: fit-content;
    min-height: 0;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 56px 80px 50px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: #f6f4f2;
    color: #000;
    box-shadow: 6px 4px 0 #ff7467;
    font-family: inherit;
    font-size: 20px;
    line-height: 1.2;
    text-align: left;
    color-scheme: light;
}
#mym-otw-overlay:not([open]) { display: none !important; }
#mym-otw-overlay[open] {
    display: block;
    animation: mym-otw-enter 450ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
#mym-otw-overlay::backdrop {
    background: rgb(0 0 0 / 30%);
    animation: mym-otw-fade-in 450ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes mym-otw-enter {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
}
@keyframes mym-otw-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
#mym-otw-overlay *, #mym-otw-overlay *::before, #mym-otw-overlay *::after { box-sizing: border-box; }
#mym-otw-overlay #mym-otw-title {
    margin: 0 0 28px;
    padding: 0;
    font-family: inherit;
    font-weight: 600;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #000;
    text-transform: none;
    overflow-wrap: anywhere;
}
#mym-otw-overlay #mym-otw-body {
    margin: 0 0 32px;
    padding: 0;
    font-family: inherit;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: normal;
    color: #000;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
#mym-otw-overlay .mym-otw-close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #000;
    cursor: pointer;
    line-height: 1;
}
#mym-otw-overlay .mym-otw-close svg { display: block; }
#mym-otw-overlay .mym-otw-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
#mym-otw-overlay .mym-otw-logo { display: block; width: 128px; height: auto; max-width: 100%; flex-shrink: 0; margin: 0; border: 0; }
#mym-otw-overlay .mym-otw-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #000;
    font-family: inherit;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
}
#mym-otw-overlay .mym-otw-link span { font-size: 34px; line-height: 1; }
#mym-otw-overlay .mym-otw-link:hover { text-decoration: none; }
#mym-otw-overlay .mym-otw-close:hover { background: rgb(0 0 0 / 5%); }
#mym-otw-overlay :focus-visible { outline: 3px solid #006d80; outline-offset: 4px; }
@media (max-width: 640px) {
    #mym-otw-overlay { width: calc(100% - 36px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 60px 28px 28px; box-shadow: 4px 4px 0 #ff7467; }
    #mym-otw-overlay #mym-otw-title { font-size: clamp(28px, 6.8vw, 38px); line-height: 1.08; margin-bottom: 22px; }
    #mym-otw-overlay #mym-otw-body { font-size: 20px; line-height: 1.35; margin-bottom: 24px; }
    #mym-otw-overlay .mym-otw-footer { flex-wrap: wrap; gap: 18px; }
    #mym-otw-overlay .mym-otw-link { font-size: 21px; }
    #mym-otw-overlay .mym-otw-link span { font-size: 28px; }
}

/* Keep focus on the heading for announcements, without framing the copy on any screen size.
   Keyboard focus on the close button and CTA remains visible. */
#mym-otw-overlay #mym-otw-title:focus,
#mym-otw-overlay #mym-otw-title:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
    #mym-otw-overlay[open] { animation-name: mym-otw-fade-in; animation-duration: 160ms; }
    #mym-otw-overlay::backdrop { animation-duration: 160ms; }
}
