/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@import url("chrome://appversion/skin/extensions/extensions.css");

@import url("chrome://global/skin/inContentUI.css");

/*** global warnings ***/

.global-warning-container {
  overflow-x: hidden;
}

.global-warning {
  -moz-box-align: center;
  padding: 0 8px;
  font-weight: bold;
}

.global-warning-text {
  color: -moz-FieldText;
}

#addons-page {
  background: #ebebeb url(chrome://browser/skin/newtab/noise.png);
  background-attachment: fixed;
  padding: 0;
}

#addons-page[warning] .global-warning-container {
  background-color: rgba(255, 255, 0, 0.1);
  background-image: url(chrome://mozapps/skin/extensions/stripes-warning.png);
  background-repeat: repeat-x;
}

#detail-view .global-warning {
  padding: 4px 12px;
  border-bottom: 1px solid #dbdbdb;
  min-height: 41px;
}

@media (max-width: 600px) {
  .global-warning-text {
    display: none;
  }
}

/* Plugins aren't yet disabled by safemode (bug 342333),
   so don't show that warning when viewing plugins. */
#addons-page[warning="safemode"] .view-pane[type="plugin"] .global-warning-container,
#addons-page[warning="safemode"] #detail-view[loading="true"] .global-warning-container {
  background-color: inherit;
  background-image: none;
}

/*** notification icons ***/

.warning-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/important.svg);
  width: 16px;
  height: 16px;
  margin: 3px 0;
}

.error-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/error.svg);
  width: 16px;
  height: 16px;
  margin: 3px 0;
}

.pending-icon,
.info-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/information.svg);
  width: 16px;
  height: 16px;
  margin: 3px 0;
}

/*** view alert boxes ***/

.alert-container {
  -moz-box-align: center;
}

.alert-spacer-before {
  -moz-box-flex: 1;
}

.alert-spacer-after {
  -moz-box-flex: 3;
}

.alert {
  -moz-box-align: center;
  padding: 10px;
  font-size: 12px;
  border: 1px solid ThreeDShadow;
  border-radius: 8px;
  color: WindowText;
  background-color: Window;
  background-clip: padding-box;
}

.alert .alert-title {
  font-weight: bold;
  font-size: 200%;
  margin-bottom: 15px;
}

.alert button {
  margin: 1em 2em;
}

.loading {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
  padding-left: 20px;
  padding-right: 20px;
}

/*** category selector ***/

#categories {
  -moz-appearance: none;
  border: none;
  background-color: transparent;
  position: relative;
  margin: 0;
  -moz-margin-start: 0px;
  -moz-margin-end: -12px;
}

#categories > .category:first-of-type {
  margin-top: 39px;
}

.category {
  -moz-appearance: none;
  -moz-box-align: center;
  overflow: hidden;
  min-height: 0;
  color: #606060;
  margin: 10px 0 0 0;

  -moz-border-start: 1px solid transparent;
  -moz-border-end: 12px solid transparent;
  border-radius: 0 !important;

  padding: 5px 0 4px 0;
  -moz-padding-start: 25px;
/*  max-height: 30px;*/
}

.category:-moz-locale-dir(ltr) {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.category:-moz-locale-dir(rtl) {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.category[disabled] {
  border-top: 0;
  border-bottom: 0;
  height: 0;
  opacity: 0;
  transition-property: height, opacity;
  transition-duration: 1s, 0.8s;
}

.category[disabled] + .category {
  margin-top: 0;
}

.category:not([disabled]) {
  transition-property: height, opacity;
  transition-duration: 1s, 0.8s;
}

.category[selected] {
  background: #007fe1;
  background-clip: padding-box;
  -moz-border-start: 1px solid #99c6e8;
  color: #fff !important;
}

.category[selected]:-moz-locale-dir(ltr) {
  border-image: url(chrome://mozapps/skin/extensions/addons-category-border.png) 0 12 0 0 / 0px 12px 0px 0px stretch;
}
.category[selected]:-moz-locale-dir(rtl) {
  border-image: url(chrome://mozapps/skin/extensions/addons-category-border-rtl.png) 0 0 0 12 / 0px 0px 0px 12px stretch;
}

.category-name {
  font-size: 1.03em;
}

/* Maximize the size of the viewport when the window is small */
/*
@media (max-width: 800px) {
  .category-name {
    display: none;
  }
}
*/

.category-badge {
  text-align: center;
  -moz-margin-end: 10px;
}

.category-badge[value="0"] {
  visibility: hidden;
}

.category-icon {
  display: none;
}

/*
#category-search > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-search.png");
}
#category-discover > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-discover.png");
}
#category-locale > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-languages.png");
}
#category-searchengine > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-searchengines.png");
}
#category-extension > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-extensions.png");
}
#category-service > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-service.png");
}
#category-theme > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-themes.png");
}
#category-plugin > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-plugins.png");
}
#category-dictionary > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-dictionaries.png");
}
#category-availableUpdates > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-available.png");
}
#category-recentUpdates > .category-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/category-recent.png");
}
*/

/*** view-port-container ***/

#view-port-container {
  background: #fff;
  border: 0;
  border-radius: 0;
  -moz-border-start: 2px solid;
  -moz-padding-start: 0;
}
#view-port-container:-moz-locale-dir(ltr) {
  -moz-border-left-colors: #dbdbdb #fafafa;
/*  -moz-border-left-colors: #b8b8b8 #c2c3c2 #d0d1d0 #dfe0df #edeeed;*/
}
#view-port-container:-moz-locale-dir(rtl) {
  -moz-border-right-colors: #fafafa #dbdbdb;
/*  -moz-border-right-colors: #b8b8b8 #c2c3c2 #d0d1d0 #dfe0df #edeeed;*/
}

/*** header ***/

#header {
  -moz-appearance: none;
  margin: 0;
  padding: 0 3px;
  height: 37px;
  background: linear-gradient(to bottom, #fff, #f3f3f3);
  border-bottom: 1px solid #a7a7a7;
}

#header toolbarbutton,
#header textbox {
  margin: 2px 3px;
}

#header toolbarbutton {
  -moz-appearance: none;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 3px;
  color: #2e3436 !important;
  filter: none;
  padding: 1px !important;
  min-width: 32px;
  min-height: 28px;
  text-shadow: none;
  transition-property: color, border, box-shadow, background;
  transition-duration: 200ms;
}

#header toolbarbutton:not([disabled="true"]):hover,
#header .toolbarbutton-menubutton-dropmarker:hover {
  background-image: linear-gradient(to bottom, #ffffff, #ebebeb) !important;
  border: 1px solid rgba(0,0,0,.25) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.89) !important;
}

#header toolbarbutton:not([disabled="true"]):active:hover,
#header toolbarbutton[checked="true"],
#header toolbarbutton[checked="true"]:hover {
  background-image: linear-gradient(to bottom, #c9c9c9, #e4e4e4) !important;
/*  border-color: #72a0cf;*/
  border: 1px solid rgba(0,0,0,.25) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.89) !important;
}

#header toolbarbutton[open="true"],
#header toolbarbutton[open="true"]:hover,
#header toolbarbutton[open="true"]:active,
#header toolbarbutton[open="true"]:active:hover {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.89) !important;
  border-radius: 3px 3px 0 0;
}

#header toolbarbutton[disabled="true"],
#header toolbarbutton[disabled="true"]:hover,
#header toolbarbutton[disabled="true"]:active,
#header toolbarbutton[disabled="true"]:active:hover {
  color: #a7aba7 !important;
}

.nav-button {
  min-width: 0;
}

#back-btn {
  -moz-margin-end: 1px !important;
}

#forward-btn {
  -moz-margin-start: 1px !important;
}

#back-btn:-moz-locale-dir(ltr) {
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-previous.svg);
}

#forward-btn:-moz-locale-dir(ltr) {
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-next.svg);
}

#back-btn:-moz-locale-dir(rtl) {
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-next.svg);
}

#forward-btn:-moz-locale-dir(rtl) {
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-previous.svg);
}

#back-btn[disabled="true"] > .toolbarbutton-icon,
#forward-btn[disabled="true"] > .toolbarbutton-icon {
  opacity: 0.5;
}

#header-utils-btn {
  list-style-image: url(chrome://browser/skin/symbolic-icons/preferences-system.svg);
}

#header-utils-btn > .toolbarbutton-icon {
  -moz-margin-end: 0;
}

#header-utils-btn > .toolbarbutton-menu-dropmarker {
  display: none;
}

#header-utils-btn:-moz-focusring > .button-box {
  border: none;
}

#header-search {
  margin: 0;
  min-height: 28px;
}

@media (max-width: 600px) {
  #header-search {
    width: 12em;
  }
}

/***  ***/

.view-header {
  background-color: transparent;
  border-bottom: 1px solid #dbdbdb;
  min-height: 41px;
  padding: 4px;
  margin: 0;
}

#list-view > hbox {
  -moz-margin-start: -2px;
  padding: 4px;
  border-top-color: #dbdbdb;
  border-bottom-color: #dbdbdb;
}

/*** sorters ***/

.sort-controls {
  -moz-appearance: none;
}

.sorter[checkState="1"] .button-icon {
  display: -moz-box;
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-up.svg);
}

.sorter[checkState="2"] .button-icon {
  display: -moz-box;
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-down.svg);
}

/*** discover view ***/

.discover-spacer-before,
.discover-spacer-after {
  -moz-box-flex: 1;
}

#discover-error .alert {
  max-width: 45em;
  -moz-box-flex: 1;
}

.discover-logo {
  list-style-image: url("chrome://mozapps/skin/extensions/discover-logo.png");
  -moz-margin-end: 15px;
}

.discover-title {
  font-weight: bold;
  font-size: 24px;
  font-family: MetaWebPro-Book, "Trebuchet MS", sans-serif;
  margin: 0 0 15px 0;
}

.discover-description {
  text-align: justify;
  margin: 0 0 15px 0;
}

.discover-footer {
  text-align: justify;
}

/*** list ***/

.addon.addon-view {
  -moz-padding-start: 20px;
  -moz-padding-end: 20px;
}

.list {
  -moz-appearance: none;
  margin: 0;
  border: none;
  background-color: transparent;
}

.addon {
  border-top: 1px solid transparent;
  border-bottom: 1px solid #dfdfde;
  color: #222;
  padding: 5px;
}

.addon:first-child {
  border-top: 0;
}

.addon:not([selected]):hover {
  background-color: rgba(255,255,255,0.3);
}

.addon[selected] {
  background: #efefef;
  -moz-border-top-colors: none;
  border-image: none;
  color: #414141;
}

.addon[active="false"] .version {
}

.addon[active="false"] .details.button-link,
.addon[active="false"] .name-container {
  color: gray;
}

.addon[active="false"]:not(:hover) .addon-control {
  opacity: 0.4;
}

.details {
  cursor: pointer;
  margin: 0;
  -moz-margin-start: 10px;
}

.icon-container {
  background-color: #dfdfdf;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.1) inset;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  min-width: 48px;
  min-height: 48px;
  margin: 3px 7px;
  -moz-box-align: center;
  -moz-box-pack: center;
}

.icon {
  list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric.png);
  max-width: 40px;
  max-height: 40px;
}

.addon[active="false"] .icon {
  filter: url(chrome://mozapps/skin/extensions/extensions.svg#greyscale);
}

.addon-view[type="theme"] .icon {
  list-style-image: url(chrome://mozapps/skin/extensions/themeGeneric.png);
}

.addon-view[type="locale"] .icon {
  list-style-image: url(chrome://mozapps/skin/extensions/localeGeneric.png);
}

.addon-view[type="plugin"] .icon {
  list-style-image: url(chrome://mozapps/skin/plugins/pluginGeneric.png);
}

.addon-view[type="dictionary"] .icon {
  list-style-image: url(chrome://mozapps/skin/extensions/dictionaryGeneric.png);
}

.name-container {
  font-size: 1.05em;
  margin-bottom: 0;
  font-weight: bold;
  -moz-box-align: end;
  -moz-box-flex: 1;
}

.version {
  color: gray;
  font-size: 0.8em;
  padding: 2px;
}

.creator {
  font-weight: bold;
}

.addon-view[active="false"]:not([selected]) {
  color: GrayText;
}

.description-container {
  -moz-margin-start: 6px;
  -moz-box-align: center;
}

.description {
  color: #979797;
  font-size: 1em;
  margin: 0;
}


.addon .button-link {
  font-size: 1em;
}

.details.button-link {
  -moz-margin-start: 10px;
}

.warning,
.pending,
.error {
  -moz-margin-start: 10px;
  -moz-box-align: center;
  padding-bottom: 10px
}

.content-container,
.basicinfo-container {
  -moz-box-align: start;
}

.addon[status="installing"] > .content-container {
  -moz-box-align: stretch;
}

.advancedinfo-container,
.update-info-container {
  -moz-box-align: center;
}

.update-available {
  -moz-box-align: end;
}

.install-status-container {
  -moz-box-pack: end;
  -moz-box-align: end;
}

.name-outer-container {
  -moz-box-pack: center;
}

.relnotes-toggle-container,
.icon-outer-container {
  -moz-box-pack: start;
}

.status-container,
.control-container {
  -moz-box-pack: end;
}

.addon-view:not([selected]) .warning {
  color: #90792E;
}

.addon-view:not([selected]) .error {
  color: #7C322B;
}

.addon-view:not([selected]) .pending {
  color: #4F7939;
}

/*
.addon[active="false"] {
  background-image: linear-gradient(rgba(135, 135, 135, 0.2),
                                    rgba(135, 135, 135, 0.1));
}
*/

.addon-view[notification="warning"] {
  background-image: url("chrome://mozapps/skin/extensions/stripes-warning.png"),
                    linear-gradient(rgba(255, 255, 0, 0.04),
                                    rgba(255, 255, 0, 0));
  background-repeat: repeat-x;
}

.addon-view[notification="error"] {
  background-image: url("chrome://mozapps/skin/extensions/stripes-error.png"),
                    linear-gradient(rgba(255, 0, 0, 0.04),
                                    rgba(255, 0, 0, 0));
  background-repeat: repeat-x;
}

.addon-view[pending="enable"],
.addon-view[pending="upgrade"],
.addon-view[pending="install"] {
  background-image: url("chrome://mozapps/skin/extensions/stripes-info-positive.png"),
                    linear-gradient(rgba(0, 255, 0, 0.04),
                                    rgba(0, 255, 0, 0));
  background-repeat: repeat-x;
}

.addon-view[pending="disable"],
.addon-view[pending="uninstall"] {
  background-image: url("chrome://mozapps/skin/extensions/stripes-info-negative.png"),
                    linear-gradient(rgba(128, 128, 128, 0.04),
                                    rgba(128, 128, 128, 0));
  background-repeat: repeat-x;
}

.addon .relnotes-container {
  -moz-box-align: start;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition-property: height, opacity;
  transition-duration: 0.5s, 0.5s;
}

.addon[show-relnotes] .relnotes-container {
  opacity: 1;
  transition-property: height, opacity;
  transition-duration: 0.5s, 0.5s;
}

.addon[active="false"] .relnotes-container {
  color: gray;
}

.addon .relnotes-header {
  font-weight: bold;
  margin: 10px 0;
}

.addon .relnotes-toggle {
  -moz-appearance: none;
  border: none;
  background: transparent;
  font-weight: bold;
  cursor: pointer;
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-down.svg);
  margin-top: 10px;
}

.addon[active="false"] .relnotes-toggle {
  color: gray;
}

.addon .relnotes-toggle > .button-box > .button-icon {
  display: -moz-box;
}

.addon[active="false"] .relnotes-toggle > .button-box > .button-icon {
  opacity: 0.4;
}

.addon[show-relnotes] .relnotes-toggle {
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-up.svg);
}

/*** search view ***/

#search-filter {
  padding: 5px 20px;
  overflow-x: hidden;
  border-bottom: 1px solid #dbdbdb;
}

#search-filter-label {
  font-weight: bold;
}

#search-allresults-link {
  margin-top: 1em;
  margin-bottom: 2em;
}

/*** detail view ***/

#detail-view[active="false"] .fade {
  opacity: 0.6;
}

#detail-view .loading {
  opacity: 0;
}

#detail-view[loading-extended] .loading {
  -moz-box-align: center;
  -moz-box-pack: center;
  opacity: 1;
  transition-property: opacity;
  transition-duration: 1s;
}

.detail-view-container {
  padding: 0 2em 2em 2em;
/*  font-size: 110%;*/
}

#detail-notifications {
  margin-top: 1em;
  margin-bottom: 2em;
}

#detail-notifications .warning,
#detail-notifications .pending,
#detail-notifications .error {
  -moz-margin-start: 0;
}

#detail-icon-container {
  width: 64px;
  -moz-margin-end: 10px;
}

#detail-icon {
  max-width: 64px;
  max-height: 64px;
}

#detail-summary {
  margin-bottom: 2em;
}

#detail-name-container {
  font-size: 200%;
}

#detail-screenshot {
  -moz-margin-end: 2em;
  max-width: 300px;
  max-height: 300px;
}

#detail-screenshot[loading] {
  background-image: url("chrome://global/skin/icons/loading_16.png");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  border: 1px threedshadow solid;
  border-radius: 5px;
  -moz-box-sizing: border-box;
}

#detail-screenshot[loading="error"] {
  background-image: url("chrome://global/skin/media/error.png");
}

#detail-desc-container {
  margin-bottom: 2em;
}

#detail-desc, #detail-fulldesc {
  -moz-margin-start: 6px;
  /* This is necessary to fix layout issues with multi-line descriptions, see
     bug 592712*/
  outline: solid transparent;
  white-space: pre-wrap;
  min-width: 10em;
}

#detail-fulldesc {
  margin-top: 1em;
}

#detail-contributions {
  border-radius: 5px;
  border: 1px solid ThreeDShadow;
  margin-bottom: 2em;
  padding: 1em;
  background: ThreeDHighlight;
}

#detail-contrib-description {
  font-style: italic;
  margin-bottom: 1em;
}

#detail-contrib-suggested {
  color: GrayText;
}

#detail-grid {
  margin-bottom: 2em;
}

#detail-grid > columns > column:first-child {
  min-width: 15em;
  max-width: 25em;
}

.detail-row[first-row="true"],
.detail-row-complex[first-row="true"],
setting[first-row="true"] {
  border-top: none;
}

.detail-row,
.detail-row-complex,
setting {
  border-top: 1px solid ThreeDShadow;
  -moz-box-align: center;
  min-height: 32px;
}

#detail-controls {
  margin-bottom: 1em;
}

/*
#detail-view[active="false"]:not([pending]):not([notification]) {
  background-image: linear-gradient(rgba(135, 135, 135, 0.1),
                                    rgba(135, 135, 135, 0));
}
*/

setting[first-row="true"] {
  margin-top: 2em;
}

setting {
  -moz-box-align: start;
}

.preferences-alignment {
  min-height: 32px;
  -moz-box-align: center;
}

.preferences-description {
  font-size: 90.9%;
  color: graytext;
  margin-top: -2px;
  -moz-margin-start: 2em;
  white-space: pre-wrap;
}

.preferences-description:empty {
  display: none;
}

menulist { /* Fixes some styling inconsistencies */
  font-size: 100%;
  margin: 1px 5px 2px 5px;
}

colorpicker[type="button"] { /* Fixes some styling inconsistencies */
  height: 29px;
  margin: 1px 5px 2px 5px;
}

setting[type="radio"] > radiogroup {
  -moz-box-orient: horizontal;
}

/*** creator ***/

.creator > label {
  -moz-margin-start: 0;
  -moz-margin-end: 0;
}

.creator > .text-link {
  margin-top: 1px;
  margin-bottom: 1px;
}

/*** rating ***/

.meta-rating {
  -moz-margin-end: 0;
  vertical-align: text-top;
}

.meta-rating[showrating="average"] > .star {
  list-style-image: url("chrome://mozapps/skin/extensions/rating-not-won.png");
  padding: 0 1px;
}

.meta-rating[showrating="user"] > .star {
  list-style-image: url("chrome://mozapps/skin/extensions/rating-unrated.png");
  padding: 2px 3px;
}

.meta-rating > .star[on="true"],
.meta-rating[showrating="user"] > .star[hover] {
  list-style-image: url("chrome://mozapps/skin/extensions/rating-won.png");
  padding: 0 1px;
}

/*** download progress ***/

.download-progress {
  width: 200px;
}

.download-progress .start-cap,
.download-progress .end-cap {
  display: none;
}

.download-progress .progress {
  padding: 0;
  margin: 0;
  border: none;
}

.download-progress .cancel {
  -moz-appearance: none;
  background-color: ButtonFace;
  padding-bottom: 1px;
  -moz-padding-start: 2px;
  border-width: 1px;
  border-style: solid;
  border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
  border-radius: 10000px;
  min-width: 16px;
  width: 16px;
  height: 16px;
  margin: 3px;
}

.download-progress .cancel:hover {
  background-color: -moz-ButtonHoverFace;
}

.download-progress .cancel {
  list-style-image: url('chrome://mozapps/skin/extensions/cancel.png');
}

.download-progress .status-container {
  -moz-box-align: center;
}

/*** install status ***/

.install-status {
  -moz-box-align: center;
}

/*** check for updates ***/

#updates-container {
  -moz-box-align: center;
}

#updates-installed,
#updates-downloaded {
  font-weight: bold;
}

#update-selected {
  margin: 12px;
}

/*** ***/

#update-actions {
  border-top: 1px solid #dbdbdb;
  -moz-box-ordinal-group: 2; /* Move panel with Install Updates button to bottom */
}

/*** buttons ***/

.status-control-wrapper {
	-moz-margin-start: 5em;
}

.addon-control {
  -moz-appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  filter: none;
  padding: 3px;
  min-width: 32px;
  opacity: 0.8;
  transition-property: border, box-shadow, background;
  transition-duration: 200ms;
}

.addon-control:not([disabled="true"]):hover {
  border-color: rgba(0,0,0,.25) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.69),
              0 1px 0 rgba(255,255,255,0.69) inset;
}

.addon-control:not([disabled="true"]):active:hover,
.addon-control[checked="true"],
.addon-control[checked="true"]:hover {
  background-image: linear-gradient(to bottom, #c9c9c9, #e4e4e4);
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 1px 0 rgba(255,255,255,0.69);
}

.addon-control[open="true"],
.addon-control[open="true"]:hover,
.addon-control[open="true"]:active,
.addon-control[open="true"]:active:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.69);
  border-radius: 3px 3px 0 0;
}

.addon-control[disabled="true"] {
  display: none;
}

/*
  #new-userstyle == "Write New Style" (Stylish)
*/
#new-userstyle.addon-control {
  -moz-appearance: button;
  padding: 0;
  transition-duration: 0;
}
menuitem.addon-control {
  -moz-appearance: menuitem;
  border: none;
  max-width: none;
  opacity: 1;
  padding: 1px 5px;
  transition-duration: 0;
}
menuitem.addon-control:hover {
  border: none !important;
  box-shadow: none !important;
}

.addon-control.enable .button-icon,
.addon-control.disable .button-icon,
.addon-control.remove .button-icon,
.addon-control.preferences .button-icon {
  display: block !important;
  -moz-margin-end: 0;
}

.addon-control.enable .button-text,
.addon-control.disable .button-text,
.addon-control.remove .button-text,
.addon-control.preferences .button-text {
  display: none;
}

/* Switches */

.addon-control.enable {
/*  list-style-image: url("moz-icon://stock/gtk-yes?size=button");*/
  list-style-image: url(chrome://mozapps/skin/extensions/off.png);
}

.addon-control.disable {
/*  list-style-image: url("moz-icon://stock/gtk-no?size=button");*/
  list-style-image: url(chrome://mozapps/skin/extensions/on.png);
}

.addon-control.enable:hover,
.addon-control.disable:hover,
.addon-control.enable:active,
.addon-control.disable:active{
  border-color: transparent !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

button.addon[active="false"] .addon-control.enable,
button.addon[active="false"] .addon-control.disable{
  opacity: 1;
}

.addon-control.remove {
/*  list-style-image: url("moz-icon://stock/gtk-remove?size=button");*/
  list-style-image: url(chrome://browser/skin/symbolic-icons/user-trash.svg);
}

.addon-control.preferences {
/*  list-style-image: url("moz-icon://stock/gtk-preferences?size=button");*/
  list-style-image: url(chrome://browser/skin/symbolic-icons/emblem-system.svg);
}

.addon-control.update {
  color: #fff;
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
  background-image: linear-gradient(to bottom, #4294F7, #004EAD);
  padding: 4px 15px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset;
  border: 1px solid #003372;
}

.addon-control.install {
  color: #fff;
  text-shadow: 0px -1px 0px rgba(0,0,0,0.3);
  background-image: linear-gradient(to bottom, #89C400, #5B9C00);
  padding: 4px 15px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset;
  border: 1px solid #316D0E;
}

.addon-control.install:active:hover {
  color: #203006;
  text-shadow: 0px 1px 0px rgba(255,255,255,0.3);
  box-shadow: 0 0 2px 1px rgba(0,0,0,0.2) inset;
}

.addon-control.state .menulist-dropmarker {
  -moz-appearance: none;
  display: -moz-box;
  list-style-image: url(chrome://browser/skin/symbolic-icons/dropmarker.svg);
  padding: 3px;
  margin: 2px 0;
  max-height: 16px;
}

.button-link {
  -moz-appearance: none;
  background: transparent;
  border: none;
/*  color: -moz-nativehyperlinktext;*/
  color: #4b4b4b;
  cursor: pointer;
  min-width: 0;
  margin: 0 6px;
  text-decoration: underline;
}

.button-link:hover {
  color: #3b6aa7;
  text-decoration: underline;
  box-shadow: none;
}

.button-link:active {
/*  color: -moz-activehyperlinktext;*/
  text-decoration: underline;
  box-shadow: none;
}

.button-link .button-box {
  padding: 0;
  border: none !important;
}

.text-link {
  color: #3b6aa7;
  text-decoration: none;
}

.text-link:hover,
.text-link:active {
  text-decoration: underline;
}

.header-button .toolbarbutton-text {
  display: none;
}
