/**
 * Addons.mozilla.org - smaller search form and more
 * v. 0.2
 * 2009-05-25 21:40 -0400
 * Licensed under LGPL 2.1+, CC-BY-SA 2.0+, and MPL 1.1+.
**/
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("addons.mozilla.org") {
#other-apps h3 {
  -moz-appearance: menulist !important;
  background: -moz-Dialog !important;
  color: -moz-DialogText !important;
  border: black 1px solid !important;
  padding: 0 !important;
  padding-left: 4pt !important;
  font-family: sans-serif !important;
  font-size: 0 !important;
  margin: -9pt !important;
  cursor: default !important;
}
#other-apps h3:after {
  content: "Other applications";
  font-size: 9pt !important;
}
#other-apps { 
  border: GrayText 1pt solid !important;
  background: -moz-Field !important;
  -moz-border-radius: 0 !important;
  margin-top: 48pt !important;
}
#other-apps li:first-child>a:not(aa) {
  border-top: 1pt solid GrayText !important;
  margin-top: -3.2pt !important;
  padding-top: 1.5pt !important;
}
#other-apps li>a:not(aa) {
  font-family: sans-serif !important;
  font-size: 9pt !important;
  font-weight: 400 !important;
  background: none !important;
  padding: 0pt !important;
  margin-bottom: -1.6pt !important;
  margin-top: -3.5pt !important;
  height: 13pt !important;
  min-height: 0 !important;
  color: -moz-fieldtext !important;
  line-height: inherit !important;
  cursor: default !important;
}
#other-apps li+li>a:not(aa) {
  margin-top: 0 !important;
}
#other-apps li {
  padding: 0 !important;
  height: auto !important;
  -moz-appearance: menuitem !important;
  margin-left: -7.7pt !important;
  margin-right: -8.4pt !important;
}
#other-apps li:last-child {
  margin-bottom: -5pt !important;
}
#other-apps li:hover, #other-apps li:hover>a, #other-apps li>a:active, #other-apps a:hover {
  background: Highlight !important;
  color: HighlightText !important;
}
#page-title , #branding { min-height: 0 !important; height: auto !important; }
#page-title img, #page-title p, #moz { display: none !important; }
#page-title h1 { 
  margin-top: -18pt !important; 
  margin-left: -100pt !important;
}
#nav-user {
  margin-top: 0pt !important;
  font-family: sans-serif !important;
}
#search-form {
  height: auto !important;
  padding: 0 !important;
  background:  none !important;
  border: none !important;
}
#search-form * {
  font: 9pt sans-serif !important;
  font-weight: normal !important;
  padding: 0.44pt !important;
  background: none !important;
  line-height: 1em !important;
  height: auto !important;
}
#search-form input[type="submit"] {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPkgAAD5IBBKh+oAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE3SURBVDiNldS/K4VRGMDxzyVcl5SIZDEbhLIZDVgtFotS/gF/hZJ/QtlMSOkuDH5llKRMrCzUFY7BvTmO8944dYb3Od/n+zzv6XlfIQQhBOjEBmoIyX7EKkoNPt0NyThuMoJ0V9GfFaGC20zSPZ4y8Z0i0WYCbmOkfljCFE4TZjEneouArYJqHbiKuMucKK40XHiZLETcK9qLRHdFkjo4mBSdjM9bfK8OzVc5ea6lQFxltElHyxH3jNb01Z4joJoCdagPDxF3lLvstaSrC8yiB0NY8jVTjfMPzOVErX7PSSOhaMLP0ZP7RIaw1yQxJz5G1w9R1N4KrvEeJdRwghnsJrIqyr9EkbAb05hAWxQv4zCR7aO9cACbjEEFR4lsPR7IP60QwgvmcRaFB/7dUdRZr68/xwHGPgF3T99OXVNNIQAAAABJRU5ErkJggg==) buttonface center no-repeat !important;
  -moz-appearance: none !important;
  color: buttontext !important;
  width: 48pt !important;
  height: auto !important;
  border: threedshadow 2px solid !important;
  -moz-border-top-colors: buttonhighlight threedshadow !important;
  -moz-border-left-colors: buttonhighlight threedshadow !important;
  -moz-border-right-colors: buttonshadow threedshadow !important;
  -moz-border-bottom-colors: buttonshadow threedshadow !important;
  font-size: 9pt !important;
  opacity: 0.8;
  -moz-border-radius: 3pt !important;
  padding: 1pt !important;
  cursor: default !important;
  margin-bottom: 1px !important;
}
#search-form input[type="submit"]:-moz-system-metric(windows-default-theme) {
  opacity: 0.7 !important;
}
#search-form input[type="submit"]:hover,
 #search-form input[type="submit"]:active,
 #search-form input[type="submit"]:focus {
  opacity: 1 !important;
  outline: none !important;
}
#search-form input[type="submit"]:hover:active {
  opacity: 0.7 !important;
  background-color: buttonshadow !important;
  -moz-border-top-colors: threedshadow buttonhighlight !important;
  -moz-border-left-colors: threedshadow buttonhighlight !important;
  -moz-border-right-colors: threedshadow buttonhighlight !important;
  -moz-border-bottom-colors: threedshadow buttonhighlight !important;
}
#search-form select {
  padding: 0pt !important;
  margin-bottom: 1px !important;
}
#search-form input[type="text"] {
  padding-bottom: 1pt !important;
  margin-left: 3pt !important;
}
#search-query label {
  margin-top: -11.5pt !important;
  margin-left: -4pt !important;
}
#search-bubble-outer {
  -moz-appearance: toolbox !important;
}
#search-bubble-inner {
  -moz-appearance: none !important;
  border: none !important;
  background: none !important;
}
#search-form {
  -moz-appearance: toolbar !important;
}
#advanced-search-toggle>div {
  background-image: none !important; 
}
#advanced-search-toggle {
  margin-top: 1.5pt !important;
  background: none !important;
}
#toggle-inner, a.asopen, a.asclosed {
  display: inline-block !important;
  margin: 0.5pt !important;
}
a.asopen {
  display: block !important;
}
a.asclosed {
  margin: 0 !important;
}
#advanced-search {
  -moz-appearance: tabpanels !important;
}
#toggle-inner {
  -moz-appearance: toolbarbutton !important;
}
#toggle-inner, #toggle-outer {
  background: none !important;
  margin: 0.5pt !important;
}
#categories>:first-child *, #categories>:first-child { 
  background: none !important;
  color: -moz-DialogText !important;
  padding: 0.7pt !important;
  font: 9pt bold FreeSans, "Segoe UI", Tahoma, Arial, sans-serif !important;
}
#categories>:first-child {
  border: GrayText 1pt solid !important;
  margin: 0 !important;
  margin-bottom: -0.7pt !important;
}
#categories.collapsed>:first-child { 
  -moz-appearance: menulist !important;
  cursor: default !important;
  margin: 0.7pt !important;
}
#categories.collapsed>:first-child * {
  font-weight: normal !important;
}
#categories {
  background: none !important;
  border: none !important;
}
#categories ul, #categories ul * {
  font: 9pt normal sans-serif !important;
  background: -moz-field !important;
  color: -moz-fieldtext !important;
}
#categories.collapsed ul {
  width: 135pt !important;
  margin-top: -13pt !important;
}
#categories li {
  -moz-appearance: menuitem !important;
  margin: -1px !important;
  padding: 0 !important;
}
#categories li * {
  padding: 2pt !important;
  margin-top: -1pt !important;
  margin-bottom: -1pt !important;
  cursor: default !important;
  background: none !important;
}
#categories li:hover a/*, #categories a:active*/ {
  color: HighlightText !important;
  background: Highlight !important;
}
#other-apps h3:-moz-system-metric(windows-default-theme), 
 #categories.collapsed>:first-child:-moz-system-metric(windows-default-theme) {
  background: url(https://addons.mozilla.org/img/advanced-search-closed.png) -moz-field  right center no-repeat !important;
  border-color: threedshadow !important;
  -moz-appearance: none !important;
  display: block !important;
  -moz-border-radius: 0 !important;
}
#categories ul { 
  padding-bottom : 0 !important;
  -moz-border-radius: 0 !important;
  border: solid 1pt graytext !important;;
/*
  border: solid 5px graytext !important;
  margin-left: -5px !important;
  margin-top: -10px !important;
  -moz-border-top-colors: rgba(0,0,0,0.03) rgba(0,0,0,0.12) rgba(0,0,0,0.19) rgba(0,0,0,0.27) GrayText !important;
  -moz-border-left-colors: rgba(0,0,0,0.03) rgba(0,0,0,0.12) rgba(0,0,0,0.19) rgba(0,0,0,0.27) GrayText !important;
  -moz-border-right-colors: rgba(0,0,0,0.03) rgba(0,0,0,0.12) rgba(0,0,0,0.19) rgba(0,0,0,0.27) GrayText !important;
  -moz-border-bottom-colors: rgba(0,0,0,0.03) rgba(0,0,0,0.12) rgba(0,0,0,0.19) rgba(0,0,0,0.27) GrayText !important;
*/
}
.install-button * {
  background: none !important; 
  padding: 0 !important;
  border: none !important;
}
.install-button a {
  background: -moz-dialog !important;
  border: solid 1pt graytext !important;
  color: -moz-dialogtext !important;
  padding-top: 3.5pt !important;
  padding-bottom: 3.5pt !important;
  padding-left: 4.5pt !important;
  padding-right: 4.5pt !important;
  margin: 0 !important;
  font-family: sans-serif !important;
}
.install-button a[href] {
  -moz-appearance: button !important;
}
.install-button a:not([href]) {
  -moz-border-radius: 3.2pt !important;
  opacity: 0.6 !important;
  color: graytext !important;
}
.landing.browse.wide #categories.collapsed>p {
  margin: 0 !important;
  padding: 0 !important;
}
.landing.browse.wide #categories.collapsed>p a {
  -moz-user-focus: ignore !important;
  -moz-binding: url(chrome://global/content/bindings/text.xml#text-label) !important;
  position: relative !important;
  left: +5pt !important;
  top: -17pt !important;
  text-decoration: underline !important;
  color: -moz-initial !important;
  display: inline-block !important;
  max-width: 12ex !important;
}
.landing.browse.wide #categories.collapsed>h3>* {
  color: rgba(0,0,0,0) !important;
}
.landing.browse.wide #categories.collapsed>h3>*:after {
  color: -moz-dialogtext !important;
  content: "     More â–¾";
  float: right;
  display: inline-block;
}
}
@-moz-document url-prefix(https://addons.mozilla.org/en-US/firefox/) {
#other-apps h3:after { 
  content: "Firefox" !important;
  font-size: 9pt !important;
}
}

@-moz-document url-prefix(https://addons.mozilla.org/en-US/thunder) {
#other-apps h3:after { 
  content: "Thunderbird" !important;
  font-size: 9pt !important;
}
}

@-moz-document url-prefix(https://addons.mozilla.org/en-US/seamonkey/) {
#other-apps h3:after { 
  content: "SeaMonkey" !important;
  font-size: 9pt !important;
}
}

@-moz-document url-prefix(https://addons.mozilla.org/en-US/sunbird) {
#other-apps h3:after { 
  content: "Sunbird" !important;
  font-size: 9pt !important;
}
}