@namespace url(http://www.w3.org/1999/xhtml);

/*   Right-click menu style   */

@-moz-document domain("kingdomofloathing.com"), domain("loathing2.com") {

#pop_ircm,  /*- item context menu */
#menu.rcm { /*- chat pane */ 
    opacity: 0.96;
    box-shadow: 1px 2px 9px black;
    padding-bottom: 1px;
    border-radius:3px !important;
}
#pop_ircm:hover,
#menu.rcm:hover {
    opacity: 1;
    box-shadow: 1px 2px 12px black;
}
.settype,
.picker:not([img]),
[class="small dojaxy"] {
    text-decoration: none !important;
}
.settype a:hover,
.picker:hover,
[class="small dojaxy"]:hover {
    border-bottom: 1px dotted gray !important;
}
/* Popup menu header */

div[style*="color:white;background-color:blue;padding:2px 15px 2px 15px;white-space: nowrap;text-align:center; font-weight: bold"],
#menu.rcm,  /*- chat popup menu*/
.title { 
    border-radius: 3px 3px 1px 1px;
}

#menu > p.rcm {
    text-align: left;
    width: 120px !important;
    padding-left: 4px !important;
}
p.rcm:first-child {
    border-radius: 3px 3px 0 0;
}
p.rcm:last-child {
    border-radius: 0 0 3px 3px;
}
p.rcm:hover {
    /* change chat RCM hover color here * /
    background-color: transparent !important;*/
    color: black !important; 
}
/* familiar picker right-click menu */

div[style*="position: absolute; text-align: right; background-color: white; border: 1px solid black; margin-left: 2px; width: 97%;"] {
    opacity: 0.96;
    box-shadow: 0px 1px 6px black;
    border-radius: 6px 6px 2px 2px !important;
    /*- wrap lines for long familiar names */
    
    white-space: nowrap;
    overflow: auto;
    width: 88% !important;
    left: 3px !important;
}
div[style*="position: absolute; text-align: right; background-color: white; border: 1px solid black; margin-left: 2px; width: 97%;"]:hover {
    opacity: 1;
    box-shadow: 0px 1px 9px black;
}
/* Cancel (Close) button on popup menus */

img.close {
    opacity: 0.9;
    margin: 1px 2px 0px 0px !important;
    border: 2px solid white !important;
    border-radius: 2px !important;
}
img.close:not(:hover) {
    opacity: 0.5;
}
}