.notifications-menu {
    position: relative;
}

.notifications-menu > .notifications-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    inset-inline-start: auto;
    left: auto !important;
    right: auto !important;
    margin-top: 0.5rem;
    float: none;
}

.notifications-dropdown {
    width: min(20rem, calc(100vw - 1.5rem));
    min-width: 0;
    max-width: calc(100vw - 1.5rem);
    max-height: min(90vh, 520px);
    overflow-y: auto;
}

body > .notifications-dropdown.notifications-dropdown-open {
    display: block !important;
    z-index: 10050 !important;
}

.notifications-dropdown .menu {
    max-height: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

.notifications-dropdown .notification-li > a {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 0.5rem 0.75rem;
}

.notifications-dropdown .notif-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    line-height: 1;
    border-radius: 9999px;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.notifications-dropdown .notif-info {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.notifications-dropdown .time {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
