.wagtail-glossary-popover {
    position: fixed;
    z-index: 1080;
    box-sizing: border-box;
    max-width: min(24rem, calc(100vw - 1rem));
    padding: 0.75rem 1rem;
    border: 1px solid rgb(0 0 0 / 20%);
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
    color: #212529;
    font-size: 0.875rem;
    line-height: 1.4;
}

.wagtail-glossary-popover[hidden] {
    display: none;
}

.wagtail-glossary-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[data-wagtail-glossary-compact] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.25rem;
}

.wagtail-glossary-toggle-icon {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

[data-wagtail-glossary-compact][aria-pressed="false"]
    .wagtail-glossary-toggle-icon {
    opacity: 0.65;
    text-decoration: line-through;
}
