#https-everywhere-button {
  -moz-binding: url("chrome://https-everywhere/content/toolbar_button_binding.xml#https-everywhere-binding");
}

#https-everywhere-button dropmarker {
  display: none;
}

toolbar #https-everywhere-button,
toolbar #https-everywhere-button > .https-everywhere-button {
  -moz-box-orient: horizontal;
}

/* Use CSS attribute selector for changing icon */
#https-everywhere-button[state="inactive"] > .https-everywhere-button {
  list-style-image: url("chrome://https-everywhere/skin/icon-inactive-16.png");
}
#https-everywhere-button[state="active"] > .https-everywhere-button {
  list-style-image: url("chrome://https-everywhere/skin/icon-active-16.png");
}
#https-everywhere-button[state="disabled"] > .https-everywhere-button {
  list-style-image: url("chrome://https-everywhere/skin/icon-disabled-16.png");
}
#https-everywhere-button[state="blocking"] > .https-everywhere-button {
  list-style-image: url("chrome://https-everywhere/skin/icon-blocking-16.png");
}

/* ruleset counter */
#rscounter {
  margin: 3px -12px 0 -8px;
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* increase negative margins in the palette and panel so the button isn't too wide. */
#wrapper-https-everywhere-button[place="palette"] > #https-everywhere-button > #rscounter,
#https-everywhere-button[cui-areatype="menu-panel"] > #rscounter {
  margin: 3px -16px 0 -8px;
}

/* rulesets applied label */
#rsapplied {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 12px;
  color: #000;
  background-color: #FFF;
  border-width: 1px;
  border-style: solid;
  padding: 1px 1px 1px 1px;
  visibility: hidden;
}

#https-everywhere-button:not([rulesetsApplied="0"]) #rsapplied {
  visibility: visible;
}

#https-everywhere-button menuitem.active-item label {
  color: #1e6419;
  font-weight: bold;
}
#https-everywhere-button menuitem.moot-item label {
  color: #1e6419;
  opacity: 0.75;
  font-weight: bold;
}
#https-everywhere-button menuitem.breaking-item label {
  color: #b99999;
  font-weight: bold;
}
#https-everywhere-button menuitem.inactive-item label {
  color: #999999;
  font-weight: bold;
}
#https-everywhere-button menuitem.birthday label {
  font-weight: bold;
}
