 /* popup menu */
menu  {
  font: system;
  behavior:menu; /*is a menu*/
  flow: vertical;
  display:none; 
  margin:0;  
  padding:1px;
  max-width:max-intrinsic;
  /*min-width: max-intrinsic;*/
  border:1px solid threedshadow;
  background-color: window;
  color:windowtext;
  margin:0 1px; /* to offset it from parent li */    
}

/* secondary popup menu */
menu menu  {
  max-width: max-intrinsic; 
}

menu,menu menu {
  background: url(menu-back.png) expand;
  background-position: 0 0 4px 24;
  text-align:left;
}

/* menu item in popup menus */
menu li {  
  width:*;
  padding-left:24px; /* room for icon */
  padding-right:12px; /* room for the arrow */
  padding-top:4px; 
  padding-bottom:4px; 
  foreground-repeat: no-repeat;
  foreground-position: 2px 50%;
  color:windowtext; 
}

/* menu with single <menu> inside - submenu */
menu li:has-child-of-type(menu) {
  foreground-image:url(stock:arrow-right); /* that arrow */
  foreground-repeat: no-repeat;
  foreground-position: 100% 50%;
}

menu li:hover:owns-popup,
menu li:current { 
  background-color:highlight; 
  color:highlighttext;  
  //border-radius:3px;
}

/* menu separator */
menu hr {
  margin:2px; 
}
