/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-1999
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 *   Jason Kersey (kerz@netscape.com)
 *   Pierre Chanial (chanial@noos.fr)
 *   Kevin Gerich (kevin@kmgerich.com)
 *   Pamela Greene (pamg.bugs@gmail.com)
 *   Dao Gottwald (dao@design-noir.de)
 *   Stephen Horlander (stephen@noved.org)
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

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

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

#main-window {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#unifiedWindow");
}

#main-window[chromehidden~="toolbar"][chromehidden~="location"][chromehidden~="directories"] {
  border-top: 1px solid rgba(0,0,0,0.65);
  -moz-appearance: none;
  background-color: #eeeeee;
}

/* ----- INACTIVE WINDOW ----- */

#main-window:not([active="true"]) > #navigator-toolbox > toolbar {
  border-top-color: rgba(255,255,255,0.45);
  border-bottom-color: rgba(0,0,0,0.35);
  background-color: #cfcfcf;
}

#main-window:not([active="true"]) > #navigator-toolbox > #nav-bar {
  background-image: url("chrome://global/skin/toolbar/toolbar-background-inactive.png");
}

#main-window:not([active="true"]) > #navigator-toolbox > #PersonalToolbar {
  background-image: url("chrome://browser/skin/bookmark_toolbar_background-inactive.png");
}

#main-window:not([active="true"]) > #navigator-toolbox > toolbar > toolbaritem,
#main-window:not([active="true"]) > #navigator-toolbox > toolbar > toolbarbutton,
#main-window:not([active="true"]) > #browser-bottombox {
  opacity: 0.75;
}

#main-window:not([active="true"]) > #browser > vbox > #sidebar,
#main-window:not([active="true"]) > #browser > vbox > sidebarheader { 
  background-color: #e8e8e8;
}

#main-window:not([active="true"]) .tabbrowser-strip {
  background-color: #cfcfcf;
}

#main-window:not([active="true"]) .tabbrowser-tab {
  color: #575757;
}

#main-window:not([active="true"]) .tabbrowser-tab[selected="true"] > .tab-image-middle,
#main-window:not([active="true"]) .tabbrowser-tab[selected="true"] > .tab-closebutton,
#main-window:not([active="true"]) .tabbrowser-tab[selected="true"] > .tab-close-button {
  background-image: url("chrome://browser/skin/tabbrowser/tab-middle-inactive.png");
}

#main-window:not([active="true"]) .tabbrowser-tab[selected="true"] > .tab-image-left,
#main-window:not([active="true"]) .tabbrowser-tab[selected="true"][chromedir="rtl"] > .tab-image-right {
  background: url("chrome://browser/skin/tabbrowser/tab-left-inactive.png") no-repeat;
}

#main-window:not([active="true"]) .tabbrowser-tab[selected="true"] > .tab-image-right,
#main-window:not([active="true"]) .tabbrowser-tab[selected="true"][chromedir="rtl"] > .tab-image-left {
  background: url("chrome://browser/skin/tabbrowser/tab-right-inactive.png") no-repeat;
}

/* ----- SEARCH FIELD ----- */

#wrapper-search-container #searchbar html|*.textbox-input {
  visibility: hidden;
}

/* ----- BOOKMARK TOOLBAR ----- */

#PersonalToolbar {
  background: url("chrome://browser/skin/bookmark_toolbar_background.gif") repeat-x center center;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 2px solid;
  -moz-border-bottom-colors: rgba(0,0,0,0.35) transparent;
  padding: 2px 0;
}


/* ----- BOOKMARK BUTTONS ----- */	

toolbarbutton.bookmark-item {
  font-weight: bold;
  margin: 0 1px;
  padding: 0;
  -moz-padding-start: 7px;
  min-width: 0;
  max-width: 13em;
  color: #222;
  border: none !important;
}

toolbarbutton.bookmark-item[type=menu] > .toolbarbutton-menu-dropmarker {
  -moz-padding-end: 7px;
}

toolbarbutton.bookmark-item[type=menu] > .toolbarbutton-menu-dropmarker[chromedir="rtl"] {
  -moz-padding-start: 4px;
  -moz-padding-end: 2px;
}

toolbarbutton.bookmark-item[chromedir="rtl"] {
  -moz-padding-start: 0px;
  -moz-padding-end: 7px;
}

.bookmark-item[container] {
  list-style-image: url("chrome://global/skin/tree/folder.png");
}

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

toolbarbutton.bookmark-item > .toolbarbutton-text-stack > label {
  margin: 0;
}
toolbarbutton.bookmark-item > .toolbarbutton-text-stack > .toolbarbutton-text-shadow {
  padding-top: 2px;
  text-align: center;
}

toolbarbutton.bookmark-item:not([container]) > .toolbarbutton-text-stack {
  -moz-padding-end: 7px;
}

toolbarbutton.bookmark-item[chromedir="rtl"] > .toolbarbutton-text-stack {
  -moz-padding-end: 0;
  -moz-padding-start: 7px;
}

toolbarbutton.bookmark-item:hover {
  background: url("chrome://global/skin/toolbar/toolbarbutton-customhover-left.png") no-repeat left center;
}

toolbarbutton.bookmark-item:hover:active,
toolbarbutton.bookmark-item[open="true"] {
  background:url("chrome://browser/skin/bookmark-open-left.png") no-repeat left center;
}

toolbarbutton.bookmark-item:not([container]):hover > .toolbarbutton-text-stack,
toolbarbutton.bookmark-item[container]:not([open]):hover > .toolbarbutton-menu-dropmarker {
  background: url("chrome://global/skin/toolbar/toolbarbutton-customhover-right.png") no-repeat right center;
}

toolbarbutton.bookmark-item[container]:hover > .toolbarbutton-text-stack,
toolbarbutton.bookmark-item[container]:not([open]):hover > .toolbarbutton-menu-dropmarker[chromedir="rtl"],
#home-button.bookmark-item:hover > .toolbarbutton-icon,
#home-button.bookmark-item[chromedir="rtl"]:hover > .toolbarbutton-text-stack {
  background: url("chrome://global/skin/toolbar/toolbarbutton-customhover-mid.png") repeat-x;
}

#home-button.bookmark-item:hover[chromedir="rtl"] > .toolbarbutton-icon,
toolbarbutton.bookmark-item[chromedir="rtl"]:hover > .toolbarbutton-text-stack {
  background: url("chrome://global/skin/toolbar/toolbarbutton-customhover-right.png") no-repeat right center;
}

toolbarbutton.bookmark-item:not([container]):hover:active  > .toolbarbutton-text-stack,
toolbarbutton.bookmark-item[open] > .toolbarbutton-menu-dropmarker,
toolbarbutton.bookmark-item[container]:hover:active > .toolbarbutton-menu-dropmarker 
{
  background: url("chrome://browser/skin/bookmark-open-right.png") no-repeat right center;
}

toolbarbutton.bookmark-item[container]:hover:active  > .toolbarbutton-text-stack,
toolbarbutton.bookmark-item[container][open="true"] > .toolbarbutton-text-stack,
#home-button.bookmark-item:hover:active > .toolbarbutton-icon,
toolbarbutton.bookmark-item[container]:hover:active > .toolbarbutton-menu-dropmarker[chromedir="rtl"],
toolbarbutton.bookmark-item[container][open="true"] > .toolbarbutton-menu-dropmarker[chromedir="rtl"],
#home-button.bookmark-item:hover:active[chromedir="rtl"] > .toolbarbutton-text-stack {
  background: url("chrome://browser/skin/bookmark-open-mid.png") repeat-x !important;
}

toolbarbutton.bookmark-item[chromedir="rtl"][container]:hover:active  > .toolbarbutton-text-stack,
toolbarbutton.bookmark-item[chromedir="rtl"][container][open] > .toolbarbutton-text-stack,
#home-button.bookmark-item[chromedir="rtl"]:hover:active > .toolbarbutton-icon {
  background: url("chrome://browser/skin/bookmark-open-right.png") no-repeat right center !important;
}

toolbarbutton.bookmark-item:not([container="true"]) {
  -moz-binding: url(chrome://browser/skin/browser.xml#toolbarbutton-shadow);
}

toolbarbutton.bookmark-item[container="true"] {
  -moz-binding: url(chrome://browser/skin/browser.xml#toolbarbutton-menu-shadow);
}

toolbarbutton.bookmark-item-microsummarized {
  max-width: 20em;
}

.bookmark-item > .toolbarbutton-icon {
  margin: 0px;
  display: none !important;
}

toolbarbutton.bookmark-item .toolbarbutton-text {
  font-size: 100% !important; 
  margin: 0px !important;
}

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

.bookmark-item > .toolbarbutton-menu-dropmarker {
  list-style-image: url("chrome://browser/skin/places/folderDropArrow.png");
  height: 16px !important;
  padding: 5px 5px 4px 3px;
}

.bookmark-item[livemark] > .toolbarbutton-menu-dropmarker {
  list-style-image: url("chrome://browser/skin/places/livemarkFolder.png");
  padding: 3px 4px 3px 4px;
}

.bookmark-item[livemark] {
  list-style-image: url("chrome://browser/skin/page-livemarks.png");
}

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

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

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

.bookmark-item[query][hostContainer] {
  list-style-image: url("chrome://global/skin/tree/folder.png");
}

.bookmark-item[query][hostContainer][open] {
  list-style-image: url("chrome://global/skin/tree/folder.png");
}

.bookmark-item[livemark] .menuitem-iconic {
  list-style-image: url("chrome://browser/skin/places/livemarkItem.png");
}

.bookmark-item menuitem[openInTabs],
.bookmark-item menuitem[siteURI] {
  list-style-image: none;
}

.toolbarpaletteitem-box[type="bookmarks-toolbar"][place="palette"] {
  background: url("chrome://browser/skin/bookmarks/Toolbar-bookmarks.png") no-repeat;
}

.bookmarks-toolbar-customize {
  display: none;
  max-width: 15em !important;
}

toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-customize {
  display: -moz-box;
}

toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-overflow-items {
  visibility: hidden;
}

toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-items {
  visibility: hidden;
}

toolbarpaletteitem[place="toolbar"] .places-toolbar-items {
  display: none;
}

/* ----- BOOKMARK MENUS ----- */	

.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
  width: 16px;
  height: 16px;
}

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

/* ----- BOOKMARK PANEL DROPDOWN MENU ITEMS ----- */	

#editBMPanel_toolbarFolderItem {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;  
}

#editBMPanel_bmRootItem {
  list-style-image: url("chrome://browser/skin/places/bookmarksMenu.png") !important;  
}

#editBMPanel_unfiledRootItem {
  list-style-image: url("chrome://browser/skin/places/unfiledBookmarks.png") !important;  
}

/* ----- PRIMARY TOOLBAR BUTTONS ----- */	

.toolbarbutton-1,
#back-forward-dropmarker {
  min-width: 0px;
  list-style-image: url("chrome://browser/skin/Toolbar.png");
  -moz-box-orient: vertical;
}

.toolbarbutton-1[chromedir="rtl"],
#back-forward-dropmarker[chromedir="rtl"] {
  list-style-image: url("chrome://browser/skin/Toolbar-rtl.png");
}

toolbar[mode="text"] .toolbarbutton-1,
toolbar[mode="text"] .toolbarbutton-menubutton-button {
  -moz-box-orient: horizontal;
}

toolbar[mode="text"] .toolbarbutton-1 > .toolbarbutton-text {
  margin: 4px;
}

#nav-bar .toolbarbutton-1 {
  padding-top: 0;
  padding-bottom: 0;
}

toolbarbutton:not([disabled="true"]):hover,
menubutton:not([disabled="true"]):hover,
toolbarbutton:not([disabled="true"]):hover:active,
menubutton:not([disabled="true"]):hover:active {
  color: ButtonText !important;
}

toolbar:not([mode="text"]) #back-button .toolbarbutton-menubutton-button,
toolbar:not([mode="text"]) #forward-button .toolbarbutton-menubutton-button {
  margin: 0;
  padding: 0;
  border-left: 0;
  border-right: 0;
}

toolbar:not([mode="text"]) #back-button .toolbarbutton-menubutton-dropmarker,
toolbar:not([mode="text"]) #forward-button .toolbarbutton-menubutton-dropmarker {
  margin-top: 1px;
}

toolbar[mode="icons"] #back-button .toolbarbutton-text-box,
toolbar[mode="icons"] #forward-button .toolbarbutton-text-box,
#back-button > dropmarker,
#forward-button > dropmarker {
  display: none;
}

/* ----- DEFAULT PRIMARY TOOLBAR BUTTONS ----- */	

.toolbarbutton-text-shadow,
.tab-text-shadow {
  color: #f0f0f0;
  padding-top: 1px;
  opacity: 0.5;
}

.tab-text-shadow {
  padding-top: 0;
}

/* ----- DEFAULT BACK BUTTON, STAND-ALONE ----- */	

#back-button {
  -moz-image-region: rect(0px, 36px, 23px, 0px);
}
#back-button[disabled="true"] {
  -moz-image-region: rect(23px, 36px, 46px, 0px);
}
#back-button:hover:active:not([disabled]),
#back-button[buttondown="true"]:not([disabled]),
#back-button[open="true"] {
  -moz-image-region: rect(46px, 36px, 69px, 0px);
}

/* ----- DEFAULT FORWARD BUTTON, STAND-ALONE ----- */	

#forward-button {
  -moz-image-region: rect(0px, 72px, 23px, 36px);
}

#forward-button[disabled="true"] {
  -moz-image-region: rect(23px, 72px, 46px, 36px);
}
#forward-button:hover:active:not([disabled]),
#forward-button[buttondown="true"]:not([disabled]),
#forward-button[open="true"] {
  -moz-image-region: rect(46px, 72px, 69px, 36px);
}

/* ----- DEFAULT BACK/FORWARD BUTTONS ----- */

toolbar[mode="icons"] #unified-back-forward-button > #back-button {
  -moz-image-region: rect(0px, 539px, 33px, 504px);
  -moz-margin-end: 0;
  -moz-padding-end: 0;
  border-left: none;
  border-right: none;
}

toolbar[mode="icons"] #unified-back-forward-button > #back-button[chromedir="rtl"] {
  -moz-image-region: rect(0px, 582px, 33px, 547px);
}

toolbar[mode="icons"] #unified-back-forward-button > #back-button[disabled="true"] {
 -moz-image-region: rect(33px, 539px, 66px, 504px);
}

toolbar[mode="icons"] #unified-back-forward-button > #back-button[disabled="true"][chromedir="rtl"] {
  -moz-image-region: rect(33px, 582px, 66px, 547px);
}

toolbar[mode="icons"] #unified-back-forward-button > #back-button:hover:active:not([disabled]),
toolbar[mode="icons"] #unified-back-forward-button > #back-button[open="true"] {
  -moz-image-region: rect(66px, 539px, 99px, 504px);
}

toolbar[mode="icons"] #unified-back-forward-button > #back-button:hover:active[chromedir="rtl"]:not([disabled]),
toolbar[mode="icons"] #unified-back-forward-button > #back-button[open="true"][chromedir="rtl"] {
  -moz-image-region: rect(66px, 582px, 99px, 547px);
}

toolbar[mode="icons"] #unified-back-forward-button > #forward-button {
  -moz-image-region: rect(0px, 566px, 33px, 539px);
  -moz-margin-start: 0;
  -moz-margin-end: 0;
  -moz-padding-start: 0;
  -moz-padding-end: 0;
  border-left: none;
  border-right: none;
}

toolbar[mode="icons"] #unified-back-forward-button > #forward-button[chromedir="rtl"] {
  -moz-image-region: rect(0px, 547px, 33px, 519px);
}

toolbar[mode="icons"] #unified-back-forward-button > #forward-button[disabled="true"] {
 -moz-image-region: rect(33px, 566px, 66px, 539px);
}

toolbar[mode="icons"] #unified-back-forward-button > #forward-button[disabled="true"][chromedir="rtl"] {
 -moz-image-region: rect(33px, 547px, 66px, 519px);
}

toolbar[mode="icons"] #unified-back-forward-button > #forward-button:hover:active:not([disabled]),
toolbar[mode="icons"] #unified-back-forward-button > #forward-button[open="true"] {
  -moz-image-region: rect(66px, 566px, 99px, 539px);
}

toolbar[mode="icons"] #unified-back-forward-button > #forward-button[chromedir="rtl"]:hover:active:not([disabled]),
toolbar[mode="icons"] #unified-back-forward-button > #forward-button[open="true"][chromedir="rtl"] {
  -moz-image-region: rect(66px, 547px, 99px, 519px);
}

#back-forward-dropmarker {
  -moz-image-region: rect(0px, 582px, 33px, 566px);
  -moz-margin-start: 0;
  -moz-margin-end: 3px;
  -moz-padding-start: 0;
  -moz-padding-end: 1px;
  border-left: none;
  border-right: none;
}

#back-forward-dropmarker[chromedir="rtl"] {
  -moz-image-region: rect(0px, 519px, 33px, 504px);
}

toolbar[mode="icons"] #back-forward-dropmarker > image {
  display: -moz-box;
  margin: 0;
  padding: 0;
}

toolbar[mode="icons"] #back-forward-dropmarker > dropmarker {
  display: none;
}

#back-forward-dropmarker[disabled="true"] {
 -moz-image-region: rect(33px, 582px, 66px, 566px);
}

#back-forward-dropmarker[disabled="true"][chromedir="rtl"] {
 -moz-image-region: rect(33px, 519px, 66px, 504px);
}

#back-forward-dropmarker:hover:active:not([disabled]),
#back-forward-dropmarker[open="true"] {
  -moz-image-region: rect(66px, 582px, 99px, 566px);
}

#back-forward-dropmarker[chromedir="rtl"]:hover:active:not([disabled]),
#back-forward-dropmarker[open="true"][chromedir="rtl"] {
  -moz-image-region: rect(66px, 519px, 99px, 504px);
}

.unified-nav-back[_moz-menuactive],
menupopup[chromedir="rtl"] > .unified-nav-forward[_moz-menuactive] {
  list-style-image: url("chrome://browser/skin/menu-back.png") !important;
}

.unified-nav-forward[_moz-menuactive],
menupopup[chromedir="rtl"] > .unified-nav-back[_moz-menuactive] {
  list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
}


/* ----- SMALL BACK BUTTON, PAIRED----- */	

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button {
  -moz-image-region: rect(0px, 616px, 23px, 582px);
  -moz-margin-end: 0;
  -moz-padding-end: 0;
  border-left: none;
  border-right: none;
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button[chromedir="rtl"] {
  -moz-image-region: rect(0px, 664px, 23px, 630px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button[disabled="true"] {
  -moz-image-region: rect(23px, 616px, 46px, 582px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button[disabled="true"][chromedir="rtl"] {
  -moz-image-region: rect(23px, 664px, 46px, 630px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button:hover:active:not([disabled]),
toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button[open="true"] {
  -moz-image-region: rect(46px, 616px, 69px, 582px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button[chromedir="rtl"]:hover:active:not([disabled]),
toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button[open="true"][chromedir="rtl"] {
  -moz-image-region: rect(46px, 664px, 69px, 630px);
}

/* ----- SMALL FORWARD BUTTON, PAIRED ----- */	

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button {
  -moz-image-region: rect(0px, 649px, 23px, 616px);
  -moz-margin-start: 0;
  -moz-padding-start: 0;
  border-left: none;
  border-right: none;
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button[chromedir="rtl"] {
  -moz-image-region: rect(0px, 630px, 23px, 597px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button[disabled="true"] {
 -moz-image-region: rect(23px, 649px, 46px, 616px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button[disabled="true"][chromedir="rtl"] {
 -moz-image-region: rect(23px, 630px, 46px, 597px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button:hover:active:not([disabled]),
toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button[open="true"] {
  -moz-image-region: rect(46px, 649px, 69px, 616px);
}

toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button[chromedir="rtl"]:hover:active:not([disabled]),
toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button[open="true"][chromedir="rtl"] {
  -moz-image-region: rect(46px, 630px, 69px, 597px);
}

/* ----- SMALL BACK/FORWARD DROPMARKER ----- */	

toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker {
  -moz-image-region: rect(0px, 664px, 23px, 649px);
}

toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker[chromedir="rtl"] {
  -moz-image-region: rect(0px, 596px, 23px, 582px);
}

toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker[disabled="true"] {
 -moz-image-region: rect(23px, 664px, 46px, 649px);
}

toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker[disabled="true"][chromedir="rtl"] {
 -moz-image-region: rect(23px, 596px, 46px, 582px);
}

toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker:hover:active:not([disabled]),
toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker[open="true"] {
  -moz-image-region: rect(46px, 664px, 69px, 649px);
}

toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker[chromedir="rtl"]:hover:active:not([disabled]),
toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarker[open="true"][chromedir="rtl"] {
  -moz-image-region: rect(46px, 596px, 69px, 582px);
}

/* ----- DEFAULT RELOAD BUTTON ----- */	

#reload-button {
  -moz-image-region: rect(0px, 108px, 23px, 72px);
}
#reload-button[disabled="true"] {
  -moz-image-region: rect(23px, 108px, 46px, 72px) !important;
}
#reload-button:hover:active {
  -moz-image-region: rect(46px, 108px, 69px, 72px);
}

/* ----- DEFAULT STOP BUTTON ----- */	

#stop-button {
  -moz-image-region: rect(0px, 144px, 23px, 108px);
}
#stop-button[disabled="true"] {
  -moz-image-region: rect(23px, 144px, 46px, 108px) !important;
}
#stop-button:hover:active {
  -moz-image-region: rect(46px, 144px, 69px, 108px);
}


/* ----- DEFAULT HOME BUTTON ----- */	

#home-button {
  -moz-image-region: rect(0px, 180px, 23px, 144px);
}
#home-button[disabled="true"] {
  -moz-image-region: rect(23px, 180px, 46px, 144px) !important;
}
#home-button:hover:active {
  -moz-image-region: rect(46px, 180px, 69px, 144px);
}

#home-button.bookmark-item {
  list-style-image: url("chrome://browser/skin/home.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px) !important;
}

#home-button.bookmark-item > .toolbarbutton-icon {
  display: -moz-box !important;
  padding: 0 !important;
}
/* ----- DEFAULT DOWNLOADS BUTTON ----- */	

#downloads-button {
  -moz-image-region: rect(0px, 216px, 23px, 180px);
}
#downloads-button[disabled="true"] {
  -moz-image-region: rect(23px, 216px, 46px, 180px);
}
#downloads-button:hover:active {
  -moz-image-region: rect(46px, 216px, 69px, 180px);
}

/* ----- DEFAULT HISTORY BUTTON ----- */	

#history-button {
  -moz-image-region: rect(0px, 252px, 23px, 216px);
}
#history-button[disabled="true"] {
  -moz-image-region: rect(23px, 252px, 46px, 216px);
}
#history-button:hover:active { 
  -moz-image-region: rect(46px, 252px, 69px, 216px);
  background-color: transparent;
  border-color: transparent;
}

#history-button[checked="true"] {
  -moz-image-region: rect(69px, 252px, 92px, 216px);
  background-color: transparent;
  border-color: transparent;
}

#history-button[checked="true"]:hover:active {
  -moz-image-region: rect(92px, 252px, 115px, 216px);
}

/* ----- DEFAULT BOOKMARKS BUTTON ----- */	

#bookmarks-button {
  -moz-image-region: rect(0px, 288px, 23px, 252px);
}
#bookmarks-button[disabled="true"] {
  -moz-image-region: rect(23px, 288px, 46px, 252px);
}
#bookmarks-button:hover:active {
  -moz-image-region: rect(46px, 288px, 69px, 252px);
  background-color: transparent;
  border-color: transparent;
}

#bookmarks-button[checked="true"] {
  -moz-image-region: rect(69px, 288px, 92px, 252px);
  background-color: transparent;
  border-color: transparent;
}

#bookmarks-button[checked="true"]:hover:active {
  -moz-image-region: rect(92px, 288px, 115px, 252px);
}

/* ----- DEFAULT PRINT BUTTON ----- */	

#print-button {
  -moz-image-region: rect(0px, 324px, 23px, 288px);
}
#print-button[disabled="true"] {
  -moz-image-region: rect(23px, 324px, 46px, 288px);
}
#print-button:hover:active {
  -moz-image-region: rect(46px, 324px, 69px, 288px);
}

/* ----- DEFAULT NEW-TAB BUTTON ----- */	

#new-tab-button {
  -moz-image-region: rect(0px, 360px, 23px, 324px);
}
#new-tab-button[disabled="true"] {
  -moz-image-region: rect(23px, 360px, 46px, 324px);
}
#new-tab-button:hover:active {
  -moz-image-region: rect(46px, 360px, 69px, 324px);
}

/* ----- DEFAULT NEW-WINDOW BUTTON ----- */	

#new-window-button {
  -moz-image-region: rect(0px, 396px, 23px, 360px);
}
#new-window-button[disabled="true"] {
  -moz-image-region: rect(23px, 396px, 46px, 360px);
}
#new-window-button:hover:active {
  -moz-image-region: rect(46px, 396px, 69px, 360px);
}

/* ----- DEFAULT CUT BUTTON ----- */	

#cut-button {
  -moz-image-region: rect(0px, 432px, 23px, 396px);
}
#cut-button[disabled="true"] {
  -moz-image-region: rect(23px, 432px, 46px, 396px) !important;
}
#cut-button:hover:active,
#cut-button[checked="true"] {
  -moz-image-region: rect(46px, 432px, 69px, 396px);
}

/* ----- DEFAULT COPY BUTTON ----- */	

#copy-button {
  -moz-image-region: rect(0px, 468px, 23px, 432px);
}
#copy-button[disabled="true"] {
  -moz-image-region: rect(23px, 468px, 46px, 432px) !important;
}
#copy-button:hover:active,
#copy-button[checked="true"] {
  -moz-image-region: rect(46px, 468px, 69px, 432px);
}
/* ----- DEFAULT PASTE BUTTON ----- */	

#paste-button {
  -moz-image-region: rect(0px, 504px, 23px, 468px);
}
#paste-button[disabled="true"] {
  -moz-image-region: rect(23px, 504px, 46px, 468px) !important;
}
#paste-button:hover:active,
#paste-button[checked="true"] {
  -moz-image-region: rect(46px, 504px, 69px, 468px);
}


/* ----- FULLSCREEN WINDOW CONTROLS ----- */

#window-controls {
  -moz-box-align: center;
  padding: 0;
  -moz-padding-start: 4px;
  -moz-padding-end: 2px;
}

#minimize-button {
  list-style-image: url("chrome://global/skin/icons/minimize.gif");
}
#restore-button {
  list-style-image: url("chrome://global/skin/icons/restore.gif");
}
#close-button {
  list-style-image: url("chrome://global/skin/icons/close.gif");
}

/* ::::: nav-bar-inner ::::: */

#urlbar {
  -moz-appearance: none;
  direction: ltr !important;
  border: none;
  background: url("chrome://browser/skin/urlbar/endcap.png") transparent right center no-repeat;
  margin: 0px 4px 1px 4px;
  -moz-padding-end: 10px;
  font: icon !important;
  width: 7em;
  min-width: 7em;
  height: 26px;
}

#urlbar[focused="true"] {
  background: url("chrome://browser/skin/urlbar/endcap-focused.png") transparent right center no-repeat;
}

#urlbar .textbox-input-box,
#urlbar-icons {
  margin: 0;
  background: url("chrome://browser/skin/urlbar/textfield-mid.png") transparent left center  repeat-x;
}

#urlbar[focused="true"] .textbox-input-box,
#urlbar[focused="true"] #urlbar-icons {
  background-image: url("chrome://browser/skin/urlbar/textfield-mid-focused.png");
}

#urlbar .textbox-input-box {
  padding-top: 1px;
}

.autocomplete-textbox {
  background-image: inherit !important;
}

#urlbar-icons {
  -moz-box-align: center;
  min-height: 26px;
}

#urlbar[pageproxystate="invalid"] > #urlbar-icons > :not(#go-button) ,
#urlbar[pageproxystate="valid"] > #urlbar-icons > #go-button {
  visibility: collapse;
}

#urlbar-search-splitter {
  min-width: 4px;
  width: 4px;
}

#wrapper-urlbar-container #urlbar,
#urlbar[readonly="true"] {
  -moz-padding-end: 12px;
  -moz-user-input: disabled;
  cursor: -moz-grab;
}

#wrapper-urlbar-container[place="palette"] {
  max-width: 20em;
}

#wrapper-urlbar-container > #urlbar-container > #urlbar > #identity-box > hbox > #identity-icon-label,
#wrapper-urlbar-container #urlbar > .autocomplete-history-dropmarker {
  display: none;
}

#wrapper-urlbar-container > #urlbar-container > #urlbar > #identity-box.verifiedIdentity  > hbox > #identity-icon-label,
#wrapper-urlbar-container > #urlbar-container > #urlbar > #identity-box.verifiedDomain > hbox > #identity-icon-label {
  display: -moz-box;
}

/* Keep the URL bar LTR */

#PopupAutoCompleteRichResult {
  direction: ltr !important;
  margin-top: -2px;
}

/* ----- PAGE PROXY ICON ----- */

#page-proxy-favicon,
#urlbar-throbber {
  width: 16px;
  height: 16px;
  margin: 0px;
  padding: 0px;
}

#page-proxy-stack {
  -moz-margin-start: 9px;
  width: 24px;
  height: 20px;
  padding: 2px 4px;
  opacity: 1.0;
}

#page-proxy-favicon:not([src]) {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

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

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


#identity-box:active > #page-proxy-stack,
#identity-box[open="true"] > #page-proxy-stack {
  opacity: 0.75;
}

statusbarpanel#statusbar-display {
  -moz-padding-start: 0;
}

.statusbarpanel-text {
  margin-top: 2px;
  margin-bottom: 0;
}

/* ----- AUTOCOMPLETE ----- */

#treecolAutoCompleteImage {
  max-width: 36px;
}

.ac-result-type-bookmark,
.autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
  list-style-image: url("chrome://browser/skin/places/pageStarred.png");
  width: 16px;
  height: 16px;
}

richlistitem[selected="true"][current="true"] > hbox > .ac-result-type-bookmark,
.autocomplete-treebody::-moz-tree-image(selected, current, bookmark, treecolAutoCompleteImage) {
  list-style-image: url("chrome://browser/skin/places/star-icons.png");
  -moz-image-region: rect(32px, 16px, 48px, 0px);
}

.ac-result-type-tag,
.autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
  list-style-image: url("chrome://browser/skin/places/tag.png");
  width: 16px;
  height: 16px;
}

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

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

.ac-url-text {
  color: #144fae;
  font-size: 0.95em;
}

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

.ac-comment[selected="true"], .ac-url-text[selected="true"] {
  color: inherit !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;
}

/* ----- GO BUTTON ----- */

#go-button {
  list-style-image: url("chrome://browser/skin/Go-arrow.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);  
}

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

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

/* STAR BUTTON */
#star-button {
  padding: 1px;
  list-style-image: url("chrome://browser/skin/places/star-icons.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);  
}

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

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

#star-button[starred="true"] {
  -moz-image-region: rect(16px, 16px, 32px, 0px);  
}

#star-button:hover[starred="true"] {
  -moz-image-region: rect(16px, 32px, 32px, 16px);  
}

#star-button:hover:active[starred="true"] {
  -moz-image-region: rect(16px, 48px, 32px, 32px);  
}

/* 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");
}

#editBookmarkPanel {
  -moz-appearance: none;
  background-color: rgba(68,68,68,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  -moz-border-radius: 8px;
  -moz-border-radius-topright: 0px ;
  padding: 10px 8px 6px 8px;
  margin-top: 4px;
  color: #ffffff;
}

#editBookmarkPanelTitle {
  font-size: 130%;
  font-weight: bold;
  margin: 8px 12px 0px 9px;
}

#editBookmarkPanel > hbox {
  -moz-padding-end: 1px;
}

/**** HUD style buttons ****/

#editBookmarkPanel > hbox > vbox > hbox > button,
#editBookmarkPanel > #editBookmarkPanelBottomButtons > button {
  -moz-appearance: none;
  background: url("chrome://browser/skin/hud-style-button-middle-background.png") repeat-x #464646 center center;
  border-width: 3px;
  border-style: solid;
  -moz-border-radius: 20px;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-right-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-bottom-colors: rgba(128,128,128,0.35) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  -moz-border-left-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  padding: 0 9px;
  margin: 6px;
  min-width: 79px;
  min-height: 22px;
  color: #ffffff;
}

#editBookmarkPanel > hbox > vbox > hbox > button:hover:active,
#editBookmarkPanel > #editBookmarkPanelBottomButtons > button:hover:active {
  background-color: #86888B;
}

#editBookmarkPanel > hbox > vbox > hbox > button:focus,
#editBookmarkPanel > #editBookmarkPanelBottomButtons > button:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 100%;
}

#editBookmarkPanel > #editBookmarkPanelBottomButtons > button[default="true"] {
  background-color: #666;
}

#editBookmarkPanel > #editBookmarkPanelContent {
  margin-top: 6px;
}

#editBookmarkPanel #editBMPanel_newFolderBox {
  background-image: url("chrome://browser/skin/hud-style-new-folder-bar-background.png");
  background-repeat: repeat-x;
  border: 0;
  border-width: 1px 0 1px 0;
  border-style: solid;
  border-top-color: #212121;
  border-bottom-color: #212121;
  padding: 0;
  margin: 0;
  -moz-margin-start: -8px;
  -moz-margin-end: -8px;
  margin-bottom: 8px !important;
  height:  20px;
}

#editBookmarkPanel #editBMPanel_newFolderButton {
  -moz-appearance: none;
  background-color: transparent !important;
  border: 0;
  -moz-border-end-width: 3px;
  border-style: solid;
  -moz-border-right-colors: rgba(255,255,255,0.15) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  -moz-border-left-colors: rgba(255,255,255,0.15) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  padding: 0 9px;
  margin: 0;
  min-width: 21px;
  min-height: 20px;
  height:  20px;
  color: #ffffff;
  list-style-image: url("chrome://browser/skin/hud-style-new-folder-plus-sign.png") !important;
}

#editBookmarkPanel #editBMPanel_newFolderButton:hover:active {
  background-color: #86888B;
}

#editBookmarkPanel #editBMPanel_newFolderButton:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 1px;
}

#editBookmarkPanel #editBMPanel_newFolderButton .button-text {
  display: none !important;
}

#editBookmarkPanel #editBMPanel_folderMenuList {
  -moz-appearance: none;
  background: url("chrome://browser/skin/hud-style-button-middle-background.png") repeat-x #464646 center center;
  border: 3px solid;
  -moz-border-radius: 5px;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-right-colors: rgba(53,53,53,1) rgba(53,53,53,1) rgba(162,162,162,1);
  -moz-border-bottom-colors: rgba(128,128,128,0.35) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  -moz-border-left-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  margin: 0 3px !important;
  min-height: 22px;
  -moz-padding-start: 2px;
  color: #ffffff !important;
}

#editBookmarkPanel #editBMPanel_folderMenuList:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 5px;
}

#editBookmarkPanel #editBMPanel_folderMenuList[open="true"],
#editBookmarkPanel #editBMPanel_folderMenuList:hover:active {
  background-image: url("chrome://browser/skin/hud-style-button-middle-background-active.png");
}

#editBookmarkPanel #editBMPanel_folderMenuList > .menulist-dropmarker {
  -moz-appearance: none;
  display: -moz-box;
  background-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

#editBookmarkPanel #editBMPanel_folderMenuList > .menulist-dropmarker > .dropmarker-icon {
  list-style-image: url("chrome://browser/skin/hud-style-dropmarker-double-arrows.png");
}

/**** folder tree ****/

#editBookmarkPanel #editBMPanel_folderTree {
  background-color: #333333;
  border-top: 2px solid !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(255,255,255,0.15);
  margin: 0px;
  -moz-margin-start: -8px;
  -moz-margin-end: -8px;
  color: #ffffff !important;
}

#editBookmarkPanel #editBMPanel_folderTree:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -1px;
  -moz-outline-radius: 1px;
}

#editBMPanel_folderTree treechildren::-moz-tree-twisty {
  -moz-appearance: none !important;
  list-style-image: url("chrome://browser/skin/hud-style-twisties.png");
  -moz-image-region: rect(0px, 10px, 10px, 0px);
  margin-top: 1px;
  -moz-margin-end: 1px;
}

#editBMPanel_folderTree treechildren::-moz-tree-twisty(open) {
  -moz-appearance: none;
  -moz-image-region: rect(0px, 20px, 10px, 10px);
}

#editBMPanel_folderTree treechildren::-moz-tree-twisty(selected) {
  -moz-appearance: none;
  -moz-image-region: rect(0px, 30px, 10px, 20px);
}

#editBMPanel_folderTree treechildren::-moz-tree-twisty(selected, open) {
  -moz-appearance: none;
  -moz-image-region: rect(0px, 40px, 10px, 30px);
}

#editBookmarkPanel #editBMPanel_tagsSelector {
  -moz-appearance: none;
  background-color: #333333;
  border-top: 2px solid !important;
  border-right: 0 !important;
  border-bottom: 2px solid !important;
  border-left: 0 !important;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(255,255,255,0.15);
  -moz-border-bottom-colors: rgba(255,255,255,0.30) rgba(0,0,0,0.35) ;
  margin: 6px -8px !important;
  color: #ffffff !important;
}

#editBookmarkPanel #editBMPanel_tagsSelector:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 1px;
}

#editBookmarkPanel #editBMPanel_tagsSelector .listcell-check {
  -moz-appearance: none !important;
  background-color: transparent;
  border: 0;
  list-style-image: url("chrome://browser/skin/hud-style-check-box-empty.png");
  min-height: 14px;
  min-width: 14px;
}

#editBookmarkPanel #editBMPanel_tagsSelector .listcell-check[checked="true"] {
  list-style-image: url("chrome://browser/skin/hud-style-check-box-checked.png");
}

#editBMPanel_folderTree treechildren::-moz-tree-row {
  color: #ffffff !important;
  background-color: transparent !important;
  border: none !important;
}

#editBMPanel_folderTree treechildren::-moz-tree-row(selected) {
  background-color: #b3b3b3 !important;
}

#editBMPanel_folderTree treechildren::-moz-tree-cell-text(selected),
#editBMPanel_folderTree treechildren::-moz-tree-cell-text(selected, focus) {
  color: #222222 !important;
}

#editBMPanel_folderTree treechildren::-moz-tree-row(selected, focus) {
  background-color: #b3b3b3 !important;
}

#editBookmarkPanel #editBMPanel_tagsSelector > listitem[selected="true"] {
  color: #222222;
  background-color: #b3b3b3;
}

/**** expanders ****/

#editBookmarkPanel .expander-up,
#editBookmarkPanel .expander-down {
  -moz-appearance: none;
  background: url("chrome://browser/skin/hud-style-button-middle-background.png") repeat-x #464646 center center;
  border: 3px solid;
  -moz-border-radius: 5px;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-right-colors: rgba(53,53,53,1) rgba(53,53,53,1) rgba(162,162,162,1);
  -moz-border-bottom-colors: rgba(128,128,128,0.35) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  -moz-border-left-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-margin-start: 4px;
  -moz-margin-end: 2px;
  padding: 0;
  -moz-padding-start: 4px;
  min-width: 10px;
  min-height: 22px;
  color: #ffffff !important;
}

#editBookmarkPanel .expander-up:focus,
#editBookmarkPanel .expander-down:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 5px;
}

#editBookmarkPanel .expander-up {
  list-style-image: url("chrome://browser/skin/hud-style-expander-open.png") !important;
}

#editBookmarkPanel .expander-down {
  list-style-image: url("chrome://browser/skin/hud-style-expander-closed.png") !important;
}

#editBookmarkPanel .expander-down:hover:active {
  list-style-image: url("chrome://browser/skin/hud-style-expander-open.png") !important;
  background-image: url("chrome://browser/skin/hud-style-button-middle-background-active.png") !important;
  background-repeat: repeat-x !important;
}

#editBookmarkPanel .expander-up:hover:active {
  list-style-image: url("chrome://browser/skin/hud-style-expander-closed.png") !important;
  background-image: url("chrome://browser/skin/hud-style-button-middle-background-active.png") !important;
  background-repeat: repeat-x !important;
}


/**** name picker ****/

#editBookmarkPanel #editBMPanel_namePicker[droppable="false"] {
  color: #ffffff;
}

#editBookmarkPanel #editBMPanel_namePicker[droppable="false"] > .menulist-dropmarker {
  display: none;
}

#editBookmarkPanel #editBMPanel_tagsField,
#editBookmarkPanel #editBMPanel_namePicker[droppable="false"] > .menulist-editable-box {
  -moz-appearance: none !important;
  cursor: text;
  margin: 2px 4px;
  border: 2px solid;
  -moz-border-top-colors: #1c1c1c #545454 ;
  -moz-border-right-colors: #1c1c1c #636363;
  -moz-border-bottom-colors: #1c1c1c #797979;
  -moz-border-left-colors: #1c1c1c #636363;
  -moz-border-radius: 1px;
  padding: 0;
  background-color: #666666;
  color: #ffffff;
}

#editBookmarkPanel #editBMPanel_tagsField[empty="true"] {
  color: #bbbbbb;
}

#editBookmarkPanel #editBMPanel_tagsField[focused="true"],
#editBookmarkPanel #editBMPanel_namePicker[droppable="false"][focused="true"] > .menulist-editable-box {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -1px;
  -moz-outline-radius: 1px;
  background-color: #eeeeee;
  color: #000000;
}

#editBookmarkPanel #editBMPanel_namePicker[droppable="false"][disabled="true"] > .menulist-editable-box {
  color: #ffffff;
}

#editBookmarkPanel #editBMPanel_namePicker[droppable="false"] > .menulist-editable-box > html|*.menulist-editable-input {
  margin: 0px !important;
  border: none !important;
  padding: 0px !important;
  background-color: inherit;
  color: #ffffff;
  font: inherit;
}

#editBookmarkPanel #editBMPanel_namePicker[droppable="false"][focused="true"] > .menulist-editable-box > html|*.menulist-editable-input {
  color: #000000;
}

#editBookmarkPanel > #editBookmarkPanelContent > #editBookmarkPanelGrid > rows > row > label {
  text-align: right;
}

/* ----- SIDEBAR ELEMENTS ----- */

#sidebar,
sidebarheader { 
  background-color: #d4dde5;
  padding: 2px;
  text-transform: uppercase;
}

#sidebar-box {
  -moz-appearance: dialog;
  -moz-appearance: none;
}

#sidebar-splitter {
  -moz-border-start: none;
  -moz-border-end: 1px solid #404040;
  min-width: 1px;
  width: 1px;
  background-image: none !important;       
} 

#sidebar-title {
  color: #535f6d;
  font-weight: bold;  
}

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

sidebarheader > .tabs-closebutton > .toolbarbutton-text {
  display: none;
}


/* ----- SECURITY DISPLAY ----- */

#security-button {
  display: none;
  -moz-box-direction: reverse;
}

#security-button[level="high"] {
  list-style-image: url("chrome://browser/skin/Secure-statusbar.png");
  display: -moz-box;
}

#security-button[level="low"] {
  list-style-image: url("chrome://browser/skin/Secure-statusbar.png");
  display: -moz-box;
}

#security-button[level="broken"] {
  list-style-image: url("chrome://browser/skin/Secure-statusbar-broken.png");
  display: -moz-box;
}

/* ----- PAGE REPORT DISPLAY ----- */

#page-report-button {
  display: none;
}

#page-report-button[blocked] {
  display: -moz-box;
  list-style-image: url("chrome://browser/skin/Popup-blocked.png");
  padding: 0px 3px 0px 3px;
}

/* ----- FEED CONTENT DISPLAY ---- */

#feed-button, #feed-button > .button-box,
#feed-button:hover:active > .button-box {
  padding: 0px;
  margin: -1px;
  border: 0px; 
  background-color: transparent;
}

#feed-button .button-menu-dropmarker,
#feed-button .button-text {
  display: none;
}

#feed-button {
  -moz-binding: url("chrome://global/content/bindings/button.xml#menu");
  -moz-appearance: none; 
  min-width: 0;
  min-height: 0;
  margin-right: 1px !important;
}

#feed-button[feeds] {
  list-style-image: url("chrome://browser/skin/feed-icons.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}
#feed-button[feeds]:hover {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}
#feed-button[feeds]:active {
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}

/* ----- THROBBER ----- */

#navigator-throbber {
  -moz-appearance: none;
  -moz-user-focus: ignore;
  -moz-box-pack: center;
  margin: 0px 4px !important;
  border: none !important;
  padding: 0;
  min-width: 0;
  background-color: transparent;
  height: 16px;
  width: 17px;  
}

/* XXXmano: hack until we figure out why the throbber uses a button instead
   of a toolbarbutton */
#navigator-throbber .button-text {
  display: none;
  margin: 0 !important;
}

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

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

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

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


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

#nav-bar {
  background-color: #9e9e9e;
  border-top: none;
  border-bottom: 1px solid rgba(0,0,0,0.35);
  background-image: url("chrome://global/skin/toolbar/toolbar-background.gif");
  background-repeat: repeat-x;
  background-position: top right;
  padding: 0 4px;
}

#nav-bar[collapsed="true"] + toolbar[customindex] {
 border-top: 2px solid;
 -moz-border-top-colors: rgba(0,0,0,0.35) rgba(255,255,255,0.45);
} 

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

.openintabs-menuitem {
  list-style-image: none;
}

/* ::::: tabbrowser ::::: */

.tab-icon-image {
  width: 16px;
  height: 16px;
  list-style-image: url("chrome://global/skin/tree/item.png");
}

.tab-icon {
  margin: 0 0 4px 0;
  opacity: 0.6;
}

.tabbrowser-tab:not([selected="true"]):hover .tab-icon,
.tabbrowser-tab[selected="true"] .tab-icon {
  opacity: 1.0;
}

.tab-text {
  font: message-box;
  margin-top: 0 !important;
}

.tab-text,
.tab-text-shadow {
  font-weight: bold !important;
}

.tabbrowser-tab[busy] > .tab-icon-image,
.tabbrowser-tab[busy] > .tab-image-middle > .tab-icon > .tab-icon-image {
 list-style-image: url("chrome://global/skin/icons/loading_16.png") !important; 
}

.tabbrowser-tab {
  -moz-binding: url("chrome://browser/skin/browser.xml#tabbrowser-tab") !important;
  -moz-appearance: none;
  color: #222;
  -moz-box-pack: center;
  padding: 0px;
  border: none !important;
  min-width: 1px !important;
  text-align: center;
  height: 27px;
}

.tabbrowser-tab[selected="true"] {
  -moz-user-focus: normal;
}

.tabbrowser-tab[selected="true"]:focus > .tab-image-middle > .tab-text-stack > .tab-text {
  outline: 2px solid #4F8EC9;
  outline-offset: -2px;
  -moz-outline-radius: 3px;
}

.tabbrowser-tab[selected="true"],
.tabbrowser-tab:hover {
  color: #000000;
}

.tab-image-left,
.tab-image-right {
  width: 8px;
  margin: 0px;
  padding: 0px;
}

.tabbrowser-tab > .tab-image-right,
.tabbrowser-tab[chromedir="rtl"] > .tab-image-left {
  background: url("chrome://browser/skin/tabbrowser/tab-right.png") no-repeat;
}

.tabbrowser-tab:not([selected="true"]) > .tab-image-right,
.tabbrowser-tab:not([selected="true"])[chromedir="rtl"] > .tab-image-left {
  background: url("chrome://browser/skin/tabbrowser/tab-right-bkgnd.png") no-repeat;
}

.tabbrowser-tab > .tab-image-left,
.tabbrowser-tab[chromedir="rtl"] > .tab-image-right {
  background: url("chrome://browser/skin/tabbrowser/tab-left.png") no-repeat;
}

.tabbrowser-tab:not([selected="true"]) > .tab-image-left,
.tabbrowser-tab:not([selected="true"])[chromedir="rtl"] > .tab-image-right {
  background: url("chrome://browser/skin/tabbrowser/tab-left-bkgnd.png") no-repeat;
}

.tabbrowser-tab > .tab-image-middle,
.tabbrowser-tab > .tab-closebutton {
  background: url("chrome://browser/skin/tabbrowser/tab-middle.png") repeat-x;
  -moz-box-pack: center;
}

.tabbrowser-tab:not([selected="true"]) > .tab-image-middle,
.tabbrowser-tab:not([selected="true"]) > .tab-close-button {
  background: url("chrome://browser/skin/tabbrowser/tab-middle-bkgnd.png");
}

.tabbrowser-tab:not([selected="true"]) > .tab-image-middle > .tab-icon > .tab-icon-image  {
  list-style-image: url("chrome://global/skin/tree/item-grayscale.png");
}

.tabs-closebutton {
  margin: 0;
  list-style-image: url("chrome://global/skin/icons/closetab.png") !important;
}

.tabs-closebutton:hover:active {
  list-style-image: url("chrome://global/skin/icons/closetab-active.png") !important;
  border: none !important;
}

.tabbrowser-strip {
  margin-top: -1px;
  border-bottom: 1px solid #404040;
  background-color: #9B9B9B;
}

.tabbrowser-tabs {
  border: none;
  -moz-box-pack: center;
  -moz-box-align: center;
  background: url("chrome://browser/skin/tabbrowser/tabbrowser-tabs-bkgnd.png") repeat-x;
  height: 27px;
}

.tabs-left {
  display: -moz-box;
  width: 3px;
}

.tabbrowser-tabs[overflow="true"] .tabs-left {
  display: none;
}

tabbrowser > tabbox > tabpanels {
  -moz-appearance: none !important;
}

/**
 * Tab Drag and Drop
 */

.tab-drop-indicator-bar {
  height: 10px;
  margin-top: -10px;
  position: relative;
  /* set -moz-margin-start to -1/2 indicator width: */
  -moz-margin-start: -4px;
}

.tab-drop-indicator {
  height: 33px;
  width: 10px;
  margin-bottom: -24px;
  position: relative;
  background: url('chrome://browser/skin/tabbrowser/tabDragIndicator.png') 50% 40% no-repeat;
}

/**
 * In-tab close button
 */

.tab-close-button > .toolbarbutton-icon {
  -moz-margin-end: 0px !important;
  margin-top: 1px;
}

.tab-close-button {
  list-style-image: url("chrome://global/skin/icons/closetab.png");
  -moz-appearance: none;
  border: none !important;
  padding: 0 0 4px 0;
  margin: 0;
  background: inherit;
  cursor: default;
}

.tab-close-button:hover,
.tabbrowser-tab[selected="true"] > .tab-close-button:hover {
  list-style-image: url("chrome://global/skin/icons/closetab-hover.png");
}

.tab-close-button:hover:active,
.tabbrowser-tab[selected="true"] > .tab-close-button:hover:active {
  list-style-image: url("chrome://global/skin/icons/closetab-active.png");
}

.tabbrowser-tab > .tab-close-button {
  background-image: url("chrome://browser/skin/tabbrowser/tab-middle.png");
  background-repeat: repeat-x;
}

.tabbrowser-tab[selected="true"] > .tab-close-button {
  /* Make this button focusable so clicking on it will not focus the tab while
     it's getting closed */
  -moz-user-focus: normal;
}

.tabbrowser-tab:not([selected="true"]) > .tab-close-button {
  background-image: url("chrome://browser/skin/tabbrowser/tab-middle-bkgnd.png");
}

.tabbrowser-arrowscrollbox > .scrollbutton-up,
.tabbrowser-arrowscrollbox > .scrollbutton-down-stack > .scrollbutton-down[chromedir="rtl"] {
  border: 0;
  border-right: 2px solid;
  -moz-border-right-colors: rgba(0,0,0,0.25) rgba(255,255,255,0.15);
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-start.png");
  -moz-image-region: rect(0px, 7px, 11px, 0px);
  padding: 0;
  width: 16px;
  margin: 0;
}

.tabbrowser-arrowscrollbox > .scrollbutton-down-stack > .scrollbutton-down[chromedir="rtl"] {
  -moz-border-end: none;
}

.tabbrowser-arrowscrollbox > .scrollbutton-up:hover {
  background-color: rgba(0,0,0,0.10);
}

.tabbrowser-arrowscrollbox > .scrollbutton-up:hover:active {
  background-color: rgba(0,0,0,0.20);
}

.tabbrowser-arrowscrollbox > .scrollbutton-up[disabled="true"],
.tabbrowser-arrowscrollbox > .scrollbutton-down-stack > .scrollbutton-down[disabled="true"][chromedir="rtl"] {
  -moz-image-region: rect(0px, 28px, 11px, 21px);
  background-color: transparent !important; 
}

.tabbrowser-arrowscrollbox .scrollbutton-down,
.tabbrowser-arrowscrollbox > .scrollbutton-up[chromedir="rtl"] {
  border-left: 2px solid;
  -moz-border-left-colors: rgba(0,0,0,0.25) rgba(255,255,255,0.15);
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-end.png");
  -moz-image-region: rect(0px, 44px, 11px, 37px);
  -moz-padding-start: 2px;
  -moz-padding-end: 0;
  width: 16px;
  margin: 0;
}

.tabbrowser-arrowscrollbox > .scrollbutton-up[chromedir="rtl"] {
  -moz-border-start: none;
}

.tabbrowser-arrowscrollbox .scrollbutton-down:hover {
  background-color: rgba(0,0,0,0.10);
}

.tabbrowser-arrowscrollbox .scrollbutton-down:hover:active {
  background-color: rgba(0,0,0,0.20);
}

.tabbrowser-arrowscrollbox > .scrollbutton-down-stack > .scrollbutton-down[disabled="true"],
.tabbrowser-arrowscrollbox > .scrollbutton-up[disabled="true"][chromedir="rtl"] {
  -moz-image-region: rect(0px, 23px, 11px, 16px);
  background-color: transparent !important;
}


/**
 * All Tabs Button
 */

.tabs-alltabs-box {
  margin: 0;
  width: 25px;
}

.tabs-alltabs-button {
  list-style-image: url("chrome://browser/skin/tabbrowser/alltabs-box-bkgnd-icon.png");
  -moz-border-start: 2px solid;
  -moz-border-left-colors: rgba(0,0,0,0.25) rgba(255,255,255,0.15);
  -moz-border-right-colors: rgba(0,0,0,0.25) rgba(255,255,255,0.15);
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.tabs-alltabs-button:hover {
  background-color: rgba(0,0,0,0.10);
}
.tabs-alltabs-button:hover:active,
.tabs-alltabs-button[open="true"] {
  background-color: rgba(0,0,0,0.20);
}

.tabs-alltabs-button  > .toolbarbutton-menu-dropmarker {
  display: none;
}

.tabs-alltabs-button  > .toolbarbutton-text {
  display: none;
}

.tabs-alltabs-button > .toolbarbutton-icon {
  -moz-margin-end: 2px;
}

.tabs-alltabs-box-animate {
  margin: 1px 0px 0px 0px;
  width: 25px;
  background-image: url("chrome://browser/skin/tabbrowser/alltabs-box-overflow-bkgnd-animate.png");
  background-repeat: no-repeat;
  opacity: 0.0;
}

/**
 * All Tabs Menupopup 
 */

.alltabs-item > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://global/skin/tree/item.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") !important;
}

.tabs-closebutton {
  padding-right: 4px;
  list-style-image: url("chrome://global/skin/icons/closetab.png") !important;
  list-style-image: none;
  border: none;
  -moz-box-align: stretch;
}

.tabs-closebutton:hover > .toolbarbutton-icon {
	background-image: none !important;
}

.tabs-closebutton:hover:active {
	list-style-image: url("chrome://global/skin/icons/closetab-active.png") !important;
}

tabpanels.plain {
	background-color: #fff !important;
}

/* Personal toolbar */
.toolbar-drop-indicator {
  width: 7px;
  height: 17px;
  position: relative;
  background: url('chrome://browser/skin/places/toolbarDropMarker.png') 40% 50% no-repeat;
}

.toolbar-drop-indicator-bar {
  visibility: hidden;
  height: 17px;
  margin-bottom: -17px;
  position: relative;
}

.toolbar-drop-indicator-bar[dragging="true"] {
  visibility: visible;
}

/* 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;
}

#CustomizeToolbarSheet > #main-box {
  border-top: none !important;
  border-left: 2px solid;
  border-right: 2px solid;
  border-bottom: 3px solid;
  -moz-border-right-colors: -moz-mac-menushadow ThreeDLightShadow  !important;
  -moz-border-bottom-colors: -moz-mac-menushadow -moz-mac-menushadow ThreeDShadow  !important;
  -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight !important;
}

/* ::::: Identity Indicator Styling ::::: */
/* Location bar visuals*/

#identity-box {
  background: url("chrome://browser/skin/urlbar/startcap.png") left center no-repeat;
  min-width: 44px;
}

#urlbar[focused="true"] > #identity-box {
  background-image: url("chrome://browser/skin/urlbar/startcap-focused.png");
}

#identity-box:focus > hbox > #page-proxy-deck {
  outline: 2px solid #4F8EC9;
  -moz-outline-radius: 2px;
}

#identity-box:hover:active,
#identity-box[open="true"] {
  background-image: url("chrome://browser/skin/urlbar/startcap-active.png");
}

#identity-icon-label {
  margin: 0;
  color: black;
  padding: 2px 6px 3px;
  -moz-padding-end: 14px;
}

#identity-box.unknownIdentity > hbox > #identity-icon-label {
  display: none;
}


/* Verified domain */
/* - Normal state */
#identity-box.verifiedDomain {
  background-image: url("chrome://browser/skin/urlbar/startcap-secure-start.png");
  -moz-padding-start: 12px;
}

#identity-box.verifiedDomain > hbox {
  padding: 0;
  background: url("chrome://browser/skin/urlbar/startcap-secure-mid.png") repeat-x center center;
  -moz-box-pack: center;
}

#identity-box.verifiedDomain > hbox > #identity-icon-label {
  background: url("chrome://browser/skin/urlbar/startcap-secure-end.png") no-repeat center right;
}

/* - Active state */
#identity-box.verifiedDomain:hover:active {
  background-image: url("chrome://browser/skin/urlbar/startcap-secure-start-active.png");
}

#identity-box.verifiedDomain:hover:active > hbox {
  padding: 0;
  background: url("chrome://browser/skin/urlbar/startcap-secure-mid-active.png") repeat-x center center;
  -moz-box-pack: center;
}

#identity-box.verifiedDomain:hover:active > hbox > #identity-icon-label {
  background: url("chrome://browser/skin/urlbar/startcap-secure-end-active.png") no-repeat center right;
}

/* - Focus state */
#urlbar[focused="true"] > #identity-box.verifiedDomain {
  background-image: url("chrome://browser/skin/urlbar/startcap-secure-start-focused.png");
}

#urlbar[focused="true"] > #identity-box.verifiedDomain > hbox {
  background-image: url("chrome://browser/skin/urlbar/startcap-secure-mid-focused.png");
}

#urlbar[focused="true"] > #identity-box.verifiedDomain > hbox > #identity-icon-label {
  background-image: url("chrome://browser/skin/urlbar/startcap-secure-end-focused.png");
}

#identity-box.verifiedDomain > hbox > #identity-icon-label[value=""] {
  -moz-padding-start: 3px !important;
  -moz-padding-end: 8px !important;
}


/* Verified Identity */
/* - Normal state */
#identity-box.verifiedIdentity {
  background-image: url("chrome://browser/skin/urlbar/startcap-verified-start.png");
  -moz-padding-start: 12px;
}

#identity-box.verifiedIdentity > hbox {
  padding: 0;
  background: url("chrome://browser/skin/urlbar/startcap-verified-mid.png") repeat-x center center;
  -moz-box-pack: center;
}

#identity-box.verifiedIdentity > hbox > #identity-icon-label {
  background: url("chrome://browser/skin/urlbar/startcap-verified-end.png") no-repeat center right;
}

/* - Active state */
#identity-box.verifiedIdentity:hover:active {
  background-image: url("chrome://browser/skin/urlbar/startcap-verified-start-active.png");
}

#identity-box.verifiedIdentity:hover:active > hbox {
  background: url("chrome://browser/skin/urlbar/startcap-verified-mid-active.png") repeat-x center center;
}

#identity-box.verifiedIdentity:hover:active > hbox > #identity-icon-label {
  background: url("chrome://browser/skin/urlbar/startcap-verified-end-active.png") no-repeat center right;
}

/* - Focus state */
#urlbar[focused="true"] > #identity-box.verifiedIdentity {
  background-image: url("chrome://browser/skin/urlbar/startcap-verified-start-focused.png");
}

#urlbar[focused="true"] > #identity-box.verifiedIdentity > hbox {
  background-image: url("chrome://browser/skin/urlbar/startcap-verified-mid-focused.png");
}

#urlbar[focused="true"] > #identity-box.verifiedIdentity > hbox > #identity-icon-label {
  background-image: url("chrome://browser/skin/urlbar/startcap-verified-end-focused.png");
}

/* Favicon Glow */
#identity-box.verifiedIdentity > hbox > #page-proxy-stack,
#identity-box.verifiedDomain > hbox > #page-proxy-stack {
  -moz-margin-start: -3px;
  width: 24px;
  height: 20px;
  padding: 2px 4px;
  background: url("chrome://browser/skin/urlbar/urlbar-favicon-glow.png") center center no-repeat;
}


/* 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);
}

/* Popup Body Text */
#identity-popup-content-box > description,
#identity-popup-encryption-label {
  white-space: pre-wrap;
  color: #ffffff;
  -moz-padding-start: 15px;
  margin: 2px 0 4px;
}

#identity-popup-content-box > 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: -24px;
}

#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 {
  margin-top: 5px;
  list-style-image: url("chrome://browser/skin/Secure-Glyph-White.png");
}

/* Popup Bounding Box */
#identity-popup {
  -moz-appearance: none;
  background-color: rgba(68,68,68,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  -moz-border-radius: 8px;
  -moz-border-radius-topleft: 0px;
  padding: 10px 8px 6px 8px;
  margin-top: -3px;
  -moz-margin-start: 11px;
  color:  #ffffff;
  min-width: 280px;
}

#identity-popup-container {
  -moz-appearance: none;
  color:  #ffffff;
}

/* Popup Buttons */
#identity-popup-more-info-button {
  -moz-appearance: none;
  background: url("chrome://browser/skin/hud-style-button-middle-background.png") repeat-x #464646 center center;
  border: 3px solid;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-right-colors: rgba(53,53,53,1) rgba(53,53,53,1) rgba(162,162,162,1);
  -moz-border-bottom-colors: rgba(128,128,128,0.35) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  -moz-border-left-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-radius: 20px;
  padding: 1px 9px;
  margin: 6px;
  min-height: 0px;
  color:  #ffffff;	
}

#identity-popup-more-info-button > .button-box > .button-text {
  margin: 0 !important;
}

#identity-popup-more-info-button:hover:active {
  background-color: #86888B;
}

#download-monitor {
  list-style-image: url("chrome://mozapps/skin/downloads/downloadStatusIcon.png");
}
