/* ***** 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 Personas.
 *
 * The Initial Developer of the Original Code is Mozilla.
 * Portions created by the Initial Developer are Copyright (C) 2007
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Chris Beard <cbeard@mozilla.org>
 *   Myk Melez <myk@mozilla.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 ***** */


/* Note: pan-OS styles live in the content/personas.css stylesheet. */


/******************************************************************************/
/* Header */

#main-window[persona] {
  -moz-appearance: none;
}

#main-window[persona] #navigator-toolbox toolbar {
  -moz-appearance: none;
  background-color: transparent;
  /*background-image: none !important;*/
}

#main-window[persona] #nav-bar {
  /* When we set -moz-appearance: none so the persona will appear, the toolbar
   * gains 1px tall top and bottom borders.  This causes the toolbar to become
   * 2px bigger overall, which would make content jump down two pixels.
   * To prevent that jump, we remove the top and bottom borders, matching their
   * state in the default theme with -moz-appearance: -moz-mac-unified-toolbar.
   */
  border-top: none;
  border-bottom: none;
}

#main-window[persona] #PersonalToolbar {
  /* The personal (a.k.a. bookmarks) toolbar doesn't have a -moz-appearance,
   * but it does have top and bottom borders, which we simply hide by setting
   * their color to transparent.  Note that the bottom border is set via both
   * border-bottom-color and -moz-border-bottom-colors in the default theme.
   * The latter appears to override the former, so we probably only need to set
   * -moz-border-bottom-colors to transparent, but we set them both anyway
   * just in case.
   */
  border-top-color: transparent;
  border-bottom-color: transparent;
  -moz-border-bottom-colors: transparent;
}

/* Gray out the window slightly when it's not active. */
#main-window[persona]:not([active="true"]) > #navigator-toolbox > toolbar,
#main-window[persona]:not([active="true"]) > #navigator-toolbox > #PersonalToolbar {
  -moz-appearance: none;
  background-color: transparent; 
}
#main-window[persona]:not([active="true"]) > #navigator-toolbox > #nav-bar {
  -moz-appearance: none;
  background-image: none; 
  background-color: transparent; 
}

#main-window[persona] #nav-bar {
  -moz-appearance: none;
  background-image: none; 
  background-color: transparent;
}



/* Change the toolbarbutton icons for the default toolbarbuttons when a persona
 * is active.  Firefox applies its version of Toolbar.png to all toolbarbuttons
 * with class toolbarbutton-1, but we can't simply do the same, since extensions
 * frequently apply that class to their toolbarbuttons, and our rule can
 * override the extensions' rules, causing our Toolbar.png to appear in place
 * of their icons (see bug 482318).  Instead we have to apply our icons to each
 * default toolbarbutton individually. */
#main-window[persona] #back-button,
#main-window[persona] #forward-button,
#main-window[persona] #reload-button,
#main-window[persona] #stop-button,
/* The Home button gets styled specially when placed on the Bookmarks Toolbar.
 * There it takes on the appearance of a bookmark.  And we don't want to hork
 * that.  So here we only apply the persona-specific style when the button
 * is not a bookmark item. */
#main-window[persona] #home-button:not(.bookmark-item),
#main-window[persona] #print-button,
#main-window[persona] #downloads-button,
#main-window[persona] #history-button,
#main-window[persona] #bookmarks-button,
#main-window[persona] #new-tab-button,
#main-window[persona] #new-window-button,
#main-window[persona] #cut-button,
#main-window[persona] #copy-button,
#main-window[persona] #paste-button,
#main-window[persona] #back-forward-dropmarker {
  list-style-image: url("chrome://personas/skin/Toolbar.png");
}

#main-window[persona] #back-button[chromedir="rtl"],
#main-window[persona] #forward-button[chromedir="rtl"],
#main-window[persona] #reload-button[chromedir="rtl"],
#main-window[persona] #stop-button[chromedir="rtl"],
/* The Home button gets styled specially when placed on the Bookmarks Toolbar.
 * There it takes on the appearance of a bookmark.  And we don't want to hork
 * that.  So here we only apply the persona-specific style when the button
 * is not a bookmark item. */
#main-window[persona] #home-button[chromedir="rtl"]:not(.bookmark-item),
#main-window[persona] #print-button[chromedir="rtl"],
#main-window[persona] #downloads-button[chromedir="rtl"],
#main-window[persona] #history-button[chromedir="rtl"],
#main-window[persona] #bookmarks-button[chromedir="rtl"],
#main-window[persona] #new-tab-button[chromedir="rtl"],
#main-window[persona] #new-window-button[chromedir="rtl"],
#main-window[persona] #cut-button[chromedir="rtl"],
#main-window[persona] #copy-button[chromedir="rtl"],
#main-window[persona] #paste-button[chromedir="rtl"],
#main-window[persona] #back-forward-dropmarker[chromedir="rtl"] {
  list-style-image: url("chrome://personas/skin/Toolbar-rtl.png");
}

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

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

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

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

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

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

#main-window[persona] toolbar[mode="icons"] #unified-back-forward-button > #back-button {
  -moz-image-region: rect(0px, 535px, 33px, 504px);
}

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

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

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

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

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

#main-window[persona] toolbar[mode="icons"] #unified-back-forward-button > #forward-button {
  -moz-image-region: rect(0px, 560px, 33px, 535px);
}

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

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

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

#main-window[persona] toolbar[mode="icons"] #unified-back-forward-button > #forward-button:hover:active:not([disabled]),
#main-window[persona] toolbar[mode="icons"] #unified-back-forward-button > #forward-button[open="true"] {
  -moz-image-region: rect(99px, 560px, 132px, 530px);
}

#main-window[persona] toolbar[mode="icons"] #unified-back-forward-button > #forward-button[chromedir="rtl"]:hover:active:not([disabled]),
#main-window[persona] toolbar[mode="icons"] #unified-back-forward-button > #forward-button[open="true"][chromedir="rtl"] {
  -moz-image-region: rect(99px, 545px, 132px, 514px);
}

#main-window[persona] #back-forward-dropmarker {
  -moz-image-region: rect(0px, 571px, 33px, 560px);
}

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

#main-window[persona] #back-forward-dropmarker[disabled="true"] {
 -moz-image-region: rect(33px, 571px, 66px, 560px);
}

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

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

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

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

#main-window[persona] toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #back-button {
  -moz-image-region: rect(0px, 605px, 23px, 571px);
}

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

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

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

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

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

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

#main-window[persona] toolbar[mode="icons"][iconsize="small"] #unified-back-forward-button > #forward-button {
  -moz-image-region: rect(0px, 638px, 23px, 605px);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* The Home button gets styled specially when placed on the Bookmarks Toolbar.
 * There it takes on the appearance of a bookmark.  And we don't want to hork
 * that.  So here we only apply the persona-specific style when the button
 * is not a bookmark item. */

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

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

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

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

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

#main-window[persona] #history-button[checked="true"] {
  -moz-image-region: rect(69px, 252px, 92px, 216px);
}

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

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

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

#main-window[persona] #bookmarks-button[checked="true"] {
  -moz-image-region: rect(69px, 288px, 92px, 252px);
}

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

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

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

/* ----- TOOLBAR NEW-TAB BUTTON ----- */        

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

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

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

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

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

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

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

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



/* Eliminate text shadows from toolbarbutton, tab, and statusbar text so it
 * doesn't create an unnatural color stroke on the bottom half of the text. */
#main-window[persona] .toolbarbutton-text,
#main-window[persona] .tab-text,
#browser-bottombox[persona] statusbar {
  text-shadow: none;
}

#main-window[persona] toolbarbutton.bookmark-item {
  -moz-appearance: none;
  background-color: transparent;
}

#main-window[persona] .tabbrowser-tabs {
  -moz-appearance: none;
  background-color: transparent;
  background-image: none !important;
}

#main-window[persona]:not([active="true"]) .tabbrowser-strip {
  opacity: 0.8; 
}

#main-window[persona] .tabbrowser-strip {
  -moz-appearance: none;
  /*background-image: url(chrome://personas/skin/tabbrowser-tabs-bkgnd.png) !important;*/
  background-color: transparent; 
  background-image: none !important;
}

#main-window[persona] .tabbrowser-tab {
  /*opacity: 0.6;*/
  /*color: black !important;*/
}

#main-window[persona] .tabbrowser-tab[selected="true"],
#main-window[persona] .tabbrowser-tab:hover {
  /*background-color: none;*/
  /*opacity: 0.6;*/
}

#main-window[persona] .tab-text,
#main-window[persona] .tab-text-shadow {
  /*font-weight: normal !important;*/
}

#main-window[persona] .tabbrowser-tab {
  -moz-appearance: none;
  -moz-border-radius: 0 0 6px 6px;
  color: #222;
  -moz-box-pack: center;
  -moz-box-align: center;
  margin-bottom: 1px;
  -moz-margin-end: 1px;
  padding: 0 5px;
  border-style: none solid solid;
  border-width: 3px;
  -moz-border-right-colors: rgba(0, 0, 0, .08) rgba(0, 0, 0, .17) rgba(180, 180, 180, .29);
  -moz-border-bottom-colors: rgba(0, 0, 0, .08) rgba(0, 0, 0, .17) rgba(180, 180, 180, .29);
  -moz-border-left-colors: rgba(0, 0, 0, .08) rgba(0, 0, 0, .17) rgba(180, 180, 180, .29);
  -moz-background-clip: padding;
  min-width: 1px !important;
  text-align: center;
  height: 24px;
  background-image: none !important;
}

#main-window[persona] .tabbrowser-tab:not([selected="true"]) {
  background-image: url(chrome://personas/skin/tabbrowser-tabs-bkgnd.png) !important;
  /*background-image: url(chrome://browser/skin/tabbrowser/tab-bkgnd.png);*/
  /*background-image: none !important;*/
}

#main-window[persona] .tabbrowser-tab[selected="true"] {
  -moz-user-focus: normal;
  padding: 0 6px 1px;
  border-width: 2px;
  -moz-border-left-colors: rgba(0, 0, 0, .1) rgba(0, 0, 0, .2);
  -moz-border-bottom-colors: rgba(0, 0, 0, .1) rgba(0, 0, 0, .2);
  -moz-border-right-colors: rgba(0, 0, 0, .1) rgba(0, 0, 0, .2);
  background-color: transparent !important;
  background-image: none !important;
}


/******************************************************************************/
/* Make some elements a little transparent so the persona flavors their look. */

#main-window[persona] #urlbar,
#main-window[persona] #searchbar {
  opacity: 0.8;
}

#main-window[persona] .findbar-find-next,
#main-window[persona] .findbar-find-previous,
#main-window[persona] .findbar-highlight {
  background: url("chrome://personas/skin/white-gray-gradient.png") repeat-x top center;
  color: inherit !important;
}

#main-window[persona] .findbar-container > toolbarbutton:not([disabled]):hover:active,
#main-window[persona] .findbar-container > hbox > toolbarbutton:not([disabled]):hover:active {
  background-image: url("chrome://personas/skin/white-gray-gradient-active.png");
  color: inherit !important;
}

#main-window[persona] .findbar-container > toolbarbutton[disabled],
#main-window[persona] .findbar-container > hbox > toolbarbutton[disabled] {
  opacity: 0.5;
}


/******************************************************************************/
/* Footer */

#browser-bottombox[persona] statusbar {
  border-top-width: 1px !important;
  border-top-color: transparent !important;
}

#browser-bottombox[persona] #FindToolbar {
  border-top-width: 1px;
  border-top-color: transparent;
}
