/* ***** 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 (webmail@kmgerich.com)
 *   Pamela Greene (pamg.bugs@gmail.com)
 *
 * 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");

#toolbar-menubar {
	display: none;
}

#main-window {
	-moz-appearance: none;
}

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

#searchbar[empty="true"] .searchbar-textbox {
  color: GrayText;
}

#searchbar[empty="true"]  html|input {
  direction: ltr !important;
  text-align: left !important;
}

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

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

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

toolbarbutton.bookmark-item:hover
{
  background:url("chrome://browser/skin/bookmark-hover-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 > label {
  margin-left: 7px;
}

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

#find-next > .toolbarbutton-text,
#find-previous > .toolbarbutton-text,
#highlight > .toolbarbutton-text {
  -moz-margin-start: 0px;
}

toolbarbutton.bookmark-item:not([container]):hover > .toolbarbutton-text,
toolbarbutton.bookmark-item[container]:not([open]):hover > .toolbarbutton-menu-dropmarker,
#find-next:not([disabled]):hover > .toolbarbutton-text, 
#find-previous:not([disabled]):hover > .toolbarbutton-text,
#highlight:not([disabled]):hover > .toolbarbutton-text
{
  background: url("chrome://browser/skin/bookmark-hover-right.png") no-repeat right center;
  color: #fff;
}

#find-next:not([disabled]):hover, 
#find-previous:not([disabled]):hover,
#highlight:not([disabled]):hover
{
  background:url("chrome://browser/skin/bookmark-hover-left.png") no-repeat left center;
}

toolbarbutton.bookmark-item[container]:hover > .toolbarbutton-text,
#FindToolbar > toolbarbutton:not([disabled]):hover > .toolbarbutton-icon 
{
  background: url("chrome://browser/skin/bookmark-hover-mid.png") repeat-x;
  color: #fff;
}

#find-closebutton > .toolbarbutton-icon  {
	background-image: none !important;
}

toolbarbutton.bookmark-item:not([container]):hover:active  > .toolbarbutton-text,
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,
toolbarbutton.bookmark-item[container][open="true"] > .toolbarbutton-text 
{
  background: url("chrome://browser/skin/bookmark-open-mid.png") repeat-x !important;
  color: #fff;
}

toolbarbutton.bookmark-item[type=menu] {
  padding-left: 7px;
}

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

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

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

/* Image locations for these toolbar icons are overridden in places/browser-places.css in Places-enabled builds.
   Those styles can be merged into these once the pre-Places bookmark system is no longer needed. */
.bookmark-item > .toolbarbutton-menu-dropmarker {
list-style-image: url("chrome://browser/skin/bookmarks/folderarrow.png");
height: 16px !important;
padding: 5px 5px 4px 3px;
}

.bookmark-item:hover > .toolbarbutton-menu-dropmarker, .bookmark-item[open] > .toolbarbutton-menu-dropmarker  {
list-style-image: url("chrome://browser/skin/bookmarks/folderarrow-hover.png");
}

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

.bookmark-item[livemark]:hover > .toolbarbutton-menu-dropmarker, .bookmark-item[livemark][open] > .toolbarbutton-menu-dropmarker {
list-style-image: url("chrome://browser/skin/bookmarks/livemark-folder-hover.png");
}

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

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

.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;
}

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

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

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

/* ----- DRAG AND DROP STYLES ----- */	

.bookmark-item[dragover-left="true"] {
  -moz-border-left-colors: #000000;
}
.bookmark-item[dragover-right="true"] {
  -moz-border-right-colors: #000000;
}
.bookmark-item[dragover-top="true"] {
  -moz-border-top-colors: #000000;
}
.bookmark-item[dragover-bottom="true"] {
  -moz-border-bottom-colors: #000000;
}
/* ----- PRIMARY TOOLBAR BUTTONS ----- */	

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

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

/* set up extended binding for the back & forward buttons */
toolbar:not([mode="text"]) #back-button,
toolbar:not([mode="text"]) #forward-button {
  -moz-binding: url(chrome://browser/skin/browser.xml#bf-menu-button);
}

toolbar:not([mode="text"]) #back-button .toolbarbutton-menubutton-button,
toolbar:not([mode="text"]) #forward-button .toolbarbutton-menubutton-button {
  -moz-binding: url('chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image');
  margin: 0;
  padding: 0;
  border-left: 0;
  border-right: 0;
}

toolbar:not([mode="text"]) #back-button .allowevents-box,
toolbar:not([mode="text"]) #forward-button .allowevents-box {
  -moz-binding: url(chrome://browser/skin/browser.xml#bf-menu-button-allowevents-box);
}

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 {
  display: none;
}

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

/* ----- DEFAULT BACK BUTTON ----- */	

#back-button {
  -moz-image-region: rect(0px, 24px, 24px, 0px);
}
#back-button:hover,
#back-button[buttonover="true"] {
  -moz-image-region: rect(24px, 24px, 48px, 0px);
}
#back-button[disabled="true"] {
 -moz-image-region: rect(48px, 24px, 72px, 0px) !important;
}
#back-button:hover:active,
#back-button[buttondown="true"],
#back-button[open="true"] {
  -moz-image-region: rect(96px, 24px, 120px, 0px);
}

/* ----- DEFAULT BACK BUTTON DROPMARKER ----- */	

#back-button .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/dropmark-nav.png");
  -moz-image-region: rect(0px, 14px, 24px, 0px);
}

#back-button:hover .toolbarbutton-menubutton-dropmarker, 
#back-button[buttonover="true"]  .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(24px, 14px, 48px, 0px);
}

#back-button[disabled="true"] .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/dropmark-nav.png") !important;
  -moz-image-region: rect(48px, 14px, 72px, 0px) !important;
}

#back-button:hover:active .toolbarbutton-menubutton-dropmarker, 
#back-button[buttondown="true"] .toolbarbutton-menubutton-dropmarker,
#back-button[open="true"] .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(72px, 14px, 96px, 0px);
}

/* ----- DEFAULT FORWARD BUTTON ----- */	

#forward-button {
  -moz-image-region: rect(0px, 48px, 24px, 24px);
}
#forward-button:hover,
#forward-button[buttonover="true"] {
  -moz-image-region: rect(24px, 48px, 48px, 24px);
}
/* #forward-button[buttondown="true"], #forward-button[open="true"] {
  -moz-image-region: rect(32px, 64px, 64px, 32px);
} */
#forward-button[disabled="true"] {
 -moz-image-region: rect(48px, 48px, 72px, 24px) !important;
}
#forward-button:hover:active,
#forward-button[buttondown="true"],
#forward-button[open="true"] {
  -moz-image-region: rect(96px, 48px, 120px, 24px);
}

/* ----- DEFAULT FORWARD BUTTON DROPMARKER ----- */	

#forward-button .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/dropmark-nav.png");
  -moz-image-region: rect(0px, 14px, 24px, 0px);
}
#forward-button:hover .toolbarbutton-menubutton-dropmarker, 
#forward-button[buttonover="true"] .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(24px, 14px, 48px, 0px);
}
#forward-button[disabled="true"] .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/dropmark-nav.png") !important;
  -moz-image-region: rect(48px, 14px, 72px, 0px) !important;
}
#forward-button:hover:active .toolbarbutton-menubutton-dropmarker, 
#forward-button[buttondown="true"] .toolbarbutton-menubutton-dropmarker,
#forward-button[open="true"] .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(72px, 14px, 96px, 0px);
}

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

#stop-button {
  -moz-image-region: rect(0px, 72px, 24px, 48px);
}
#stop-button:hover {
  -moz-image-region: rect(24px, 72px, 48px, 48px);
}
#stop-button[disabled="true"] {
  -moz-image-region: rect(48px, 72px, 72px, 48px) !important;
}
#stop-button:hover:active {
  -moz-image-region: rect(96px, 72px, 120px, 48px);
}

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

#reload-button {
  -moz-image-region: rect(0px, 96px, 24px, 72px);
}
#reload-button:hover {
  -moz-image-region: rect(24px, 96px, 48px, 72px);
}
#reload-button[disabled="true"] {
  -moz-image-region: rect(48px, 96px, 72px, 72px) !important;
}
#reload-button:hover:active {
  -moz-image-region: rect(96px, 96px, 120px, 72px);
}

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

#home-button {
  -moz-image-region: rect(0px, 120px, 24px, 96px);
}
#home-button:hover {
  -moz-image-region: rect(24px, 120px, 48px, 96px);
}
#home-button[disabled="true"] {
  -moz-image-region: rect(48px, 120px, 72px, 96px) !important;
}
#home-button:hover:active {
  -moz-image-region: rect(96px, 120px, 120px, 96px);
}

/* ----- DEFAULT DOWNLOADS BUTTON ----- */	

#downloads-button {
  -moz-image-region: rect(0px, 144px, 24px, 120px);
}
#downloads-button:hover {
  -moz-image-region: rect(24px, 144px, 48px, 120px);
}
#downloads-button[disabled="true"] {
  -moz-image-region: rect(48px, 144px, 72px, 120px);
}
#downloads-button:hover:active {
  -moz-image-region: rect(96px, 144px, 120px, 120px);
}

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

#history-button {
  -moz-image-region: rect(0px, 168px, 24px, 144px);
}
#history-button:hover {
  -moz-image-region: rect(24px, 168px, 48px, 144px);
}
#history-button[disabled="true"] {
  -moz-image-region: rect(48px, 168px, 72px, 144px);
}
#history-button:hover:active,
#history-button[checked="true"] {
  -moz-image-region: rect(96px, 168px, 120px, 144px);
}

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

#bookmarks-button {
  -moz-image-region: rect(0px, 192px, 24px, 168px);
}
#bookmarks-button:hover {
  -moz-image-region: rect(24px, 192px, 48px, 168px);
}
#bookmarks-button[disabled="true"] {
  -moz-image-region: rect(48px, 192px, 72px, 168px);
}
#bookmarks-button:hover:active,
#bookmarks-button[checked="true"] {
  -moz-image-region: rect(96px, 192px, 120px, 168px);
}
/* ----- DEFAULT PRINT BUTTON ----- */	

#print-button {
  -moz-image-region: rect(0px, 216px, 24px, 192px);
}
#print-button:hover {
  -moz-image-region: rect(24px, 216px, 48px, 192px);
}
#print-button[disabled="true"] {
  -moz-image-region: rect(48px, 216px, 72px, 192px);
}
#print-button:hover:active {
  -moz-image-region: rect(96px, 216px, 120px, 192px);
}

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

#new-tab-button {
  -moz-image-region: rect(0px, 240px, 24px, 216px);
}
#new-tab-button:hover {
  -moz-image-region: rect(24px, 240px, 48px, 216px);
}
#new-tab-button[disabled="true"] {
  -moz-image-region: rect(48px, 240px, 72px, 216px);
}
#new-tab-button:hover:active {
  -moz-image-region: rect(96px, 240px, 120px, 216px);
}

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

#new-window-button {
  -moz-image-region: rect(0px, 264px, 24px, 240px);
}
#new-window-button:hover {
  -moz-image-region: rect(24px, 264px, 48px, 240px);
}
#new-window-button[disabled="true"] {
  -moz-image-region: rect(48px, 264px, 72px, 240px);
}
#new-window-button:hover:active {
  -moz-image-region: rect(96px, 264px, 120px, 240px);
}

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

#cut-button {
  -moz-image-region: rect(0px, 288px, 24px, 264px);
}
#cut-button:hover {
  -moz-image-region: rect(24px, 288px, 48px, 264px);
}
#cut-button[disabled="true"] {
  -moz-image-region: rect(48px, 288px, 72px, 264px) !important;
}
#cut-button:hover:active,
#cut-button[checked="true"] {
  -moz-image-region: rect(96px, 288px, 120px, 264px);
}

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

#copy-button {
  -moz-image-region: rect(0px, 312px, 24px, 288px);
}
#copy-button:hover {
  -moz-image-region: rect(24px, 312px, 48px, 288px);
}
#copy-button[disabled="true"] {
  -moz-image-region: rect(48px, 312px, 72px, 288px) !important;
}
#copy-button:hover:active,
#copy-button[checked="true"] {
  -moz-image-region: rect(96px, 312px, 120px, 288px);
}
/* ----- DEFAULT PASTE BUTTON ----- */	

#paste-button {
  -moz-image-region: rect(0px, 336px, 24px, 312px);
}
#paste-button:hover {
  -moz-image-region: rect(24px, 336px, 48px, 312px);
}
#paste-button[disabled="true"] {
  -moz-image-region: rect(48px, 336px, 72px, 312px) !important;
}
#paste-button:hover:active,
#copy-button[checked="true"] {
  -moz-image-region: rect(96px, 336px, 120px, 312px);
}


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

toolbar[iconsize="small"] .toolbarbutton-1 {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  padding: 1px 3px 1px 3px !important;
}

/* ----- SMALL BACK BUTTON ----- */

toolbar[iconsize="small"] #back-button {
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}
toolbar[iconsize="small"] #back-button:hover {
  -moz-image-region: rect(16px, 16px, 32px, 0px);
}
toolbar[iconsize="small"] #back-button[disabled="true"] {
  -moz-image-region: rect(32px, 16px, 48px, 0px) !important;
}
toolbar[iconsize="small"] #back-button:hover:active,
toolbar[iconsize="small"] #back-button[buttondown="true"],
toolbar[iconsize="small"] #back-button[open="true"] {
  -moz-image-region: rect(64px, 16px, 80px, 0px);
}

/* ----- SMALL BACK BUTTON DROPMARKER ----- */

toolbar[iconsize="small"] #back-button .toolbarbutton-menubutton-dropmarker {
   margin-top: 0px;
  list-style-image: url("chrome://browser/skin/dropmark-nav-small.png");
  -moz-image-region: rect(0px, 14px, 16px, 0px);
}

toolbar[iconsize="small"] #back-button:hover .toolbarbutton-menubutton-dropmarker, 
toolbar[iconsize="small"] #back-button[buttonover="true"] .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(16px, 14px, 32px, 0px);
}

toolbar[iconsize="small"] #back-button[disabled="true"] .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/dropmark-nav-small.png") !important;
  -moz-image-region: rect(32px, 14px, 48px, 0px) !important;
}

toolbar[iconsize="small"] #back-button:hover:active .toolbarbutton-menubutton-dropmarker, 
toolbar[iconsize="small"] #back-button[buttondown="true"] .toolbarbutton-menubutton-dropmarker,
toolbar[iconsize="small"] #back-button[open="true"] .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(48px, 14px, 64px, 0px);
}

/* ----- SMALL FORWARD BUTTON ----- */

toolbar[iconsize="small"] #forward-button {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}
toolbar[iconsize="small"] #forward-button:hover {
  -moz-image-region: rect(16px, 32px, 32px, 16px);
}
toolbar[iconsize="small"] #forward-button[disabled="true"] {
  -moz-image-region: rect(32px, 32px, 48px, 16px) !important;
}
toolbar[iconsize="small"] #forward-button:hover:active,
toolbar[iconsize="small"] #forward-button[buttondown="true"],
toolbar[iconsize="small"] #forward-button[open="true"] {
  -moz-image-region: rect(64px, 32px, 80px, 16px);
}

/* ----- SMALL FORWARD BUTTON DROPMARKER ----- */

toolbar[iconsize="small"] #forward-button .toolbarbutton-menubutton-dropmarker { 
  margin-top: 0px; 
  list-style-image: url("chrome://browser/skin/dropmark-nav-small.png");
  -moz-image-region: rect(0px, 14px, 16px, 0px);
}

toolbar[iconsize="small"] #forward-button:hover .toolbarbutton-menubutton-dropmarker, 
toolbar[iconsize="small"] #forward-button[buttonover="true"] .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(16px, 14px, 32px, 0px);
}

toolbar[iconsize="small"] #forward-button[disabled="true"] .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/dropmark-nav-small.png") !important;
  -moz-image-region: rect(32px, 14px, 48px, 0px) !important;
}

toolbar[iconsize="small"] #forward-button:hover:active .toolbarbutton-menubutton-dropmarker, 
toolbar[iconsize="small"] #forward-button[buttondown="true"] .toolbarbutton-menubutton-dropmarker,
toolbar[iconsize="small"] #forward-button[open="true"] .toolbarbutton-menubutton-dropmarker {
  -moz-image-region: rect(48px, 14px, 64px, 0px);
}

/* ----- SMALL STOP BUTTON ----- */

toolbar[iconsize="small"] #stop-button {
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}
toolbar[iconsize="small"] #stop-button:hover {
  -moz-image-region: rect(16px, 48px, 32px, 32px);
}
toolbar[iconsize="small"] #stop-button[disabled="true"] {
  -moz-image-region: rect(32px, 48px, 48px, 32px) !important;
}
toolbar[iconsize="small"] #stop-button:hover:active {
  -moz-image-region: rect(64px, 48px, 80px, 32px);
}
/* ----- SMALL RELOAD BUTTON ----- */

toolbar[iconsize="small"] #reload-button {
  -moz-image-region: rect(0px, 64px, 16px, 48px);
}
toolbar[iconsize="small"] #reload-button:hover {
  -moz-image-region: rect(16px, 64px, 32px, 48px);
}
toolbar[iconsize="small"] #reload-button[disabled="true"] {
  -moz-image-region: rect(32px, 64px, 48px, 48px) !important;
}
toolbar[iconsize="small"] #reload-button:hover:active {
  -moz-image-region: rect(64px, 64px, 80px, 48px);
}
/* ----- SMALL HOME BUTTON ----- */

toolbar[iconsize="small"] #home-button {
  -moz-image-region: rect(0px, 80px, 16px, 64px);
}
toolbar[iconsize="small"] #home-button:hover {
  -moz-image-region: rect(16px, 80px, 32px, 64px);
}
toolbar[iconsize="small"] #home-button[disabled="true"] {
  -moz-image-region: rect(32px, 80px, 48px, 64px) !important;
}
toolbar[iconsize="small"] #home-button:hover:active {
  -moz-image-region: rect(64px, 80px, 80px, 64px);
}
/* ----- SMALL DOWNLOAD MANAGER BUTTON ----- */

toolbar[iconsize="small"] #downloads-button {
  -moz-image-region: rect(0px, 96px, 16px, 80px);
}
toolbar[iconsize="small"] #downloads-button:hover {
  -moz-image-region: rect(16px, 96px, 32px, 80px);
}
toolbar[iconsize="small"] #downloads-button[disabled="true"] {
  -moz-image-region: rect(32px, 96px, 48px, 80px) !important;
}
toolbar[iconsize="small"] #downloads-button:hover:active {
  -moz-image-region: rect(64px, 96px, 80px, 80px);
}
/* ----- SMALL HISTORY SIDEBAR BUTTON ----- */

toolbar[iconsize="small"] #history-button {
  -moz-image-region: rect(0px, 112px, 16px, 96px);
}
toolbar[iconsize="small"] #history-button:hover {
  -moz-image-region: rect(16px, 112px, 32px, 96px);
}
toolbar[iconsize="small"] #history-button[disabled="true"] {
  -moz-image-region: rect(32px, 112px, 48px, 96px) !important;
}
toolbar[iconsize="small"] #history-button:hover:active {
  -moz-image-region: rect(64px, 112px, 80px, 96px);
}
/* ----- SMALL BOOKMARK SIDEBAR BUTTON ----- */

toolbar[iconsize="small"] #bookmarks-button {
  -moz-image-region: rect(0px, 128px, 16px, 112px);
}
toolbar[iconsize="small"] #bookmarks-button:hover {
  -moz-image-region: rect(16px, 128px, 32px, 112px);
}
toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
  -moz-image-region: rect(32px, 128px, 48px, 112px) !important;
}
toolbar[iconsize="small"] #bookmarks-button:hover:active {
  -moz-image-region: rect(64px, 128px, 80px, 112px);
}
/* ----- SMALL PRINT BUTTON ----- */

toolbar[iconsize="small"] #print-button {
  -moz-image-region: rect(0px, 144px, 16px, 128px);
}
toolbar[iconsize="small"] #print-button:hover {
  -moz-image-region: rect(16px, 144px, 32px, 128px);
}
toolbar[iconsize="small"] #print-button[disabled="true"] {
  -moz-image-region: rect(32px, 144px, 48px, 128px) !important;
}
toolbar[iconsize="small"] #print-button:hover:active {
  -moz-image-region: rect(64px, 144px, 80px, 128px);
}
/* ----- SMALL NEW TAB BUTTON ----- */

toolbar[iconsize="small"] #new-tab-button {
  -moz-image-region: rect(0px, 160px, 16px, 144px);
}
toolbar[iconsize="small"] #new-tab-button:hover {
  -moz-image-region: rect(16px, 160px, 32px, 144px);
}
toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
  -moz-image-region: rect(32px, 160px, 48px, 144px) !important;
}
toolbar[iconsize="small"] #new-tab-button:hover:active {
  -moz-image-region: rect(64px, 160px, 80px, 144px);
}
/* ----- SMALL NEW WINDOW BUTTON ----- */

toolbar[iconsize="small"] #new-window-button {
  -moz-image-region: rect(0px, 176px, 16px, 160px);
}
toolbar[iconsize="small"] #new-window-button:hover {
  -moz-image-region: rect(16px, 176px, 32px, 160px);
}
toolbar[iconsize="small"] #new-window-button[disabled="true"] {
  -moz-image-region: rect(32px, 176px, 48px, 160px) !important;
}
toolbar[iconsize="small"] #new-window-button:hover:active {
  -moz-image-region: rect(64px, 176px, 80px, 160px);
}
/* ----- SMALL CUT BUTTON ----- */

toolbar[iconsize="small"] #cut-button {
  -moz-image-region: rect(0px, 192px, 16px, 176px);
}
toolbar[iconsize="small"] #cut-button:hover {
  -moz-image-region: rect(16px, 192px, 32px, 176px);
}
toolbar[iconsize="small"] #cut-button[disabled="true"] {
  -moz-image-region: rect(32px, 192px, 48px, 176px) !important;
}
toolbar[iconsize="small"] #cut-button:hover:active {
  -moz-image-region: rect(64px, 192px, 80px, 176px);
}
/* ----- SMALL COPY BUTTON ----- */

toolbar[iconsize="small"] #copy-button {
  -moz-image-region: rect(0px, 208px, 16px, 192px);
}
toolbar[iconsize="small"] #copy-button:hover {
  -moz-image-region: rect(16px, 208px, 32px, 192px);
}
toolbar[iconsize="small"] #copy-button[disabled="true"] {
  -moz-image-region: rect(32px, 208px, 48px, 192px) !important;
}
toolbar[iconsize="small"] #copy-button:hover:active {
  -moz-image-region: rect(64px, 208px, 80px, 192px);
}

/* ----- SMALL PASTE BUTTON ----- */

toolbar[iconsize="small"] #paste-button {
  -moz-image-region: rect(0px, 224px, 16px, 208px);
}
toolbar[iconsize="small"] #paste-button:hover {
  -moz-image-region: rect(16px, 224px, 32px, 208px);
}
toolbar[iconsize="small"] #paste-button[disabled="true"] {
  -moz-image-region: rect(32px, 224px, 48px, 208px) !important;
}
toolbar[iconsize="small"] #paste-button:hover:active {
  -moz-image-region: rect(64px, 224px, 80px, 208px);
}

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

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

#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 {
  margin-top: 5px;
  margin-bottom: 5px;
  -moz-margin-start: 4px;
  -moz-margin-end: 0px;
  width: 7em;
  min-width: 7em;
  padding: 0px;
  font: icon !important;
}

#urlbar[level="high"] > .autocomplete-textbox-container,
#urlbar[level="low"] > .autocomplete-textbox-container
 {
  margin: -2px;
  padding: 2px;
  background: url("chrome://browser/skin/Secure-background.gif") #FFFED8 repeat-x;
  color: black !important;
}

#urlbar[level="high"] > .autocomplete-history-dropmarker,
#urlbar[level="low"] > .autocomplete-history-dropmarker
 {
  margin: -2px;
  padding: 2px 6px;
  background: url("chrome://browser/skin/Secure-background.gif") #FFFED8 repeat-x;
}

#urlbar #lock-icon {
  height: 18px;
  margin: -1px;
}

#urlbar[level="high"] #lock-icon {
  list-style-image: url("chrome://browser/skin/Secure.png");
  -moz-image-region: rect(0px, 18px, 18px, 0px);
}
#urlbar[level="high"] #lock-icon:hover {
  -moz-image-region: rect(18px, 18px, 36px, 0px);
}
#urlbar[level="high"] #lock-icon:active {
  -moz-image-region: rect(36px, 18px, 54px, 0px);
}

#urlbar[level="low"] #lock-icon {
  list-style-image: url("chrome://browser/skin/Secure.png");
  -moz-image-region: rect(0px, 18px, 18px, 0px);
}
#urlbar[level="low"] #lock-icon:hover {
  -moz-image-region: rect(18px, 18px, 36px, 0px);
}
#urlbar[level="low"] #lock-icon:active {
  -moz-image-region: rect(36px, 18px, 54px, 0px);
}

#urlbar[level="broken"] #lock-icon {
  list-style-image: url("chrome://browser/skin/Secure-urlbar-broken.png");
}

#urlbar-container {
  -moz-padding-end: 5px;
}

#wrapper-urlbar-container #urlbar {
  -moz-user-input: disabled;
  cursor: -moz-grab;
}

#wrapper-urlbar-container #urlbar > .autocomplete-history-dropmarker {
  display: none;
}

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

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

#page-proxy-deck {
  cursor: -moz-grab;
}

#page-proxy-favicon {
  list-style-image: none;
}

#page-proxy-button {
  list-style-image: url("chrome://browser/skin/bookmarks/bookmark-item.png");
}

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


statusbarpanel#statusbar-display {
  padding-left: 0;
}

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

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

.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 {
  -moz-appearance: toolbarbutton;
  height: 24px;
}

#go-button,
#go-container {
  -moz-appearance: none;
  background-color: transparent;
  margin: 0;
  padding: 0;
  border-left: 0 !important;
  min-width: 0;
  list-style-image: url("chrome://browser/skin/Go.png");
  -moz-image-region: rect(0px, 25px, 22px, 0px);
}

.go-button-background {
  list-style-image: none;
}

#go-button:hover {
  -moz-image-region: rect(0px, 50px, 22px, 25px);
}

#go-button[disabled="true"] {
  -moz-image-region: rect(0px, 75px, 22px, 50px);
}

#go-button:hover:active {
  -moz-image-region: rect(0px, 100px, 22px, 75px);
}

toolbar:not([mode="text"]) #go-button,
toolbar:not([mode="text"]) .search-go-button,
toolbarpaletteitem:not([place="toolbar"]) #go-button,
toolbarpaletteitem:not([place="toolbar"]) .search-go-button {
  -moz-binding: url(chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image);
}

#go-button > .button-box {
  border: none;
}

#go-button > .toolbarbutton-icon {
  padding: 0px;
}

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

sidebarheader {
	border-bottom: 1px solid #A3A3A3;
        background: url("chrome://global/skin/inset_gradient_1px.png") repeat !important;
}

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

#sidebar-splitter {
	 border-right: 1px solid #8e8e8e;
         border-left: 1px solid #bebebe;
         background-color: #ececec;
} 

#sidebar-title {
  font: icon;
  color: #000;
}

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

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.png");
  -moz-image-region: rect(36px, 18px, 54px, 0px);
  display: -moz-box;
}

#security-button[level="low"] {
  list-style-image: url("chrome://browser/skin/Secure.png");
  -moz-image-region: rect(36px, 18px, 54px, 0px);
  display: -moz-box;
}

#security-button[level="broken"] {
  list-style-image: url("chrome://browser/skin/Security-broken.png");
  -moz-image-region: rect(36px, 18px, 54px, 0px);
  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: 0px; 
  margin-right: 1px !important;
}

#feed-button[feeds] {
  list-style-image: url("chrome://browser/skin/livemark-item.png");
  -moz-image-region: rect(0px, 36px, 18px, 18px);
}
#feed-button[feeds]:hover {
  -moz-image-region: rect(18px, 36px, 36px, 18px);
}
#feed-button[feeds]:active {
  -moz-image-region: rect(54px, 36px, 72px, 18px);
}

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

#navigator-throbber {
  -moz-appearance: none;
  -moz-user-focus: ignore;
  -moz-box-pack: center;
  margin: 0px 1px 0px 1px !important;
  border: none !important;
  padding: 0px !important;
  min-width: 0;
  background-color: transparent;
  list-style-image: url("chrome://global/skin/icons/notloading_16.png");
  padding: 8px !important;
  
}


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

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

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


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

#nav-bar {
	background-image: none !important;
}

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

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

.tabs-left {
	display: none !important;
}

/* ::::: close button ::::: */

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

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

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

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

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

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

#places-subscribe {
  list-style-image: url("chrome://browser/skin/page-livemarks.png");
  opacity: 1.0;
}

#places-subscribe[disabled="true"] {
  opacity: 0.3;
}

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

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

.toolbar-drop-indicator-bar {
  display: none;
  height: 16px;
  margin-bottom: -16px;
  margin-left: 4px;
  position: relative;
}

.toolbar-drop-indicator-bar[dragging="true"] {
  display: -moz-box;
}

toolbarbutton.bookmark-item[dragover="true"][open="true"] {
  -moz-appearance: none;
  background: Highlight !important;
  color: HighlightText !important;
  list-style-image: url('chrome://browser/skin/places/folderDragOver.png') !important;
  -moz-image-region: rect(0px, 16px, 16px, 0px) !important;
}

.bookmark-item[dragover-into="true"] {
  background: Highlight !important;
  color: HighlightText !important;
}

.bookmark-item[dragover-top="true"] {
  -moz-border-top-colors: #000000;
}

.bookmark-item[dragover-bottom="true"] {
  -moz-border-bottom-colors: #000000;
}
%endif

#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;
}
