/* 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://global/skin/");

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

@import url("chrome://os/skin/browser/browser.css");

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

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

#menubar-items {
  -moz-box-orient: vertical; /* for flex hack */
}

#main-menubar {
  -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
}

#navigator-toolbox {
  -moz-appearance: none;
  background-color: Window;
  border-top: none;
  border-bottom: 1px solid #a7aba7 !important;
}

/* Toolbars */
#toolbar-menubar:not([autohide="true"]),
#TabsToolbar[tabsontop="true"],
#nav-bar[tabsontop="false"] {
  -moz-binding: url(chrome://global/content/bindings/toolbar.xml#toolbar-drag);
}

#navigator-toolbox > toolbar:not(#toolbar-menubar) {
  -moz-appearance: none;
}

#navigator-toolbox:not([tabsontop="false"]) > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
  border-top: 1px solid #a7aba7 !important;
}
#navigator-toolbox:not([tabsontop="false"]) > toolbar:not(#toolbar-menubar):not(#TabsToolbar)[collapsed="false"] ~ toolbar {
  border-top: 0 !important;
}
#navigator-toolbox[tabsontop="false"] > toolbar {
  border-top: 0 !important;
}

#navigator-toolbox:not([tabsontop="false"]) > #nav-bar {
  background: linear-gradient(to bottom, #fff, #f3f3f3) !important;
}
#navigator-toolbox > toolbar[id*="custom"] {
  background: #f4f4f4 !important;
}
#navigator-toolbox > toolbar[id="PersonalToolbar"] {
  background: linear-gradient(to bottom, #f4f4f4, #eee) !important;
}
#navigator-toolbox > :-moz-any(#toolbar-menubar, #TabsToolbar),
#navigator-toolbox[tabsontop="false"] > toolbar {
  background: transparent !important;
}

#nav-bar[iconsize="large"] {
  padding: 4px 3px !important;
}
#nav-bar[iconsize="small"] {
  padding: 3px 2px !important;
}

#personal-bookmarks {
  min-height: 29px;
}

/* Bottom toolbox */
#browser-bottombox {
  background-color: transparent !important;
}

/* Places toolbar */
toolbarbutton.bookmark-item {
  margin: 0;
  padding: 2px 6px;
}

.bookmark-item[container][livemark] .toolbarbutton-icon {
  -moz-margin-end: 3px;
}

.bookmark-item > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

/*Remove attention from close buttons until hovered over*/

#addonbar-closebutton {
	opacity: 0.4;
}

#addonbar-closebutton:hover {
	opacity: 1;
}

/* Prevent [mode="icons"] from hiding the label */
.bookmark-item > .toolbarbutton-text {
  display: -moz-box !important;
  padding-top: 3px; 
}

.bookmark-item > .toolbarbutton-menu-dropmarker {
  display: none !important;
  -moz-padding-end: 5px !important;
}

/* Dropmarker for folder bookmarks */
.bookmark-item[container] > .toolbarbutton-menu-dropmarker {
  display: none !important;
  -moz-padding-end: 7px !important;
}

#wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
  background: url("chrome://browser/skin/places/bookmarksToolbar.png") no-repeat center;
}

.bookmarks-toolbar-customize {
  max-width: 15em !important;
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
}

/* Bookmark menus */
menu.bookmark-item,
menuitem.bookmark-item {
  min-width: 0;
  max-width: 32em;
}

.bookmark-item > .menu-iconic-left {
  margin-top: 0;
  margin-bottom: 0;
}

.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
  -moz-padding-start: 0px;
}

/* Bookmark drag and drop styles */
.bookmark-item[dragover-into="true"] {
  background: Highlight !important;
  color: HighlightText !important;
}

/* rules for menupopup drop indicators */
.menupopup-drop-indicator-bar {
  position: relative;
  /* these two margins must together compensate the indicator's height */
  margin-top: -1px;
  margin-bottom: -1px;
}

.menupopup-drop-indicator {
  list-style-image: none;
  height: 2px;
  -moz-margin-end: -4em;
  background-color: Highlight;
}

/* Bookmarks toolbar */
#PlacesToolbarDropIndicator {
  list-style-image: url(chrome://browser/skin/places/toolbarDropMarker.png);
}

/* Bookmark items */
.bookmark-item {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

.bookmark-item[container] {
  list-style-image: url("chrome://browser/skin/symbolic-icons/folder.svg");
}

.bookmark-item[container][livemark] {
  list-style-image: url("chrome://browser/skin/symbolic-icons/rss-live.svg");
}

.bookmark-item[container][livemark] .bookmark-item {
  list-style-image: url("chrome://browser/skin/places/livemark-item.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

.bookmark-item[container][livemark] .bookmark-item[visited] {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

.bookmark-item[container][query] {
  list-style-image: url("chrome://browser/skin/symbolic-icons/folder-saved-search.svg");
}

.bookmark-item[query][tagContainer] {
  list-style-image: url("chrome://browser/skin/places/tag.png");
}

.bookmark-item[query][dayContainer] {
  list-style-image: url("chrome://browser/skin/places/calendar.png");
}

.bookmark-item[query][hostContainer] {
  list-style-image: url("chrome://browser/skin/symbolic-icons/folder.svg");
}

.bookmark-item[query][hostContainer][open] {
  list-style-image: url("chrome://browser/skin/symbolic-icons/folder.svg");
}

.bookmark-item[cutting] > .toolbarbutton-icon,
.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
  opacity: 0.5;
}

.bookmark-item[cutting] > .toolbarbutton-text,
.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
  opacity: 0.7;
}

/* Stock icons for the menu bar items */
menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
}

#appmenu_newNavigator,
#placesContext_open\:newwindow,
#menu_newNavigator,
#context-openlink,
#context-openframe {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 80px 16px 64px);
}

#appmenu_newTab,
#appmenu_newTab_popup,
#placesContext_open\:newtab,
#placesContext_openContainer\:tabs,
#menu_newNavigatorTab,
#context-openlinkintab,
#context-openframeintab {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 64px 16px 48px);
}

#appmenu_openFile,
#menu_openFile {
  list-style-image: url("moz-icon://stock/gtk-open?size=menu");
}

#menu_close {
    list-style-image: url("moz-icon://stock/gtk-close?size=menu");
}

#context-media-play {
  list-style-image: url("moz-icon://stock/gtk-media-play?size=menu");
}

#context-media-pause {
  list-style-image: url("moz-icon://stock/gtk-media-pause?size=menu");
}

#appmenu_savePage,
#menu_savePage,
#context-savelink,
#context-saveimage,
#context-savevideo,
#context-saveaudio,
#context-savepage,
#context-saveframe {
  list-style-image: url("moz-icon://stock/gtk-save-as?size=menu");
}

#appmenu_printPreview,
#menu_printPreview {
  list-style-image: url("moz-icon://stock/gtk-print-preview?size=menu");
}

#appmenu_print,
#appmenu_print_popup,
#menu_print,
#context-printframe {
  list-style-image: url("moz-icon://stock/gtk-print?size=menu");
}

#appmenu-quit,
#menu_FileQuitItem {
  list-style-image: url("moz-icon://stock/gtk-quit?size=menu");
}

#menu_undo,
#context-undo {
  list-style-image: url("moz-icon://stock/gtk-undo?size=menu");
}

#menu_undo[disabled],
#context-undo[disabled] {
  list-style-image: url("moz-icon://stock/gtk-undo?size=menu&state=disabled");
}

#menu_redo {
  list-style-image: url("moz-icon://stock/gtk-redo?size=menu");
}

#menu_redo[disabled] {
  list-style-image: url("moz-icon://stock/gtk-redo?size=menu&state=disabled");
}

#menu_cut,
#placesContext_cut,
#context-cut {
  list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
}

#menu_cut[disabled],
#placesContext_cut[disabled],
#context-cut[disabled] {
  list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled");
}

#menu_copy,
#placesContext_copy,
#context-copy,
#context-copyimage,
#context-copyvideourl,
#context-copyaudiourl,
#context-copylink,
#context-copyemail {
  list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
}

#menu_copy[disabled],
#placesContext_copy[disabled],
#context-copy[disabled] {
  list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled");
}

#menu_paste,
#placesContext_paste,
#context-paste {
  list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
}

#menu_paste[disabled],
#placesContext_paste[disabled],
#context-paste[disabled] {
  list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled");
}

#menu_delete,
#placesContext_delete,
#placesContext_delete_history,
#context-delete {
  list-style-image: url("moz-icon://stock/gtk-delete?size=menu");
}

#menu_delete[disabled],
#placesContext_delete[disabled],
#placesContext_delete_history[disabled],
#context-delete[disabled] {
  list-style-image: url("moz-icon://stock/gtk-delete?size=menu&state=disabled");
}

#menu_selectAll,
#context-selectall {
  list-style-image: url("moz-icon://stock/gtk-select-all?size=menu");
}

#appmenu_find,
#menu_find {
  list-style-image: url("moz-icon://stock/gtk-find?size=menu");
}

#menu_find[disabled] {
  list-style-image: url("moz-icon://stock/gtk-find?size=menu&state=disabled");
}

#appmenu_customize,
#appmenu_preferences,
#menu_preferences {
  list-style-image: url("moz-icon://stock/gtk-preferences?size=menu");
}

#menu_stop,
#context-stop {
  list-style-image: url("moz-icon://stock/gtk-stop?size=menu");
}

#menu_stop[disabled],
#context-stop[disabled] {
  list-style-image: url("moz-icon://stock/gtk-stop?size=menu&state=disabled");
}

#menu_reload,
#placesContext_reload,
#context-reload,
#context-reloadframe {
  list-style-image: url("moz-icon://stock/gtk-refresh?size=menu");
}

#menu_reload[disabled],
#context-reload[disabled] {
  opacity: 0.5;
}

#menu_zoomEnlarge {
  list-style-image: url("moz-icon://stock/gtk-zoom-in?size=menu");
}

#menu_zoomReduce {
  list-style-image: url("moz-icon://stock/gtk-zoom-out?size=menu");
}

#menu_zoomReset {
  list-style-image: url("moz-icon://stock/gtk-zoom-100?size=menu");
}

#historyMenuBack,
#context-back {
  list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=menu");
}

#historyMenuBack[disabled],
#context-back[disabled] {
  list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=menu&state=disabled");
}

#historyMenuBack:-moz-locale-dir(rtl),
#context-back:-moz-locale-dir(rtl) {
  list-style-image: url("moz-icon://stock/gtk-go-back-rtl?size=menu");
}

#historyMenuBack[disabled]:-moz-locale-dir(rtl),
#context-back[disabled]:-moz-locale-dir(rtl) {
  list-style-image: url("moz-icon://stock/gtk-go-back-rtl?size=menu&state=disabled");
}

#historyMenuForward,
#context-forward {
  list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu");
}

#historyMenuForward[disabled],
#context-forward[disabled] {
  list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu&state=disabled");
}

#historyMenuForward:-moz-locale-dir(rtl),
#context-forward:-moz-locale-dir(rtl) {
  list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu");
}

#historyMenuForward[disabled]:-moz-locale-dir(rtl),
#context-forward[disabled]:-moz-locale-dir(rtl) {
  list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu&state=disabled");
}

#historyMenuHome {
  list-style-image: url("moz-icon://stock/gtk-home?size=menu");
}

#appmenu_history,
#appmenu_showAllHistory,
#menu_showAllHistory {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 32px 16px 16px);
}

#appmenu_bookmarks,
#appmenu_showAllBookmarks,
#bookmarksShowAll {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 48px 16px 32px);
}

#subscribeToPageMenuitem:not([disabled]),
#subscribeToPageMenupopup,
#BMB_subscribeToPageMenuitem:not([disabled]),
#BMB_subscribeToPageMenupopup {
  list-style-image: url("chrome://browser/skin/page-livemarks.png");
}

#bookmarksToolbarFolderMenu,
#BMB_bookmarksToolbar {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
}

#BMB_bookmarkThisPage {
  list-style-image: url("chrome://browser/skin/places/starPage.png");
}

#BMB_unsortedBookmarks {
  list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
}

#appmenu_downloads,
#menu_openDownloads {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}

#appmenu_addons,
#menu_openAddons {
  list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
}

#menu_pageInfo,
#context-viewinfo,
#context-viewframeinfo {
  list-style-image: url("moz-icon://stock/gtk-info?size=menu");
}

#appmenu_privateBrowsing,
#appmenu_newPrivateWindow,
#privateBrowsingItem {
  list-style-image: url("chrome://browser/skin/Privacy-16.png");
}

#placesContext_show\:info {
  list-style-image: url("moz-icon://stock/gtk-properties?size=menu");
}

#appmenu_sanitizeHistory,
#sanitizeItem {
  list-style-image: url("moz-icon://stock/gtk-clear?size=menu");
}

#appmenu_help,
#appmenu_openHelp,
#menu_openHelp {
  list-style-image: url("moz-icon://stock/gtk-help?size=menu");
}

#appmenu_about,
#aboutName {
  list-style-image: url("moz-icon://stock/gtk-about?size=menu");
}

#javascriptConsole {
  list-style-image: url("chrome://global/skin/console/console.png");
}

/* Primary toolbar buttons */
.toolbarbutton-1:not([type="menu-button"]) {
  -moz-box-orient: vertical;
  min-width: 0;
  list-style-image: url("chrome://browser/skin/Toolbar.png");
}

.toolbarbutton-1 > .toolbarbutton-icon {
  -moz-margin-end: 0;
}

toolbar[mode="full"] .toolbarbutton-1:not([type="menu-button"]),
toolbar[mode="full"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
  min-width: 57px;
}

.toolbarbutton-1:not([type="menu-button"]),
.toolbarbutton-1 > .toolbarbutton-menubutton-button {
}

.toolbarbutton-1[checked="true"] {
  padding: 3px !important;
}

/* ::::: Buttons ::::: */

/* Basic style of buttons on navigator-toolbox (all top part of Fx's window), addon and find bars.
   Also apply for Social API buttons */
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton,
#social-toolbar-item > .toolbarbutton-1 {
  -moz-appearance: none;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 3px;
  color: #2e3436 !important;
  padding: 3px;
  text-shadow: none;
  transition-property: border, box-shadow, background;
  transition-duration: 200ms;
}

/* Amazing code below ↯ */
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton:not([disabled="true"]):hover,
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) .toolbarbutton-menubutton-dropmarker:hover,
#social-toolbar-item > .toolbarbutton-1:hover {
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.8) 40%, rgba(220,220,220,0.5)) !important;
  border-color: rgba(50,50,50,.4) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.37);
}

:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton:not([disabled="true"]):not([open="true"]):active:hover,
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[checked="true"],
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[checked="true"]:hover,
#social-toolbar-item > .toolbarbutton-1:not([disabled="true"]):active:hover,
#social-toolbar-item > .toolbarbutton-1[checked="true"],
#social-toolbar-item > .toolbarbutton-1[checked="true"]:hover {
  background-image: linear-gradient(to bottom, rgba(0,10,0,0.3), rgba(200,200,200,0.3)) !important;
  border-color: rgba(180,180,180,1) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.37);
  color: #ffffff !important;
  /*
  font-weight: bolder;
  text-shadow: 0 1px #7f7f7f;
  */
  text-shadow: 0 0 0 #ffffff, 0 1px #7f7f7f;
}

#downloads-indicator[open="true"],
#downloads-indicator[open="true"]:hover,
#downloads-indicator[open="true"]:active,
#downloads-indicator[open="true"]:active:hover {
  background: linear-gradient(to bottom, rgba(0,10,0,0.3), rgba(200,200,200,0.3)) !important;
  border-color: rgba(180,180,180,1) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.37);
  border-radius: 3px !important;
  color: #ffffff !important;
}

:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[open="true"],
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[open="true"]:hover,
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[open="true"]:active,
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[open="true"]:active:hover,
#social-toolbar-item > .toolbarbutton-1[open="true"],
#social-toolbar-item > .toolbarbutton-1[open="true"]:hover,
#social-toolbar-item > .toolbarbutton-1[open="true"]:active,
#social-toolbar-item > .toolbarbutton-1[open="true"]:active:hover {
  background: rgba(255,255,255,0.8) !important;
  border-color: rgba(255,255,255,0.8) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.37);
  border-radius: 3px 3px 0 0;
}

:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[disabled="true"],
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[disabled="true"]:hover,
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[disabled="true"]:active,
:-moz-any(#navigator-toolbox, #addon-bar, #FindToolbar) toolbarbutton[disabled="true"]:active:hover,
#social-toolbar-item > .toolbarbutton-1[disabled="true"],
#social-toolbar-item > .toolbarbutton-1[disabled="true"]:hover,
#social-toolbar-item > .toolbarbutton-1[disabled="true"]:active,
#social-toolbar-item > .toolbarbutton-1[disabled="true"]:active:hover {
  color: #a7aba7 !important;
}

/* ::::: Buttons on Navigation bar ::::: */

#nav-bar[iconsize=large] > toolbarbutton,
#nav-bar[iconsize=large] :-moz-any(#back-button, #forward-button, #zoom-out-button, #zoom-in-button, #bookmarks-menu-button, #restore-button),
#nav-bar[iconsize=large] #social-toolbar-item > .toolbarbutton-1 {
  margin: 0px 3px;
  min-height: 28px;
  min-width: 26px;
}

#nav-bar[iconsize=small] > toolbarbutton,
#nav-bar[iconsize=small] :-moz-any(#back-button, #forward-button, #zoom-out-button, #zoom-in-button, #bookmarks-menu-button, #restore-button),
#nav-bar[iconsize=small] #social-toolbar-item > .toolbarbutton-1 {
  margin: 0px 2px;
  min-height: 26px;
}

#nav-bar[iconsize=large] > toolbarbutton:not([type="menu-button"]),
#nav-bar[iconsize=large] :-moz-any(#back-button, #forward-button, #zoom-out-button, #zoom-in-button, #bookmarks-menu-button, #restore-button),
#nav-bar[iconsize=large] #social-toolbar-item > .toolbarbutton-1 {
  padding: 0px 3px !important;
}

/* ::::: Back/forward buttons ::::: */

/* Style for buttons with relief in default state */
#nav-bar[iconsize=large] :-moz-any(#back-button, #forward-button) {
  min-width: 32px;
}

#nav-bar[iconsize=large] :-moz-any(#back-button, #forward-button):not(:hover):not([open="true"]):not([disabled="true"]),
#nav-bar > :-moz-any(#unified-back-forward-button, #zoom-controls):hover > toolbarbutton:not(:hover):not([open="true"]):not([disabled="true"]),
#FindToolbar :-moz-any(.findbar-find-next, .findbar-find-previous):not(:hover):not([disabled="true"]),
/* Relief buttons */
#nav-bar[reliefbuttons="true"][iconsize=large] > :-moz-any(toolbarbutton:not(#close-button), .toolbarbutton-menubutton-dropmarker):not(:hover):not([open="true"]):not([checked="true"]):not([disabled="true"]),
#nav-bar[reliefbuttons="true"][iconsize=large] > toolbaritem:not(#urlbar):not(#unified-back-forward-button) > :-moz-any(toolbarbutton:not(#close-button), .toolbarbutton-menubutton-dropmarker):not(:hover):not([open="true"]):not([checked="true"]):not([disabled="true"]),
#nav-bar[reliefbuttons="true"][iconsize=large] #social-toolbar-item > .toolbarbutton-1:not(:hover):not([open="true"]):not([checked="true"]):not([disabled="true"]) {
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(200,200,200,0.5)) !important;
  border: 1px solid rgba(50,50,50,.4) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.37), inset 0 1px 0 rgba(255,255,255,0.45), inset 1px 0 0 rgba(255,255,255,0.3), inset -1px 0 0 rgba(255,255,255,0.3) !important;
}

#nav-bar[iconsize=large] :-moz-any(#back-button, #forward-button)[disabled="true"],
#nav-bar[iconsize=small] > #unified-back-forward-button:hover:not([forwarddisabled]) > toolbarbutton[disabled="true"],
#nav-bar > #zoom-controls:hover > toolbarbutton[disabled="true"],
#FindToolbar :-moz-any(.findbar-find-next, .findbar-find-previous)[disabled="true"],
/* Relief buttons */
#nav-bar[reliefbuttons="true"][iconsize=large] > :-moz-any(toolbarbutton:not(#close-button), .toolbarbutton-menubutton-dropmarker)[disabled="true"],
#nav-bar[reliefbuttons="true"][iconsize=large] > toolbaritem:not(#urlbar):not(#unified-back-forward-button) > :-moz-any(toolbarbutton:not(#close-button), .toolbarbutton-menubutton-dropmarker)[disabled="true"],
#nav-bar[reliefbuttons="true"][iconsize=large] #social-toolbar-item > .toolbarbutton-1[disabled="true"] {
  background: rgba(255,255,255,0.3) !important;
  border-color: rgba(50,50,50,.4) !important;
  box-shadow: none !important;
}

#nav-bar[iconsize=large] #back-button:not(:active):not([open="true"]),
#nav-bar[iconsize=large] #back-button[disabled="true"] {
  -moz-border-end-color: rgba(0,0,0,.10) !important;
}
#nav-bar[iconsize=large] #forward-button:not(:active):not([open="true"]),
#nav-bar[iconsize=large] #forward-button[disabled="true"] {
  -moz-border-start-color: rgba(0,0,0,.10) !important;
}

#FindToolbar :-moz-any(.findbar-find-previous, .findbar-find-next)[disabled="true"] {
  border-color: rgba(0,0,0,.25) !important;
  -moz-border-start-color: rgba(0,0,0,.08) !important;
}
#FindToolbar .findbar-find-previous[disabled="true"] {
  -moz-border-end-color: rgba(0,0,0,.08) !important;
}

#nav-bar > toolbarbutton > .toolbarbutton-menubutton-button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#nav-bar > toolbarbutton[disabled="true"],
#nav-bar :-moz-any(#back-button, #forward-button, #zoom-out-button, #zoom-in-button, #bookmarks-menu-button)[disabled="true"] {
  opacity: 1;
}

#nav-bar > toolbarbutton[disabled="true"] > .toolbarbutton-icon,
#nav-bar > toolbarbutton[disabled="true"] > .toolbarbutton-menu-dropmarker,
#nav-bar :-moz-any(#back-button, #forward-button, #zoom-out-button, #zoom-in-button)[disabled="true"] > .toolbarbutton-icon {
  opacity: .5;
}

/* Code for connected buttons (back/forward, zoom).
   It's universal code (can be used for 3+ buttons in group). */
#nav-bar > :-moz-any(#unified-back-forward-button, #zoom-controls) > toolbarbutton:not(:first-of-type):not(:last-of-type) {
  border-radius: 0;
  -moz-margin-start: -1px !important;
  -moz-margin-end: 0 !important;
}

#nav-bar > :-moz-any(#unified-back-forward-button, #zoom-controls) > toolbarbutton:first-of-type {
  -moz-margin-end: 0 !important;
}
#nav-bar > :-moz-any(#unified-back-forward-button, #zoom-controls) > toolbarbutton:last-of-type {
  -moz-margin-start: -1px !important;
}

#nav-bar:-moz-locale-dir(ltr) > :-moz-any(#unified-back-forward-button, #zoom-controls) > toolbarbutton:first-of-type,
#nav-bar:-moz-locale-dir(rtl) > :-moz-any(#unified-back-forward-button, #zoom-controls) > toolbarbutton:last-of-type {
  border-radius: 3px 0px 0px 3px;
}
#nav-bar:-moz-locale-dir(ltr) > :-moz-any(#unified-back-forward-button, #zoom-controls) > toolbarbutton:last-of-type,
#nav-bar:-moz-locale-dir(rtl) > :-moz-any(#unified-back-forward-button, #zoom-controls) > toolbarbutton:first-of-type {
  border-radius: 0px 3px 3px 0px;
}

/* */
#nav-bar[customizing] :-moz-any(#back-button, #zoom-out-button) {
  -moz-margin-end: 0 !important;
}
#nav-bar[customizing] :-moz-any(#forward-button, #zoom-in-button) {
  -moz-margin-start: -1px !important;
}
#nav-bar[customizing]:-moz-locale-dir(ltr) #back-button,
#nav-bar[customizing]:-moz-locale-dir(rtl) #forward-button {
  border-radius: 3px 0px 0px 3px;
}
#nav-bar[customizing]:-moz-locale-dir(ltr) #forward-button,
#nav-bar[customizing]:-moz-locale-dir(rtl) #back-button {
  border-radius: 0px 3px 3px 0px;
}

/* 24px primary toolbar buttons */
/* FIXME: it's 16px in real */
#back-button {
  /*
  list-style-image: url(moz-icon://stock/go-previous-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-previous.svg);
}

#back-button:-moz-locale-dir(rtl) {
  /*
  list-style-image: url(moz-icon://stock/go-next-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-next.svg);
}

#back-button[disabled="true"] {
  opacity: .3;
}

#forward-button {
  /*
  list-style-image: url(moz-icon://stock/go-next-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-next.svg);
}

#forward-button:-moz-locale-dir(rtl) {
  /*
  list-style-image: url(moz-icon://stock/go-previous-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-previous.svg);
}

#forward-button[disabled] {
  opacity: .3;
}

#reload-button {
  /*
  list-style-image: url(moz-icon://stock/view-refresh-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/view-refresh.svg);
}

#reload-button[disabled="true"] {
  opacity: .3;
}

#stop-button {
  /*
  list-style-image: url(moz-icon://stock/process-stop-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/process-stop.svg);
}

#stop-button[disabled="true"] {
  opacity: .5;
}

#home-button {
  /*
  list-style-image: url(moz-icon://stock/user-home-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/user-home.svg);
}

#home-button[disabled="true"] {
  opacity: .5;
}

/* tabview button */

#tabview-button,
#menu_tabview {
  list-style-image: url(chrome://browser/skin/symbolic-icons/tabview.svg);
}

#tabview-button[groups="0"],
#menu_tabview[groups="0"] {
  list-style-image: url(chrome://browser/skin/symbolic-icons/tabview-0.svg);
}

#tabview-button[groups="1"],
#menu_tabview[groups="1"] {
  list-style-image: url(chrome://browser/skin/symbolic-icons/tabview-1.svg);
}

#tabview-button[groups="2"],
#menu_tabview[groups="2"] {
  list-style-image: url(chrome://browser/skin/symbolic-icons/tabview-2.svg);
}

#tabview-button[groups="3"],
#menu_tabview[groups="3"] {
  list-style-image: url(chrome://browser/skin/symbolic-icons/tabview-3.svg);
}

#tabs-closebutton {
  list-style-image: url(chrome://browser/skin/symbolic-icons/close.svg);
}
#tabs-closebutton > .toolbarbutton-icon {
  -moz-margin-end: 0;
}

#downloads-button {
  /*
  list-style-image: url(moz-icon://stock/folder-download-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/download.svg);
}

#history-button {
  /*
  list-style-image: url(moz-icon://stock/document-open-recent-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/document-open-recent.svg);
}

#bookmarks-button,
#bookmarks-menu-button,
#bookmarks-menu-button.bookmark-item {
  /*
  list-style-image: url(moz-icon://stock/user-bookmarks-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/user-bookmarks.svg);
}

#bookmarks-menu-button.toolbarbutton-1 {
  -moz-box-orient: horizontal;
}
#bookmarks-menu-button > .toolbarbutton-menu-dropmarker {
  display: block;
}

#print-button {
  /*
  list-style-image: url(moz-icon://stock/printer-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/printer.svg);
}
#print-button[disabled="true"] > .toolbarbutton-icon {
  opacity: .5;
}

#new-tab-button {
  /*
  list-style-image: url(moz-icon://stock/tab-new-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/tab-new.svg);
}

#new-window-button {
  list-style-image: url(chrome://browser/skin/symbolic-icons/new-window.svg);
}

#cut-button {
  /*
  list-style-image: url(moz-icon://stock/edit-cut-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/edit-cut.svg);
}
#cut-button[disabled="true"] > .toolbarbutton-icon {
  opacity: .5;
}

#copy-button {
  /*
  list-style-image: url(moz-icon://stock/edit-copy-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/edit-copy.svg);
}
#copy-button[disabled="true"] > .toolbarbutton-icon {
  opacity: .5;
}

#paste-button {
  /*
  list-style-image: url(moz-icon://stock/edit-paste-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/edit-paste.svg);
}
#paste-button[disabled="true"] > .toolbarbutton-icon {
  opacity: .5;
}

#fullscreen-button {
  /*
  list-style-image: url(moz-icon://stock/view-fullscreen-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/view-fullscreen.svg);
}

#zoom-out-button {
  /*
  list-style-image: url(moz-icon://stock/zoom-out-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/zoom-out.svg);
}

#zoom-in-button {
  /*
  list-style-image: url(moz-icon://stock/zoom-in-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/zoom-in.svg);
}

#sync-button {
  /*
  list-style-image: url(moz-icon://stock/emblem-synchronizing-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/emblem-synchronizing.svg);
}

/* Sync button (active) */
@-moz-keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
#sync-button[status="active"] > .toolbarbutton-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#azure);
  animation-name:             rotate;
  animation-duration:         2s;
  transition-timing-function: linear;
  animation-iteration-count:  infinite;
}

#feed-button {
  /*
  list-style-image: url(moz-icon://stock/application-rss+xml-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/rss.svg);
}
#feed-button[disabled="true"] > .toolbarbutton-icon {
  opacity: .3;
}

#webrtc-status-button {
  -moz-image-region: rect(0px 192px 24px 168px);
}

/* Filters */

:-moz-any(
  #back-button, #forward-button, #reload-button, #stop-button,
  #home-button, #downloads-button, #history-button, #print-button,
  #bookmarks-button, #bookmarks-menu-button, #bookmarks-menu-button.bookmark-item,
  #print-button, #cut-button, #copy-button, #paste-button,
  #fullscreen-button, #zoom-out-button, #zoom-in-button,
  #sync-button, #feed-button,
  #new-tab-button, .tabs-newtab-button, #new-window-button
):not([disabled="true"]):not([open="true"]):-moz-any(:active:hover, [checked="true"]) > .toolbarbutton-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#active);
}

/* 16px primary toolbar buttons */
toolbar[iconsize="small"] .toolbarbutton-1:not([type="menu-button"]) {
  -moz-box-orient: vertical;
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
}

/* Fullscreen window controls */
#window-controls {
  margin: -5px 0 !important;
  padding: 0 !important;
}
#nav-bar[iconsize="small"] #window-controls {
  margin: -6px 0 !important;
}

#close-button,
#restore-button {
  margin: 0;
  -moz-margin-start: 3px !important;
  -moz-margin-end: -4px !important;
  border-radius: 0;
  border-color: transparent !important;
  -moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAPCAYAAAAlH6X5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAeSURBVAiZY1i+evl/JgYGBgZyif8M/1cwMTExTQQA76IGUhW20HIAAAAASUVORK5CYII=") 0 0 0 1 fill / 0px 0px 0px 1px stretch !important;
  min-width: 42px !important;
  height: 38px;
}
#close-button:-moz-locale-dir(rtl),
#restore-button:-moz-locale-dir(rtl) {
  -moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAPCAYAAAAlH6X5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAeSURBVAiZY1i+evl/JgYGBgZyif8M/1cwMTExTQQA76IGUhW20HIAAAAASUVORK5CYII=") 0 1 0 0 fill / 0px 1px 0px 0px stretch !important;
}

#nav-bar:not([tabsontop="false"]) #close-button,
#nav-bar:not([tabsontop="false"]) #restore-button {
  border-image: none !important;
  -moz-border-start: 1px solid #a7aba7 !important;
}
#nav-bar[iconsize="small"] #close-button,
#nav-bar[iconsize="small"] #restore-button {
  -moz-margin-end: -3px !important;
}

#close-button > .toolbarbutton-icon,
#restore-button > .toolbarbutton-icon {
  opacity: 0.4;
}

#close-button:hover,
#restore-button:hover {
  background: transparent !important;
  box-shadow: none !important;
}
#close-button:hover > .toolbarbutton-icon,
#restore-button:hover > .toolbarbutton-icon {
  opacity: 1;
}

#close-button:hover:active,
#restore-button:hover:active {
  background: radial-gradient(rgba(255,255,255,0.8) 10%, rgba(255,255,255,0) 95%) !important;
  box-shadow: none !important;
}

#minimize-button {
  /*
  list-style-image: url(moz-icon://stock/window-minimize-symbolic?size=menu);
  */
  list-style-image: url(chrome://global/skin/icons/Minimize.gif);
  display: none;
}
#restore-button {
  /*
  list-style-image: url(moz-icon://stock/window-restore-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/window-restore.svg);
  display: block;
}
#close-button {
  /*
  list-style-image: url(moz-icon://stock/window-close-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/close.svg);
  display: none;
}

/* ::::: Location bar ::::: */

/* remove ugly white border around location and searchbars */
#urlbar, .searchbar-textbox {
 -moz-appearance: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
  border: 1px solid rgba(50,50,50,.4);
  border-radius: 3px;
  box-shadow: inset 0px 1px 2px 0px rgba(0,0,0,0.15), 0px 1px 0 0 rgba(255,255,255,0.37);
  color: #2e3436;
  overflow: hidden;
  transition-property: border, box-shadow;
  transition-duration: 200ms;
}
#nav-bar[iconsize=large] :-moz-any(#urlbar, .searchbar-textbox) {
  margin: 0px 3px;
  min-height: 28px;
}
#nav-bar[iconsize=small] :-moz-any(#urlbar, .searchbar-textbox) {
  margin: 0px 2px;
  min-height: 26px;
}

#urlbar[focused="true"], .searchbar-textbox[focused="true"] {
  border-color: #729fcf;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), inset 0 1px 2px 0 rgba(0,106,221,0.3);
}

.urlbar-textbox-container {
  -moz-appearance: none;
  -moz-box-align: stretch;
}

.urlbar-input-box {
  -moz-margin-start: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  min-width: 4em;
}

#urlbar-container {
  -moz-box-orient: horizontal;
  -moz-box-align: stretch;
}

/* ::::: Autohide forward button ::::: */

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button + #urlbar-container {
  -moz-padding-start: 28px;
  -moz-margin-start: -28px;
  position: relative;
  pointer-events: none;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons][iconsize=small], #nav-bar:not([currentset])[mode=icons][iconsize=small]) > #unified-back-forward-button + #urlbar-container {
  -moz-padding-start: 21px;
  -moz-margin-start: -21px;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button + #urlbar-container > #urlbar {
  pointer-events: all;
}

toolbar[iconsize="small"] #webrtc-status-button {
  -moz-image-region: rect(0px 128px 16px 112px);
}

/* Fullscreen window controls */
#window-controls {
  -moz-box-align: start;
  -moz-margin-start: 10px;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button:not([switchingtabs]) + #urlbar-container > #urlbar {
  transition: margin-left 200ms ease-out,
              margin-right 200ms ease-out;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar:-moz-locale-dir(ltr) {
  margin-left: -28px;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar:-moz-locale-dir(rtl) {
  margin-right: -28px;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons][iconsize=small], #nav-bar:not([currentset])[mode=icons][iconsize=small]) > #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar:-moz-locale-dir(ltr) {
  margin-left: -21px;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons][iconsize=small], #nav-bar:not([currentset])[mode=icons][iconsize=small]) > #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar:-moz-locale-dir(rtl) {
  margin-right: -21px;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button #forward-button {
  transition: opacity 200ms ease-in,
              visibility 200ms ease-out,
              color 200ms ease, 
              border 200ms ease, 
              box-shadow 200ms ease, 
              background 200ms ease;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button[forwarddisabled] #forward-button {
  transition: opacity 200ms ease-out,
              visibility 200ms ease-out;
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(0);
  visibility: hidden;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button #back-button {
  transition: box-shadow 0ms ease-in,
              color 200ms ease, 
              border 200ms ease, 
              box-shadow 200ms ease, 
              background 200ms ease;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons], #nav-bar:not([currentset])[mode=icons]) > #unified-back-forward-button[forwarddisabled] #back-button:not([open="true"]) {
  border-radius: 3px !important;
}

window:not([chromehidden~=toolbar]) :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"][mode=icons][iconsize=large], #nav-bar:not([currentset])[mode=icons][iconsize=large]) > #unified-back-forward-button[forwarddisabled] #back-button:not([open="true"]) {
  border-color: rgba(50,50,50,.4) !important;
}

#urlbar-icons {
  -moz-box-align: center;
}

.urlbar-icon {
  height: 22px;
  padding: 3px;
  min-width: 22px;
}
#nav-bar[iconsize=large] #urlbar .urlbar-icon {
  height: 26px;
  padding: 5px;
  min-width: 26px;
}
#nav-bar[iconsize=small] #urlbar .urlbar-icon {
  height: 24px;
  padding: 4px;
  min-width: 24px;
}

#urlbar-icons > :-moz-any(box, image, menupopup)[hidden="true"] {
  visibility: collapse;
}

#urlbar-search-splitter {
  -moz-appearance: none;
  -moz-margin-start: -3px;
  -moz-margin-end: -3px;
  width: 6px;
}

#urlbar-display-box {
  margin-top: -1px;
  margin-bottom: -1px;
  -moz-border-end: 1px solid #AAA;
  -moz-margin-end: 3px;
}

#urlbar-display {
  margin-top: 0;
  margin-bottom: 0;
  -moz-margin-start: 0;
  color: GrayText;
}

/* ::::: Favicon ::::: */
/* It don't contain favicon now. */
#page-proxy-favicon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
  -moz-margin-start: 4px;
  -moz-margin-end: 3px;
  list-style-image: url(chrome://browser/skin/symbolic-icons/identity-icons-generic.svg);
  opacity: 0.35;
}

.verifiedDomain #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://browser/skin/symbolic-icons/identity-icons-https.svg);
}

.verifiedIdentity #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://browser/skin/symbolic-icons/identity-icons-https-ev.svg);
  opacity: 0.6;
}

.mixedActiveContent > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://browser/skin/symbolic-icons/identity-icons-https-mixed-active.svg);
  opacity: 0.6;
}

#identity-box:hover #page-proxy-favicon,
#identity-box:active #page-proxy-favicon,
#identity-box[open="true"] #page-proxy-favicon {
  opacity: 1;
}

#page-proxy-favicon[pageproxystate="invalid"] {
  opacity: 0.3;
}

/* ::::: Identity indicator ::::: */
#identity-box {
  padding: 1px;
  margin: 0;
  font-size: .9em;
  min-width: 22px;
}
#nav-bar[iconsize=large] #identity-box {
  min-width: 26px;
}
#nav-bar[iconsize=small] #identity-box {
  min-width: 24px;
}

#identity-box:-moz-focusring {
  outline: 1px dotted #000;
  outline-offset: -3px;
}

#identity-icon-labels {
  -moz-padding-start: 2px;
  -moz-padding-end: 5px;
}

#identity-box:hover:active,
#identity-box[open="true"] {
  background: linear-gradient(to bottom, #d1d1d1, #fff);
  box-shadow: inset 0 1px 1px 0 rgba(0,0,0,0.15);
}

#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
  background: rgba(115, 210, 22, 0.15);
  border-right: 1px solid rgba(115, 210, 22, 0.25);
  color: #00aa00;
  -moz-margin-end: 3px;
}

#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:hover:active,
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity[open="true"] {
  background: linear-gradient(to bottom, rgba(115, 210, 22, 0.25), rgba(115, 210, 22, 0.05));
}

/* ::::: Identity popup icons ::::: */
#identity-popup-icon {
  height: 64px;
  width: 64px;
  padding: 0;
  list-style-image: url("chrome://browser/skin/identity.png");
  -moz-image-region: rect(0px, 64px, 64px, 0px);
}

#identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon {
  -moz-image-region: rect(64px, 64px, 128px, 0px);
}

#identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon {
  -moz-image-region: rect(128px, 64px, 192px, 0px);
}

/* ::::: Identity popup body text ::::: */
.identity-popup-description {
  white-space: pre-wrap;
  -moz-padding-start: 15px;
  margin: 2px 0 4px;
}

.identity-popup-label {
  white-space: pre-wrap;
  -moz-padding-start: 15px;
  margin: 0;
}

#identity-popup-content-host,
#identity-popup-content-owner {
  font-weight: bold;
  max-width: 300px;
}

#identity-popup-content-host,
#identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
  font-size: 140%;
}

#identity-popup-content-owner {
  margin-bottom: 0 !important;
}

#identity-popup-content-verifier {
  margin: 4px 0 2px;
}

#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption,
#identity-popup-content-box.verifiedDomain > #identity-popup-encryption {
  margin-top: 10px;
  -moz-margin-start: -18px;
}

#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon,
#identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
  list-style-image: url("chrome://browser/skin/symbolic-icons/secure.svg");
}

/* Identity popup bounding box */
#identity-popup-container {
  min-width: 280px;
}

/* Notification popup */
#notification-popup {
  min-width: 280px;
}

.popup-notification-icon {
  width: 64px;
  height: 64px;
  -moz-margin-end: 10px;
}

.popup-notification-icon[popupid="geolocation"] {
  list-style-image: url(chrome://browser/skin/Geolocation-64.png);
}

.popup-notification-icon[popupid="xpinstall-disabled"],
.popup-notification-icon[popupid="addon-progress"],
.popup-notification-icon[popupid="addon-install-cancelled"],
.popup-notification-icon[popupid="addon-install-blocked"],
.popup-notification-icon[popupid="addon-install-failed"],
.popup-notification-icon[popupid="addon-install-complete"] {
  list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric.png);
  width: 32px;
  height: 32px;
}

.popup-notification-icon[popupid="click-to-play-plugins"] {
  list-style-image: url(chrome://mozapps/skin/plugins/pluginBlocked-64.png);
}

.popup-notification-icon[popupid="plugins-not-found"] {
  list-style-image: url(chrome://browser/skin/pluginInstall-64.png);
}

.popup-notification-icon[popupid="web-notifications"] {
  list-style-image: url(chrome://browser/skin/notification-64.png);
}

.addon-progress-description {
  width: 350px;
  max-width: 350px;
}

.popup-progress-label,
.popup-progress-meter {
  -moz-margin-start: 0;
  -moz-margin-end: 0;
}

.popup-progress-cancel {
  -moz-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  -moz-margin-start: 5px;
  min-height: 0;
  min-width: 0;
  list-style-image: url("moz-icon://stock/gtk-cancel?size=menu");
}

.popup-notification-icon[popupid="indexedDB-permissions-prompt"],
.popup-notification-icon[popupid="indexedDB-quota-prompt"],
.popup-notification-icon[popupid*="offline-app-requested"],
.popup-notification-icon[popupid="offline-app-usage"] {
  list-style-image: url(chrome://global/skin/icons/question-64.png);
}

.popup-notification-icon[popupid="password-save"],
.popup-notification-icon[popupid="password-change"] {
  list-style-image: url(chrome://mozapps/skin/passwordmgr/key-64.png);
}

.popup-notification-icon[popupid="webapps-install"] {
  list-style-image: url(chrome://browser/skin/webapps-64.png);
}

.popup-notification-icon[popupid="mixed-content-blocked"] {
  list-style-image: url(chrome://browser/skin/mixed-content-blocked-64.png);
}

.popup-notification-icon[popupid="webRTC-sharingDevices"],
.popup-notification-icon[popupid="webRTC-shareDevices"] {
  list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64.png);
}

.popup-notification-icon[popupid="pointerLock"] {
  list-style-image: url(chrome://browser/skin/pointerLock-64.png);
}

/* Notification icon box */
#notification-popup-box {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  padding-left: 4px;
  border-radius: 2.5px 0 0 2.5px;
  border-width: 0 8px 0 0;
  border-style: solid;
  border-color: #fff;
  border-image: url("chrome://browser/skin/urlbar-arrow.png") 0 8 0 0 fill;
  -moz-margin-end: -8px;
/*  margin-top: -1px;*/
/*  margin-bottom: -1px;*/
}

#notification-popup-box:not([hidden]) + #identity-box {
  -moz-padding-start: 10px;
  border-radius: 0;
}

#notification-popup-box:-moz-locale-dir(rtl),
.notification-anchor-icon:-moz-locale-dir(rtl) {
  transform: scaleX(-1);
}

.notification-anchor-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  margin: 0 2px;
}

.notification-anchor-icon:-moz-focusring {
  outline: 1px dotted -moz-DialogText;
}

.default-notification-icon,
#default-notification-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/information.svg);
}

.identity-notification-icon,
#identity-notification-icon {
  list-style-image: url(chrome://mozapps/skin/profile/profileicon.png);
}

.geo-notification-icon,
#geo-notification-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/geolocation.svg);
}

#addons-notification-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/addon.svg);
}

.indexedDB-notification-icon,
#indexedDB-notification-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/question.svg);
}

#password-notification-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/key.svg);
}

#webapps-notification-icon {
  /** FIXME **/
  /*
  list-style-image: url(chrome://browser/skin/webapps-16.png);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/plugin.svg);
}

#plugins-notification-icon {
  /*
  list-style-image: url(chrome://browser/skin/notification-pluginNormal.png);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/plugin.svg);
}

#alert-plugins-notification-icon {
  /* FIXME */
  list-style-image: url(chrome://browser/skin/notification-pluginAlert.png);
}

#blocked-plugins-notification-icon {
  /* FIXME */
  list-style-image: url(chrome://browser/skin/notification-pluginBlocked.png);
}

#alert-plugins-notification-icon,
#blocked-plugins-notification-icon {
  -moz-image-region: rect(0, 16px, 16px, 0);
}

#alert-plugins-notification-icon:hover,
#blocked-plugins-notification-icon:hover {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

#alert-plugins-notification-icon:active,
#blocked-plugins-notification-icon:active {
  -moz-image-region: rect(0, 48px, 16px, 32px);
}

#plugin-install-notification-icon {
  list-style-image: url(chrome://browser/skin/pluginInstall-16.png);
}

#notification-popup-box[hidden] {
  /* Override display:none to make the pluginBlockedNotification animation work
     when showing the notification repeatedly. */
  display: -moz-box;
  visibility: collapse;
}

#blocked-plugins-notification-icon[showing] {
  animation: pluginBlockedNotification 500ms ease 0s 5 alternate both;
}

@keyframes pluginBlockedNotification {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mixed-content-blocked-notification-icon,
#mixed-content-blocked-notification-icon {
  list-style-image: url(chrome://browser/skin/mixed-content-blocked-16.png);
}

.webRTC-shareDevices-notification-icon,
#webRTC-shareDevices-notification-icon {
  list-style-image: url(chrome://browser/skin/webRTC-shareDevice-16.png);
}

.webRTC-sharingDevices-notification-icon,
#webRTC-sharingDevices-notification-icon {
  list-style-image: url(chrome://browser/skin/webRTC-sharingDevice-16.png);
}

.web-notifications-notification-icon,
#web-notifications-notification-icon {
  list-style-image: url(chrome://browser/skin/notification-16.png);
}

#pointerLock-notification-icon {
  list-style-image: url(chrome://browser/skin/pointerLock-16.png);
}
#pointerLock-cancel {
  margin: 0px;
}

#treecolAutoCompleteImage {
  max-width : 36px;
}

.ac-result-type-bookmark,
.autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
  list-style-image: url(chrome://browser/skin/symbolic-icons/user-bookmarks.svg);
  width: 16px;
  height: 16px;
}
richlistitem[selected="true"] .ac-result-type-bookmark,
richlistitem[selected="true"] .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#white);
}

.ac-result-type-keyword,
.autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) {
  list-style-image: url(chrome://browser/skin/symbolic-icons/edit-find.svg);
  width: 16px;
  height: 16px;
}
richlistitem[selected="true"] .ac-result-type-keyword,
richlistitem[selected="true"] .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#white);
}

.ac-result-type-tag,
.autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
  list-style-image: url(chrome://browser/skin/symbolic-icons/tag.svg);
  width: 16px;
  height: 16px;
}
richlistitem[selected="true"] .ac-result-type-tag,
richlistitem[selected="true"] .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#white);
}

.ac-comment {
  font-size: 1.05em;
}

.ac-extra > .ac-comment {
  font-size: inherit;
}

/** Color for URL bar, from Evandro (efg) on #gnome-design **/
.ac-url-text,
.ac-action-text {
  font-size: 90%;
  color: gray;
}

richlistitem {
  /*
  color: -moz-nativehyperlinktext;
  font-size: 0.9em;
  */
}

richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
  list-style-image: url(chrome://browser/skin/symbolic-icons/actionicon-tab.svg);
  padding: 0 3px;

}
richlistitem[selected="true"][type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#white);
}

.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
  color: GrayText;
}

.ac-comment[selected="true"],
.ac-url-text[selected="true"],
.ac-action-text[selected="true"] {
  color: #ffffff !important;
}

.autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
.autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
  color: GrayText;
  font-size: smaller;
}

.autocomplete-treebody::-moz-tree-cell(suggesthint) {
  border-top: 1px solid GrayText;
}

/* ::::: Combined go/reload/stop button in location bar ::::: */

#urlbar > toolbarbutton,
#urlbar-icons > :-moz-any(box, image, menupopup), /* It need for extensions */
#urlbar .urlbar-history-dropmarker {
  -moz-appearance: none;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 3px;
  min-height: 22px;
  min-width: 22px;
}
#nav-bar[iconsize=large] #urlbar > toolbarbutton,
#nav-bar[iconsize=large] #urlbar-icons > :-moz-any(box, image, menupopup),
#nav-bar[iconsize=large] #urlbar .urlbar-history-dropmarker {
  min-height: 26px;
  padding: 5px;
  min-width: 26px;
}
#nav-bar[iconsize=small] #urlbar > toolbarbutton,
#nav-bar[iconsize=small] #urlbar-icons > :-moz-any(box, image, menupopup),
#nav-bar[iconsize=small] #urlbar .urlbar-history-dropmarker {
  min-height: 24px;
  padding: 4px;
  min-width: 24px;
}

#urlbar > toolbarbutton:hover,
#urlbar-icons > :-moz-any(box, image, menupopup):hover {
  background: transparent !important;
}

#urlbar > toolbarbutton:not([disabled="true"]):active {
  background: linear-gradient(to bottom, #d1d1d1, #fff) !important;
  box-shadow: inset 0 1px 1px 0 rgba(0,0,0,0.15) !important;
}

#go-button,
#urlbar-go-button {
  /*
  list-style-image: url(moz-icon://stock/go-next-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-next.svg);
}

#go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
#urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#urlbar-reload-button {
  /*
  list-style-image: url(moz-icon://stock/view-refresh-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/view-refresh.svg);
}

#urlbar-stop-button {
  /*
  list-style-image: url(moz-icon://stock/process-stop-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/process-stop.svg);
}

.urlbar-history-dropmarker {
  -moz-box-align: center;
  /*
  list-style-image: url(moz-icon://stock/go-down-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-down.svg);
}

#urlbar-go-button,
#urlbar-stop-button,
#urlbar-reload-button,
.urlbar-history-dropmarker,
#star-button {
  opacity: .35;
}

/* social share panel */

.social-share-frame {
  background: linear-gradient(to bottom, rgba(242,242,242,.99), rgba(242,242,242,.95));
  border-left: 1px solid #f8f8f8;
  width: 330px;
  height: 150px;
  /* we resize our panels dynamically, make it look nice */
  transition: height 100ms ease-out, width 100ms ease-out;
}

#social-share-button {
  list-style-image: url("chrome://browser/skin/social/share-button.png");
}

#social-share-button[open],
#social-share-button:hover:active {
  list-style-image: url("chrome://browser/skin/social/share-button-active.png");
}

.social-share-toolbar {
  border-right: 1px solid #dedede;
  background: linear-gradient(to bottom, rgba(247,247,247,.99), rgba(247,247,247,.95));
}

#social-share-provider-buttons {
  border-right: 1px solid #fbfbfb;
  padding: 6px;
}

#social-share-provider-buttons > .share-provider-button {
  padding: 6px;
  margin: 0;
  border: none;
  border-radius: 2px;
}

#social-share-provider-buttons > .share-provider-button[checked],
#social-share-provider-buttons > .share-provider-button:active {
  padding: 5px;
  border: 1px solid #b5b5b8;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2);
}

#social-share-provider-buttons > .share-provider-button[checked] {
  background: linear-gradient(to bottom, #d9d9d9, #e3e3e3);
}

#social-share-provider-buttons > .share-provider-button > .toolbarbutton-text {
  display: none;
}
#social-share-provider-buttons > .share-provider-button > .toolbarbutton-icon {
  width: 16px;
  min-height: 16px;
  max-height: 16px;
}

/* social recommending panel */

#social-mark-button {
  -moz-image-region: rect(0, 16px, 16px, 0);
}

/* Star button */
#star-button {
  /*
  list-style-image: url(moz-icon://stock/bookmark-new-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/bookmark-new.svg);
}

#star-button[starred="true"] {
  /*
  list-style-image: url(moz-icon://stock/user-bookmarks-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/user-bookmarks.svg);
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#input-field-yellow);
  opacity: 0.7;
}

/* Adjust opacity of the URL bar icons on hover */
#urlbar-go-button:hover,
#urlbar-reload-button:hover,
#urlbar-stop-button:hover,
#urlbar #star-button:hover,
.urlbar-history-dropmarker:hover,
.urlbar-history-dropmarker[open="true"] {
  opacity: 1;
}

/* Popup blocker button */
#page-report-button {
  list-style-image: url(chrome://browser/skin/symbolic-icons/info.svg);
  opacity: .5;
}

/* bookmarks menu-button */

#bookmarks-menu-button[disabled] > .toolbarbutton-icon,
#bookmarks-menu-button[disabled] > .toolbarbutton-menu-dropmarker,
#bookmarks-menu-button[disabled] > .toolbarbutton-menubutton-dropmarker,
#bookmarks-menu-button[disabled] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#bookmarks-menu-button > .toolbarbutton-menubutton-button[disabled] > .toolbarbutton-icon {
  opacity: .4;
}

/* Bookmarking panel */
#editBookmarkPanelStarIcon {
  list-style-image: url("chrome://browser/skin/places/starred48.png");
  width: 48px;
  height: 48px;
}

#editBookmarkPanelStarIcon[unstarred] {
  list-style-image: url("chrome://browser/skin/places/unstarred48.png");
}

#editBookmarkPanelTitle {
  font-size: 130%;
}

#editBookmarkPanelHeader,
#editBookmarkPanelContent {
  margin-bottom: .5em;
}

/* Implements editBookmarkPanel resizing on folderTree un-collapse. */
#editBMPanel_folderTree {
  min-width: 27em;
}

.panel-promo-box {
  margin: 8px -10px -10px -10px;
  padding: 8px 10px;
  border-top: 1px solid ThreeDShadow;
  background-image: linear-gradient(hsla(0,0%,0%,.15), hsla(0,0%,0%,.08) 6px);
}

.panel-promo-icon {
  list-style-image: url("chrome://browser/skin/sync-notification-24.png");
  -moz-margin-end: 10px;
  vertical-align: middle;
}

.panel-promo-closebutton {
  list-style-image: url(chrome://browser/skin/tabbrowser/close-normal.png);
  margin-top: 0;
  margin-bottom: 0;
}

.panel-promo-closebutton > .toolbarbutton-text {
  padding: 0;
  margin: 0;
}

/* Sidebar */
#sidebar {
  background-color: Window;
  padding-bottom: 3px;
}

#sidebar-splitter {
  -moz-appearance: none;
  border-right: 1px solid #a7aba7;
  min-width: 4px !important;
  width: 4px !important;
}

#sidebar-box {
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
}

#sidebar-header {
  font-weight: bold;
  color: #2e3436;
  padding: 10px 11px 10px 17px;
  margin: 0;
}

#sidebar-title, #sidebar-throbber {
  padding: 0;
  margin: 0;
}

#sidebar-header > .tabs-closebutton {
  -moz-appearance: none;
  list-style-image: url(chrome://browser/skin/symbolic-icons/close.svg);
  margin-bottom: 0px !important;
  padding: 2px;

  /* FIXME */
  border: 1px solid transparent;
  border-radius: 3px;
  transition-property: border, box-shadow, background;
  transition-duration: 200ms;
}

/* FIXME */
#sidebar-header > .tabs-closebutton:hover {
  background-image: linear-gradient(to bottom, #ffffff, #ebebeb);
  border-color: rgba(50,50,50,.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.37);
}

/* FIXME */
#sidebar-header > .tabs-closebutton:active:hover {
  background-image: linear-gradient(to bottom, #c9c9c9, #e4e4e4);
  border-color: rgba(50,50,50,.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.37);
}

#sidebar-header > .tabs-closebutton > .toolbarbutton-icon {
  min-height: 16px;
  min-width: 16px;
}

#sidebar-throbber[loading="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
  -moz-margin-end: 4px;
}

/* Throbber */
#navigator-throbber {
  width: 16px;
  min-height: 16px;
  margin: 0 3px;
}

#navigator-throbber[busy="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
}

#navigator-throbber,
#wrapper-navigator-throbber > #navigator-throbber {
  list-style-image: url("chrome://global/skin/icons/notloading_16.png");
}

/* Tabstrip */

#TabsToolbar {
  -moz-appearance: none;
  min-height: 0;
  margin-bottom: -1px;
/*  padding: 0 0 0 3px;*/
  padding: 0 3px;
  box-shadow: 0 -1px 0 #a7a7a7 inset;
}

#TabsToolbar[tabsontop="false"] {
  margin-top: 4px; /* margin between tabs and browser bar */
  /* Line underneath tabs on tabs-on-bottom mode */
  border-bottom: 3px solid white !important;
  -moz-border-bottom-colors: #a7a7a7 #fff #fff;
}

#nav-bar[iconsize=small] ~ #TabsToolbar[tabsontop="false"] {
  margin-top: 2px; /* margin between tabs and browser bar */
}

/* Tabstrip buttons */
#TabsToolbar toolbarbutton {
  margin-bottom: 2px;
}

#TabsToolbar > toolbarbutton toolbarbutton {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

* + .tabbrowser-tabs {
  -moz-padding-start: 2px;
}

/* put some space between the newtab-button and regular tabs and align it vetically with the close button*/
.tabs-newtab-button {
  margin-top: 2px;
}

.tabbrowser-tab {
  -moz-appearance: none;
  background: transparent;
  border: none;
/*  color: inherit;*/
  color: #2e3436;
  margin: 0;
  padding: 0;

  /* Uncomment it for test transition property */
  /*  transition-duration: 30s !important;*/
}

.tabbrowser-tab > .tab-stack {
  margin: 0;
  -moz-margin-start: -9px;
  padding: 6px 11px 4px 11px;
}

.tabbrowser-tab:first-of-type > .tab-stack {
  -moz-margin-start: 0;
}

/* I Love Firefox! */
.tabbrowser-tab[hidden="true"] + .tabbrowser-tab:not([hidden="true"]) > .tab-stack {
  -moz-margin-start: 0;
}

.tabbrowser-tabs:not([overflow]) > .tabbrowser-tab:not([hidden="true"]) ~ .tabbrowser-tab[hidden="true"] + .tabbrowser-tab:not([hidden="true"]) > .tab-stack,
.tabbrowser-tabs[overflow] > .tabbrowser-tab:not([hidden="true"]):not([pinned]) ~ .tabbrowser-tab[hidden="true"] + .tabbrowser-tab:not([hidden="true"]) > .tab-stack {
  -moz-margin-start: -9px;
}

.tabbrowser-tabs[overflow] > .tabbrowser-tab[pinned] + .tabbrowser-tab:not([pinned]) > .tab-stack {
  -moz-margin-start: 0;
}

.tabbrowser-tab:not([pinned]):not([fadein]) > .tab-stack .tab-label,
.tabbrowser-tab:not([pinned]):not([fadein]) > .tab-stack .tab-icon-image {
  display: inherit !important;
  visibility: hidden;
  width: 0;
}

#main-window .tabbrowser-tab:not([selected="true"]) > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch;
}

#main-window .tabbrowser-tab[selected="true"] > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab-selected.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch;
}

/* All the tabs after the selected tab (hack) */
.tabbrowser-tabs:not([movingtab]) > .tabbrowser-tab[selected="true"] ~ .tabbrowser-tab > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab-right.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch !important;
}

/* All the tabs after the selected tab (hack)
   (image mirrored for RTL locales) */
.tabbrowser-tabs:not([movingtab]) > .tabbrowser-tab[selected="true"] ~ .tabbrowser-tab:-moz-locale-dir(rtl) > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab-right-rtl.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch !important;
}

.tabbrowser-tabs[overflow] > .tabbrowser-tab[pinned] + .tabbrowser-tab:not([pinned]):not([selected="true"]) > .tab-stack,
.tabbrowser-tabs[overflow] > .tabbrowser-tab[pinned] ~ .tabbrowser-tab[hidden="true"] + .tabbrowser-tab:not([hidden="true"]):not([selected="true"]) > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch !important;
}

/* Updated tabs (in the background) */
.tabbrowser-tab[titlechanged]:not([selected="true"]) > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab-new.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch !important;
}

/* All the updated tabs after the selected tab (hack) */
.tabbrowser-tabs:not([movingtab]) > .tabbrowser-tab[selected="true"] ~ .tabbrowser-tab[titlechanged] > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab-new-right.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch !important;
}

/* All the updated tabs after the selected tab (hack)
   (image mirrored for RTL locales) */
.tabbrowser-tabs:not([movingtab]) > .tabbrowser-tab[selected="true"] ~ .tabbrowser-tab[titlechanged]:-moz-locale-dir(rtl) > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab-new-right-rtl.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch !important;
}

.tabbrowser-tabs[overflow] > .tabbrowser-tab[pinned] + .tabbrowser-tab:not([pinned])[titlechanged] > .tab-stack,
.tabbrowser-tabs[overflow] > .tabbrowser-tab[pinned] ~ .tabbrowser-tab[hidden="true"] + .tabbrowser-tab:not([hidden="true"])[titlechanged] > .tab-stack {
  -moz-border-image: url(tabbrowser/adwaita-tab-new.png) 7 8 1 8 fill / 7px 8px 1px 8px stretch !important;
}

.tabbrowser-tab[pinned] > .tab-stack {
  padding-left: 13px;
  padding-right: 13px;
}

.tab-label {
}

.tab-throbber,
.tab-icon-image {
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  margin: 1px 0;
  -moz-margin-start: -1px;
  -moz-margin-end: 3px;
  list-style-image: url(chrome://mozapps/skin/places/defaultFavicon.png);
}

.tab-throbber {
  list-style-image: url(chrome://browser/skin/tabbrowser/connecting.png);
}

.tab-throbber[progress] {
  list-style-image: url(chrome://browser/skin/tabbrowser/loading.png);
}

.tab-throbber[pinned],
.tab-icon-image[pinned],
.tabs-newtab-button > .toolbarbutton-icon {
  -moz-margin-start: 0px;
  -moz-margin-end: 0px;
}

#context_reloadTab {
  list-style-image: url("moz-icon://stock/gtk-refresh?size=menu");
}

#context_closeOtherTabs {
  list-style-image: url("moz-icon://stock/gtk-clear?size=menu");
}

#context_closeOtherTabs[disabled] {
  list-style-image: url("moz-icon://stock/gtk-clear?size=menu&state=disabled");
}

#context_undoCloseTab {
  list-style-image: url("moz-icon://stock/gtk-undelete?size=menu");
}

#context_closeTab {
  list-style-image: url("moz-icon://stock/gtk-close?size=menu");
}

/* Tab drag and drop */
.tab-drop-indicator {
  list-style-image: url(chrome://browser/skin/tabbrowser/tabDragIndicator.png);
  margin-bottom: -11px;
  -moz-padding-end: 9px;
}

/* In-tab close button */
.tab-close-button > .toolbarbutton-icon {
  /* XXX Buttons have padding in widget/ that we don't want here but can't override with good CSS, so we must
     use evil CSS to give the impression of smaller content */
/*  margin: -2px;*/
}

#TabsToolbar .tab-close-button {
  list-style-image: url(chrome://browser/skin/tabbrowser/close-normal.png);
  margin: 1px 0;
  -moz-margin-end: -3px;
  padding: 3px;
  border-radius: 3px;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
#TabsToolbar .tab-close-button:hover {
  list-style-image: url(chrome://browser/skin/tabbrowser/close-hover.png);
  background: none !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: none !important;
}
#TabsToolbar .tab-close-button:active:hover {
  list-style-image: url(chrome://browser/skin/tabbrowser/close-active.png);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.13) 1px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.07) 100%) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  border-top-color: rgba(0, 0, 0, 0.27) !important;
  box-shadow: none !important;
}

/* Tabstrip new tab button */
#TabsToolbar .tabs-newtab-button,
#TabsToolbar > #new-tab-button,
#TabsToolbar > #wrapper-new-tab-button > #new-tab-button {
  /*
  list-style-image: url(moz-icon://stock/list-add-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/list-add.svg);
  -moz-image-region: auto;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  opacity: .7;
}

#TabsToolbar .tabs-newtab-button:hover,
#TabsToolbar > #new-tab-button:hover,
#TabsToolbar > #wrapper-new-tab-button > #new-tab-button:hover {
  opacity: .9;
}

#TabsToolbar .tabs-newtab-button:active:hover,
#TabsToolbar > #new-tab-button:active:hover,
#TabsToolbar > #wrapper-new-tab-button > #new-tab-button:active:hover {
  opacity: 1;
}

#TabsToolbar .tabs-newtab-button:active:hover > .toolbarbutton-icon,
#TabsToolbar > #new-tab-button:active:hover > .toolbarbutton-icon,
#TabsToolbar > #wrapper-new-tab-button > #new-tab-button:active:hover > .toolbarbutton-icon {
  filter: none;
}

/* Tabbrowser arrowscrollbox arrows */

#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-up,
#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-down {
  -moz-appearance: none;
  margin: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-up > .toolbarbutton-icon,
#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-down > .toolbarbutton-icon {
  opacity: .7;
}

#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-up:hover > .toolbarbutton-icon,
#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-down:hover > .toolbarbutton-icon {
  opacity: .9;
}

#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-up:active:hover > .toolbarbutton-icon,
#TabsToolbar .tabbrowser-arrowscrollbox > .scrollbutton-down:active:hover > .toolbarbutton-icon {
  opacity: 1;
}

.tabbrowser-arrowscrollbox > .scrollbutton-up {
  -moz-border-start: 0 !important; /* FIXME */
  -moz-border-end: 2px solid transparent !important; /* FIXME */
}

.tabbrowser-arrowscrollbox > .scrollbutton-down {
  -moz-border-start: 2px solid transparent !important; /* FIXME */
  -moz-border-end: 0 !important; /* FIXME */
  transition: 1s box-shadow ease-out;
  border-radius: 4px;
}

.tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
  box-shadow: 0 0 5px 5px Highlight inset !important;
  transition: none;
}

.tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):-moz-locale-dir(ltr),
.tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):-moz-locale-dir(rtl) {
  border-width: 0 2px 0 0;
  border-style: solid;
  border-image: url("chrome://browser/skin/tabbrowser/tab-overflow-border.png") 0 2 0 2 fill !important; /* FIXME */
}

.tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):-moz-locale-dir(ltr),
.tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):-moz-locale-dir(rtl) {
  border-width: 0 0 0 2px;
  border-style: solid;
  border-image: url("chrome://browser/skin/tabbrowser/tab-overflow-border.png") 0 2 0 2 fill !important; /* FIXME */
}

/*
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-icon,
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  margin-top: -2px;
  margin-bottom: -2px;
}
*/

/* All tabs button */

#alltabs-button > .toolbarbutton-icon {
  /*
  list-style-image: url(moz-icon://stock/view-more-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/view-more.svg);
}
#alltabs-button[type="menu"] > .toolbarbutton-icon {
  /*
  list-style-image: url(moz-icon://stock/go-down-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/go-down.svg);
}

#TabsToolbar #new-tab-button + #alltabs-button:not([open="true"]) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  opacity: .7;
}

#TabsToolbar #new-tab-button + #alltabs-button:hover {
  opacity: .9;
}

#TabsToolbar #new-tab-button + #alltabs-button:active:hover {
  opacity: 1;
}

/* All tabs menupopup */
.alltabs-item > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

.alltabs-item[selected="true"] {
  font-weight: bold;
}

.alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
}

.alltabs-item[tabIsVisible] {
  /* box-shadow instead of background-color to work around native styling */
  box-shadow: inset -5px 0 ThreeDShadow;
}

toolbarbutton.chevron {
  list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
}

toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

toolbarbutton.chevron > .toolbarbutton-text,
toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
  display: none;
}

toolbarbutton.chevron > .toolbarbutton-icon {
  margin: 0;
}

toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
  display: -moz-box; /* display chevron icon in text mode */
}

/* Ctrl-Tab */

.ctrlTab-preview {
  -moz-appearance: toolbarbutton;
}

.tabPreview-canvas {
  box-shadow: 0 0 5px ThreeDShadow;
}

.ctrlTab-preview:focus .tabPreview-canvas,
.ctrlTab-preview:hover .tabPreview-canvas {
  box-shadow: none;
}

.ctrlTab-favicon[src] {
  background-color: white;
  width: 20px;
  height: 20px;
  padding: 2px;
}

#ctrlTab-panel {
  padding: 10px;
}

.ctrlTab-preview:not(#ctrlTab-showAll) .tabPreview-canvas {
  margin-bottom: 2px;
}

#ctrlTab-showAll {
  -moz-appearance: button;
  color: ButtonText;
  padding: 0 3px;
  margin-top: 10px;
}

/* Application button menu */

#appmenu-toolbar-button {
  list-style-image: url(chrome://browser/skin/symbolic-icons/icecat.png);
}
#appmenu-toolbar-button:not(:hover):not([open]) {
  color: #2e3436;
}
#appmenu-toolbar-button > .toolbarbutton-text {
  margin-top: -2px !important;
  margin-bottom: -2px !important;
}
#appmenu-toolbar-button > .toolbarbutton-menu-dropmarker {
  display: none;
}

.splitmenu-menuitem {
  -moz-margin-end: 1px;
}

#appmenuSecondaryPane {
  -moz-border-start: 1px solid #ebebeb;
}
#appmenuSecondaryPane-spacer {
  min-height: 1em;
}

#appmenu-cut,
#appmenu-editmenu-cut {
  /*
  list-style-image: url(moz-icon://stock/edit-cut-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/edit-cut.svg);
}
#appmenu-copy,
#appmenu-editmenu-copy {
  /*
  list-style-image: url(moz-icon://stock/edit-copy-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/edit-copy.svg);
}
#appmenu-paste,
#appmenu-editmenu-paste {
  /*
  list-style-image: url(moz-icon://stock/edit-paste-symbolic?size=menu);
  */
  list-style-image: url(chrome://browser/skin/symbolic-icons/edit-paste.svg);
}

#appmenu-cut:not([disabled="true"]):active:hover > .toolbarbutton-icon,
#appmenu-copy:not([disabled="true"]):active:hover > .toolbarbutton-icon,
#appmenu-paste:not([disabled="true"]):active:hover > .toolbarbutton-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#active);
}

#appmenu-editmenu-cut {
  list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
}
#appmenu-editmenu-cut[disabled="true"] {
  list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled");
}
#appmenu-editmenu-copy {
  list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
}
#appmenu-editmenu-copy[disabled="true"] {
  list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled");
}
#appmenu-editmenu-paste {
  list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
}
#appmenu-editmenu-paste[disabled="true"] {
  list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled");
}

#wrapper-appmenu-toolbar-button,
.appmenu-edit-button[disabled="true"] > .toolbarbutton-icon {
  opacity: .3;
}

/* Add-on bar */

#addon-bar {
  -moz-appearance: none;
  padding: 0;
  min-height: 20px;
  border-top: 1px solid #a7aba7 !important;
}

#status-bar {
  -moz-appearance: none;
  background-color: transparent;
  border: none;
  min-height: 0;
  min-width: 0;
}

#addon-bar[customizing] > #status-bar {
  opacity: .5;
  background-image: -moz-repeating-linear-gradient(-45deg,
                                                   rgba(255,255,255,.3), rgba(255,255,255,.3) 5px,
                                                   rgba(0,0,0,.3) 5px, rgba(0,0,0,.3) 10px);
}

#status-bar > statusbarpanel {
  border-width: 0;
  -moz-appearance: none;
}

#addon-bar[iconsize="small"] #personal-bookmarks {
  min-height: 0;
}

/* Buttons on addon-bar */

#addon-bar toolbarbutton {
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

#addon-bar toolbarbutton:not([disabled="true"]):active:hover,
#addon-bar toolbarbutton[open="true"],
#addon-bar toolbarbutton[checked="true"] {
  border-color: #a7aba7 !important;
}

#addonbar-closebutton {
/*  list-style-image: url(chrome://browser/skin/tabbrowser/close-normal.png);*/
  list-style-image: url(chrome://browser/skin/symbolic-icons/close.svg);
}

#addonbar-closebutton > .toolbarbutton-icon {
  margin-top: -2px;
  margin-bottom: -2px;
}

/* Status panel */

.statuspanel-label {
  margin: 0;
  padding: 2px 4px;
  background: linear-gradient(to bottom, white, #ddd);
  border: 1px none #ccc;
  border-top-style: solid;
  color: #333;
  text-shadow: none;
}

.statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
.statuspanel-label:-moz-locale-dir(rtl)[mirror] {
  border-right-style: solid;
  border-top-right-radius: .3em;
  margin-right: 1em;
}

.statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
.statuspanel-label:-moz-locale-dir(ltr)[mirror] {
  border-left-style: solid;
  border-top-left-radius: .3em;
  margin-left: 1em;
}

/* Override the tab animations */
.tabbrowser-tab:not([pinned]) {
  max-width: 14em;
  transition: min-width 50ms ease-out,
    max-width 50ms ease-out,
    opacity 100ms ease-out 100ms
    /* hide the tab for the first 100ms of the max-width transition */;
}

.tabbrowser-tab:not([pinned]):not([fadein]) {
  transition: min-width 100ms ease-in,
    max-width 100ms ease-in,
    opacity 50ms ease-in 100ms
    /* hide the tab for the last 100ms of the max-width transition */;
}

/** Overrides for extensions **/
#fixer-menu-button > #appmenu-toolbar-button, #fixer-menu-button > #appmenu-button {
  border: none !important;
}

#full-screen-warning-message {
  background-color: hsl(0,0%,15%);
  color: white;
  border-radius: 8px;
  margin-top: 30px;
  padding: 30px 50px;
  box-shadow: 0 0 2px white;
}

#full-screen-warning-container[obscure-browser] {
  background-color: rgba(0,0,0,0.3);
}

.full-screen-description {
  font-size: 150%;
}

#full-screen-domain-text {
  font-size: 300%;
}

.full-screen-approval-button,
#full-screen-remember-decision {
  font-size: 120%;
}

/* Responsive Mode */

.browserContainer[responsivemode] {
  background: #222 url("chrome://browser/skin/devtools/responsive-background.png");
  padding: 0 20px 20px 20px;
}

.browserStack[responsivemode] {
  box-shadow: 0 0 7px black;
}

.devtools-responsiveui-toolbar {
  background: transparent;
  margin: 10px 0;
  padding: 0;
  box-shadow: none;
  border-bottom-width: 0;
}

.devtools-responsiveui-toolbar > menulist,
.devtools-responsiveui-toolbar > toolbarbutton {
  min-width: 22px;
  border-radius: 0;
}

.devtools-responsiveui-toolbar:-moz-locale-dir(ltr) > *:first-child,
.devtools-responsiveui-toolbar:-moz-locale-dir(rtl) > *:last-child {
  margin-left: 0;
}

.devtools-responsiveui-resizebar {
  width: 7px;
  height: 24px;
  cursor: ew-resize;
  transform: translate(12px, -12px);
  background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer.png");
}

.devtools-responsiveui-resizehandle {
  width: 16px;
  height: 16px;
  cursor: se-resize;
  transform: translate(12px, 12px);
  background-image: url("chrome://browser/skin/devtools/responsive-se-resizer.png");
}

/* Highlighter */

.highlighter-outline {
  box-shadow: 0 0 0 1px black;
  outline: 1px dashed white;
  outline-offset: -1px;
}

.highlighter-outline[locked]  {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
  outline-color: rgba(255,255,255,0.7);
}

/* Highlighter - Node Infobar */

.highlighter-nodeinfobar {
  color: hsl(200, 100%, 65%);
  border: 1px solid hsla(210, 19%, 63%, .5);
  border-radius: 3px;
  background: linear-gradient(to bottom, hsl(209, 18%, 30%), hsl(210, 24%, 16%)) no-repeat padding-box;
}

/* Highlighter - Node Infobar - text */

.highlighter-nodeinfobar-text {
  /* 100% - size of the buttons and margins */
  max-width: calc(100% - 2 * (26px + 6px));
  padding-bottom: 1px;
}

html|*.highlighter-nodeinfobar-tagname {
  color: white;
}

html|*.highlighter-nodeinfobar-id {
  color: hsl(90, 79%, 52%);
}

html|*.highlighter-nodeinfobar-pseudo-classes {
  color: hsl(20, 100%, 70%);
}

/* Highlighter - Node Infobar - buttons */

.highlighter-nodeinfobar-button {
  -moz-appearance: none;
  border: 0 solid hsla(210,8%,5%,.45);
  padding: 0;
  width: 26px;
  min-height: 26px;
  background-color: transparent;
}

.highlighter-nodeinfobar-inspectbutton {
  -moz-border-end-width: 1px;
  box-shadow: 1px 0 0 hsla(210,16%,76%,.15), -1px 0 0 hsla(210,16%,76%,.15) inset;
  -moz-margin-end: 6px;
  list-style-image: url("chrome://browser/skin/devtools/inspect-button.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}

.highlighter-nodeinfobar-inspectbutton:-moz-locale-dir(rtl) {
  box-shadow: -1px 0 0 hsla(210,16%,76%,.15), 1px 0 0 hsla(210,16%,76%,.15) inset;
}

.highlighter-nodeinfobar-inspectbutton:active:hover,
.highlighter-nodeinfobar-container:not([locked]) >  .highlighter-nodeinfobar >  .highlighter-nodeinfobar-inspectbutton {
  -moz-image-region: rect(0px 32px 16px 16px);
}

.highlighter-nodeinfobar-menu {
  -moz-border-start-width: 1px;
  box-shadow: -1px 0 0 hsla(210,16%,76%,.15), 1px 0 0 hsla(210,16%,76%,.15) inset;
  -moz-margin-start: 6px;
}

.highlighter-nodeinfobar-menu:-moz-locale-dir(rtl) {
  box-shadow: 1px 0 0 hsla(210,16%,76%,.15), -1px 0 0 hsla(210,16%,76%,.15) inset;
}

.highlighter-nodeinfobar-menu > .toolbarbutton-menu-dropmarker {
  -moz-appearance: none !important;
  list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
  -moz-box-align: center;
  display: block;
  -moz-margin-start: -1px;
}

/* Highlighter - Node Infobar - box & arrow */

.highlighter-nodeinfobar-arrow {
  width: 14px;
  height: 14px;
  -moz-margin-start: calc(50% - 7px);
  transform: rotate(-45deg);
  border: 1px solid transparent;
  background-clip: padding-box;
  background-repeat: no-repeat;
}

.highlighter-nodeinfobar-arrow-top {
  margin-bottom: -8px;
  margin-top: 8px;
  border-right-color: hsla(210, 19%, 63%, .5);
  border-top-color: hsla(210, 19%, 63%, .5);
  background-image: linear-gradient(to top right, transparent 50%, hsl(209, 18%, 30%) 50%);
}

.highlighter-nodeinfobar-arrow-bottom {
  margin-top: -8px;
  margin-bottom: 8px;
  border-left-color: hsla(210, 19%, 63%, .5);
  border-bottom-color: hsla(210, 19%, 63%, .5);
  background-image: linear-gradient(to bottom left, transparent 50%, hsl(210, 24%, 16%) 50%);
}

.highlighter-nodeinfobar-container[position="top"] > .highlighter-nodeinfobar,
.highlighter-nodeinfobar-container[position="overlap"] > .highlighter-nodeinfobar {
  box-shadow: 0 1px 0 hsla(0, 0%, 100%, .1) inset;
}

.highlighter-nodeinfobar-container[hide-arrow] > .highlighter-nodeinfobar {
  margin: 7px 0;
}

/* Developer toolbar */

#developer-toolbar {
  padding: 0;
  min-height: 32px;
  background-image: url(devtools/background-noise-toolbar.png), linear-gradient(#303840, #2d3640);
  border-top: 1px solid #060a0d;
  box-shadow: 0 1px 0 hsla(204,45%,98%,.05) inset, 0 -1px 0 hsla(206,37%,4%,.1) inset;
}

.developer-toolbar-button {
  -moz-appearance: none;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0 10px;
  width: 32px;
}

.developer-toolbar-button > image {
  margin: auto 10px;
}

#developer-toolbar-toolbox-button {
  list-style-image: url("chrome://browser/skin/devtools/toggle-tools.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

#developer-toolbar-toolbox-button:hover {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

#developer-toolbar-toolbox-button:hover:active {
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}

#developer-toolbar-toolbox-button[checked=true] {
  -moz-image-region: rect(0px, 64px, 16px, 48px);
}

/* GCLI */

html|*#gcli-tooltip-frame,
html|*#gcli-output-frame {
  padding: 0;
  border-width: 0;
  background-color: transparent;
}

#gcli-output,
#gcli-tooltip {
  border-width: 0;
  background-color: transparent;
  -moz-appearance: none;
}

.gclitoolbar-input-node,
.gclitoolbar-complete-node {
  margin: 0;
  -moz-box-align: center;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 8px;
  text-shadow: none;
  box-shadow: none;
  border-width: 0;
  background-color: transparent;
}

.gclitoolbar-input-node {
  -moz-appearance: none;
  color: hsl(210,30%,85%);
  padding-left: 20px;
  background-color: #242b33;
  background-repeat: no-repeat;
  background-position: 4px center;
  box-shadow: 0 1px 1px hsla(206,37%,4%,.2) inset,
              1px 0 0 hsla(206,37%,4%,.2) inset,
              -1px 0 0 hsla(206,37%,4%,.2) inset;
  line-height: 32px;
  outline-style: none;
  background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 16, 16, 0);
}

.gclitoolbar-input-node[focused="true"] {
  background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
  background-color: #232e38;
}

.gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
  background-color: hsl(210,30%,85%);
  color: hsl(210,24%,16%);
  text-shadow: none;
}

.gclitoolbar-complete-node {
  padding-left: 21px;
  background: transparent;
  color: transparent;
  z-index: 100;
  pointer-events: none;
}

.gcli-in-incomplete,
.gcli-in-error,
.gcli-in-ontab,
.gcli-in-todo,
.gcli-in-closebrace,
.gcli-in-param,
.gcli-in-valid {
  margin: 0;
  padding: 0;
}

.gcli-in-incomplete {
  border-bottom: 2px dotted #999;
}

.gcli-in-error {
  border-bottom: 2px dotted #F00;
}

.gcli-in-ontab {
  color: hsl(210,0%,35%);
}

.gcli-in-todo {
  color: hsl(210,50%,35%);
}

.gcli-in-closebrace {
  color: hsl(0,0%,80%);
}
#notification-popup[popupid="click-to-play-plugins"] > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0px;
}

.click-to-play-plugins-notification-content {
  width: 28em;
}

.click-to-play-plugins-notification-center-box {
  border: 1px solid ThreeDShadow;
  margin: 10px;
}

.plugin-popupnotification-centeritem:nth-child(odd) {
  background-color: rgba(0,0,0,0.1);
}

.center-item-label {
  -moz-margin-start: 6px;
  margin-bottom: 0;
  text-overflow: ellipsis;
}

.center-item-warning-icon {
  background-image: url("chrome://mozapps/skin/extensions/alerticon-info-negative.png");
  background-repeat: no-repeat;
  width: 16px;
  height: 15px;
  -moz-margin-start: 6px;
}

.click-to-play-plugins-notification-button-container {
  background: linear-gradient(rgba(0,0,0,0.04) 60%, transparent);
  padding: 10px;
  margin-top: 5px;
}

.click-to-play-popup-button {
  width: 50%;
}

.click-to-play-plugins-notification-description-box {
  padding: 10px;
}

.click-to-play-plugins-outer-description {
  margin-top: 8px;
}

.click-to-play-plugins-notification-link,
.center-item-link {
  margin: 0;
}

.gcli-panel {
  padding: 0;
}

.gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
  color: hsl(210,11%,16%);
}

/* Error counter */

#developer-toolbar-toolbox-button[error-count]:before {
  color: #FDF3DE;
  min-width: 16px;
  text-shadow: none;
  background-image: linear-gradient(#B4211B, #8A1915);
  border-radius: 1px;
  -moz-margin-end: 2px;
}

#social-provider-button {
  -moz-image-region: rect(0, 16px, 16px, 0);
  list-style-image: url(chrome://browser/skin/social/services-16.png);
}

#social-provider-button > .toolbarbutton-menu-dropmarker {
  display: none;
}

.toolbarbutton-badge-container {
  margin: 5px 3px;
  position: relative;
}

toolbar[iconsize="small"] .toolbarbutton-badge-container {
  margin: 0;
}

.toolbarbutton-badge[badge]:not([badge=""])::after {
  /* The |content| property is set in the content stylesheet. */
  font-size: 9px;
  font-weight: bold;
  padding: 0 1px;
  color: #fff;
  background-color: rgb(240,61,37);
  border: 1px solid rgb(216,55,34);
  box-shadow: 0px 1px 0px rgba(0,39,121,0.77);
  padding-right: 1px;
  padding-left: 1px;
  color: white;
  font-size: 9px;
  font-weight: bold;
  margin: 0;
  border-radius: 2px;
  position: absolute;
  top: 0;
  right: 0;
}

.toolbarbutton-badge[badge]:not([badge=""]):-moz-locale-dir(rtl)::after {
  left: 2px;
  right: auto;
}

.popup-notification-icon[popupid="servicesInstall"] {
  list-style-image: url(chrome://browser/skin/social/services-64.png);
}
#servicesInstall-notification-icon {
  list-style-image: url(chrome://browser/skin/social/services-16.png);
}
#social-undoactivation-button,
#servicesInstall-learnmore-link {
  -moz-margin-start: 0; /* override default label margin to match description margin */
}

.social-activation-icon {
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 64px;
}

#social-activation-message {
  max-width: 250px;
}

#social-activation-message > label {
  margin: 0;
}

/* social toolbar provider menu */
#social-statusarea-popup {
  margin-top: 0;
  margin-left: -12px;
  margin-right: -12px;
}

.social-statusarea-user {
  list-style-image:url("chrome://global/skin/icons/information-32.png");
}

.social-statusarea-user-portrait {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  margin: 10px;
}

.social-panel > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0;
}


.chat-status-icon {
  max-height: 16px;
  max-width: 16px;
  padding: 0;
}

.chat-toolbarbutton {
  -moz-appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  width: 16px;
}

.chat-toolbarbutton > .toolbarbutton-text {
  display: none;
}

.chat-toolbarbutton > .toolbarbutton-icon {
  width: inherit;
}

.chat-close-button {
  list-style-image: url('chrome://browser/skin/social/chat-icons.png');
  -moz-image-region: rect(0, 16px, 16px, 0);
}

.chat-close-button:hover {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

.chat-close-button:hover:active {
  -moz-image-region: rect(0, 48px, 16px, 32px);
}

.chat-minimize-button {
  list-style-image: url('chrome://browser/skin/social/chat-icons.png');
  -moz-image-region: rect(16px, 16px, 32px, 0);
}

.chat-minimize-button:hover {
  -moz-image-region: rect(16px, 32px, 32px, 16px);
}

.chat-minimize-button:hover:active {
  -moz-image-region: rect(16px, 48px, 32px, 32px);
}

.chat-swap-button {
  list-style-image: url('chrome://browser/skin/social/chat-icons.png');
  -moz-image-region: rect(48px, 16px, 64px, 0);
}

.chat-swap-button:hover {
  -moz-image-region: rect(48px, 32px, 64px, 16px);
}

.chat-swap-button:hover:active {
  -moz-image-region: rect(48px, 48px, 64px, 32px);
}

chatbar > chatbox > .chat-titlebar > .chat-swap-button {
  list-style-image: url('chrome://browser/skin/social/chat-icons.png');
  -moz-image-region: rect(32px, 16px, 48px, 0);
}

chatbar > chatbox > .chat-titlebar > .chat-swap-button:hover {
  -moz-image-region: rect(32px, 32px, 48px, 16px);
}

chatbar > chatbox > .chat-titlebar > .chat-swap-button:hover:active {
  -moz-image-region: rect(32px, 48px, 48px, 32px);
}

@media (min-resolution: 2dppx) {
  .chat-close-button {
    list-style-image: url('chrome://browser/skin/social/chat-icons@2x.png');
    -moz-image-region: rect(0, 32px, 32px, 0);
  }

  .chat-close-button:hover {
    -moz-image-region: rect(0, 64px, 32px, 32px);
  }

  .chat-close-button:hover:active {
    -moz-image-region: rect(0, 96px, 32px, 64px);
  }

  .chat-minimize-button {
    list-style-image: url('chrome://browser/skin/social/chat-icons@2x.png');
    -moz-image-region: rect(32px, 32px, 64px, 0);
  }

  .chat-minimize-button:hover {
    -moz-image-region: rect(32px, 64px, 64px, 32px);
  }

  .chat-minimize-button:hover:active {
    -moz-image-region: rect(32px, 96px, 64px, 64px);
  }

  .chat-swap-button {
    list-style-image: url('chrome://browser/skin/social/chat-icons@2x.png');
    -moz-image-region: rect(96px, 32px, 128px, 0);
  }

  .chat-swap-button:hover {
    -moz-image-region: rect(96px, 64px, 128px, 32px);
  }

  .chat-swap-button:hover:active {
    -moz-image-region: rect(96px, 96px, 128px, 64px);
  }

  chatbar > chatbox > .chat-titlebar > .chat-swap-button {
    list-style-image: url('chrome://browser/skin/social/chat-icons@2x.png');
    -moz-image-region: rect(64px, 32px, 96px, 0);
  }

  chatbar > chatbox > .chat-titlebar > .chat-swap-button:hover {
    -moz-image-region: rect(64px, 64px, 96px, 32px);
  }

  chatbar > chatbox > .chat-titlebar > .chat-swap-button:hover:active {
    -moz-image-region: rect(64px, 96px, 96px, 64px);
  }
}

.chat-title {
  font-weight: bold;
  color: black;
  text-shadow: none;
  cursor: inherit;
}

.chat-titlebar {
  height: 20px;
  min-height: 20px;
  width: 100%;
  margin: 0;
  padding: 2px;
  -moz-padding-start: 6px;
  border: none;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.chat-titlebar > .notification-anchor-icon {
  margin-left: 2px;
  margin-right: 2px;
}

.chat-titlebar[minimized="true"] {
  border-bottom: none;
}

.chat-titlebar[activity] {
  background-image: radial-gradient(ellipse closest-side at center, rgb(255,255,255), rgba(255,255,255,0));
  background-repeat: no-repeat;
  background-size: 100% 20px;
  background-position: 0 -10px;
}

.chat-frame {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.chatbar-button {
  list-style-image: url("chrome://browser/skin/social/services-16.png");
  margin: 0;
  padding: 2px;
  height: 21px;
  width: 21px;
  border: 1px solid #ccc;
  border-bottom: none;
}

@media (min-resolution: 2dppx) {
  .chatbar-button {
    list-style-image: url("chrome://browser/skin/social/services-16@2x.png");
  }
}

.chatbar-button > .toolbarbutton-icon {
  width: 16px;
}

.chatbar-button > menupopup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
  width: auto;
  height: auto;
  max-height: 16px;
  max-width: 16px;
}

.chatbar-button[open="true"] {
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 1px rgba(255,255,255,0.2);
}

.chatbar-button > .toolbarbutton-text,
.chatbar-button > .toolbarbutton-menu-dropmarker {
  display: none;
}

.chatbar-button > menupopup > menuitem[activity] {
  font-weight: bold;
}

.chatbar-innerbox {
  background: transparent;
  margin: -285px 0 0;
  overflow: hidden;
}

chatbar {
  -moz-margin-end: 20px;
}

chatbox {
  -moz-margin-start: 4px;
  background-color: white;
  border: 1px solid #ccc;
  border-bottom: none;
}

window > chatbox {
  -moz-margin-start: 0px;
  margin: 0px;
  border: none;
  padding: 0px;
}

.chat-titlebar {
  background-color: #d9d9d9;
  background-image: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0));
}

.chat-titlebar[selected] {
  background-color: #f0f0f0;
}

.chatbar-button {
  -moz-appearance: none;
  background-color: #d9d9d9;
  background-image: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0));
}

.chatbar-button > .toolbarbutton-icon {
  -moz-margin-end: 0;
}

.chatbar-button:hover,
.chatbar-button[open="true"] {
  background-color: #f0f0f0;
}

.chatbar-button[activity] {
  background-image: radial-gradient(circle farthest-corner at center 3px, rgb(233,242,252) 3%, rgba(172,206,255,0.75) 40%, rgba(87,151,201,0.5) 80%, rgba(87,151,201,0));
}

chatbox {
  border-top-left-radius: 2.5px;
  border-top-right-radius: 2.5px;
}

#main-window[privatebrowsingmode=temporary] #appmenu-toolbar-button {
  list-style-image: url(chrome://browser/skin/symbolic-icons/privatebrowsing.svg);
}

/*
#main-window[privatebrowsingmode=temporary] #TabsToolbar::before {
  display: -moz-box;
  content: "";
  background: url("chrome://browser/skin/privatebrowsing-mask.png") center no-repeat;
  width: 40px;
}
*/
