/**
 * What is unread beside WhatsApp in the menu. The value is set on the page's
 * root by whatsapp-unread.js; with none, nothing is drawn.
 */
.whatsapp-menu-item::after {
    content: var(--whatsapp-unread, none);
    position: absolute;
    inset-inline-end: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 9999px;
    background-color: rgb(22 163 74);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-align: center;
}

/* The collapsed menu shows no title, so the count sits smaller on the icon's corner. */
.whatsapp-menu-item:not(:has(> .flex-1))::after {
    top: 0.125rem;
    inset-inline-end: 0.125rem;
    transform: none;
    min-width: 1rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    line-height: 1rem;
}
