.yfm-tooltip-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.yfm-tooltip {
    position: absolute;
    z-index: 100;

    display: none;
    opacity: 0;

    padding: 10px;

    background-color: var(
        --yfm-color-term-dfn-background,
        var(--yfm-color-term-dfn-background-private)
    );

    font-size: inherit;
    line-height: inherit;
    font-style: normal;

    border-radius: 4px;

    box-shadow: 0 8px 20px
        var(--yfm-color-term-dfn-shadow, var(--yfm-color-term-dfn-shadow-private));
    outline: none;
    width: fit-content;

    max-width: 450px;

    @media screen and (max-width: 600px) {
        & {
            max-width: 80%;
        }
    }

    &::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset: 0;

        border-radius: inherit;
        box-shadow: 0 0 0 1px
            var(--yfm-color-term-dfn-pseudo-shadow, var(--yfm-color-term-dfn-pseudo-shadow-private));
    }

    &.open {
        display: block;

        animation-name: popup;
        animation-duration: 0.1s;
        animation-timing-function: ease-out;
        animation-fill-mode: forwards;

        @keyframes popup {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }
}
