/* ***** 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 AccountProvisioner Code.
 *
 * The Initial Developer of the Original Code is
 * The Mozilla Foundation.
 * Portions created by the Initial Developer are Copyright (C) 2010
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 * Blake Winton <bwinton@mozillamessaging.com>
 * Bryan Clark <clarkbw@mozillamessaging.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 ***** */

* {
  margin: 0;
  padding: 0;
  -moz-box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-color: -moz-dialog;
}

input[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
  border:0 none;
}

input[type="submit"],
button {
  -moz-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  background-image: -moz-linear-gradient(center top , #EEEEEE 0%, #EEEEEE 50%, #E1E1E1 50%, #E1E1E1 100%);
  border-color: #AAAAAA #AAAAAA #888888;
  border-style: solid;
  border-width: 1px;
  color: #222222;
  cursor: pointer;
  font-weight: bold;
  font: 1em sans-serif;
  padding: 0 10px;
  min-height: 32px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.75);
}

input[type="submit"]:hover,
button:hover {
  background-image: -moz-linear-gradient(center top , #fafafa 0%, #fafafa 50%, #eee 50%, #eee 100%);
}

input[type="submit"]:active,
button:active {
  background-image: -moz-linear-gradient(center top , #ddd 0%, #ddd 100%);
}

input[type="submit"][disabled="true"], input[type="submit"][disabled="true"]:hover {
  background-image: -moz-linear-gradient(center top , #EEEEEE 0%, #EEEEEE 50%, #E1E1E1 50%, #E1E1E1 100%);
  opacity: 0.5;
  cursor: default;
}

#window {
  padding: 10px;
  width: 100%;
}

.tinyheader,
.header h2 {
  font-size: 20px;
  font-weight: bold;
  color: #222;
}

.tinyheader .title {
  display: none;
}

#instructions {
  font-size: smaller;
  color: #444;
  margin-bottom: 19px;
  margin-top: 6px;
}

#content .description {
  font-size: smaller;
  color: gray;
}

.header .commentary {
  font-size: small;
  margin: 5px;
}

#providerList {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#providers .icon {
  margin-left: 5px;
  margin-right: 5px;
  vertical-align: middle;
}

#providers .provider {
  width: 280px;
}

#providers .providerLabel {
  vertical-align: top;
  width: 240px;
  display: inline-block;
  word-wrap: break-word;
}

#providers input[type="checkbox"] {
  vertical-align: middle;
}

.otherLanguage,
#otherLanguages {
  display: none;
}

#otherLangDesc {
  text-decoration: underline;
  cursor: pointer;
  font-size: x-small;
  margin-top: 9px;
}

/* External things are links that open in a browser, so underline them. */
.external {
  text-decoration: underline;
}

#content,
#existing {
  background-color: rgba(255,255,255,0.9);
  -moz-border-radius: 5px;
  -moz-box-shadow: 0 0 2px rgba(0,0,0,0.75) inset;
  margin-bottom: 10px;
  overflow: visible;
}

#name {
  width: 82%;
}

#search {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-bottom: 14px;
}

hr {
  border-bottom: 1px solid #ccc;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  margin: 0;
  padding: 0;
}

input[type="text"], input[type="password"], textarea {
  height: 32px;
  font: 1em sans-serif;
  padding: 8px 2px;
  border: 1px solid #aaa;
  -moz-box-shadow: 0 1px 2px -1px rgba(0,0,0,0.25) inset;
}

#search input[type="text"] {
  margin-right: 10px;
  padding: 0 8px;
  width: 450px;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  -moz-box-shadow: 0 0 0 3px #CCF1FF inset;
}

textarea { height: auto; }

input[type="submit"].search {
  font-weight: bold;
}

#search #Name {
  padding-left: 24px;
  background-image: url("chrome://messenger/content/newmailaccount/search.gif");
  background-position: 5px center;
  background-repeat: no-repeat;
}

#search input[type="text"]:placeholder {
  color: #999;
}

#searchFields {
  margin-bottom: 13px;
  width: 100%;
}

#notifications .spinner,
#notifications .error,
#notifications .success {
  display: none;
}

.spinner {
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 25px;
  display: block;
}

.error {
  color: red;
  display: block;
}

.success .title {
  color: #333;
}

#FirstAndLastName {
  font-weight: bold;
}

.hbox.row.th.displayNone {
  display: none;
}

#results {
  width: 100%;
  margin: 10px 0;
  border: 1px solid #ccc;
  color: #333;
}

#results .price,
#results .provider {
  font-weight: bold;
}

#results .row {
  width: 100%;
  padding: 7px;
  background-color: #fff;
  -moz-box-align: center;
  -moz-box-pack: center;
  border-bottom: 1px solid #ccc;
}

#results :-moz-any(div.selection) {
  cursor: pointer;
}

#results .row:last-child {
  border-bottom: none;
}

#results .row:hover {
  background-color: #fafafa;
}

#results .row.th:hover {
  background-color: #f2f2f2;
}

#results .row.th {
  background-color: #f2f2f2;
}

#results .row.more {
  text-align: right;
}

#results:not(.showAll) .noUserLang {
  display: none;
}
.footer {
  margin-bottom: 10px;
}

.row .address.th {
  font-weight: normal;
}

.row .pricing.th {
  border-left: 1px solid #ccc;
  text-align: left;
  padding-left: 7px;
}

.row .address {
  font-weight: normal;
}

.row .pricing {
  text-align: right;
  min-width: 200px;
  display: none;
}

.pricing button.create {
  -moz-border-radius: 12px;
}

.pricing span.create {
  display: none;
}

#existing {
  width: 100%;
  color: graytext;
  font-weight: bold;
  text-align: center;
  padding: 15px;
}

#existing .header {
    text-align: left;
}

.contentPadded {
  padding: 15px;
}

/* === NEW ACCOUNT FORM === */

#new_account {
  display: none;
  padding: 10px;
}

#provision_form label {
  min-width: 150px;
  display: inline-block;
  color: #333333;
  text-align: right;
}

#provision_form label.tos {
  vertical-align: top;
}

#provision_form input {
  width: 100%;
}

#provision_form input[type="checkbox"] {
  width: auto;
}

#back, #submitbutton {
  margin: 10px;
}

#submitbutton {
  font-weight: bold;
}


/* === SUCCESSFUL ACCOUNT CREATION PAGE === */

#successful_account {
  display: none;
  padding: 10px;
  width: 100%;
}

#search_engine_wrap {
  display: none;
}

/* START hbox/vbox normalization from http://alex.dojotoolkit.org/2009/08/css-3-progress/ */
/* hbox and vbox classes for Mozilla only */
 
.hbox {
  display: -moz-box;
  -moz-box-orient: horizontal;
  -moz-box-align: stretch;

  /*display: box;*/
  /*box-orient: horizontal;*/
  /*box-align: stretch;*/
}

.hbox > * {
  -moz-box-flex: 0;
  /*box-flex: 0;*/
  display: block;
}

.vbox {
  display: -moz-box;
  -moz-box-orient: vertical;
  -moz-box-align: stretch;

  /*display: box;*/
  /*box-orient: vertical;*/
  /*box-align: stretch;*/
}

.vbox > * {
  -moz-box-flex: 0;
  /*box-flex: 0;*/
}

.spacer {
  -moz-box-flex: 1;
  /*box-flex: 1;*/
}

.reverse {
  -moz-box-direction: reverse;
  /*box-direction: reverse;*/
}

.boxFlex0 {
  -moz-box-flex: 0;
  /*box-flex: 0;*/
}

.boxFlex1, .boxFlex {
  -moz-box-flex: 1;
  /*box-flex: 1;*/
}

.boxFlex2 {
  -moz-box-flex: 2;
  /*box-flex: 2;*/
}

.start {
  -moz-box-pack: start;
  /*box-pack: start;*/
}
 
.end {
  -moz-box-pack: end;
  /*box-pack: end;*/
}
 
.center {
  -moz-box-pack: center;
  /*box-pack: center;*/
}
/* END hbox/vbox normalization from http://alex.dojotoolkit.org/2009/08/css-3-progress/ */

.cvv-image {
  vertical-align: middle;
  margin-left: 10px;
}

/* for the final page */
#successful_account h4 {
  margin: 0;
}

#success-message {
  padding-bottom: 10px;
}

#success-compose, #success-addons, #success-signature, #search_engine_wrap {
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid #888a85;
  background: -moz-linear-gradient( center bottom, rgb(238,238,236) 16%, rgb(255,255,255) 76%);
  -moz-border-radius: 5px;
}

#success-compose img, #success-addons img, #success-signature img {
  float: left;
  margin-right: 10px;
}

#search_engine_wrap img {
  vertical-align: middle;
  margin-right: 10px;
}

#existing .tinyheader button {
  font-size: 12px;
  font-weight: normal;
  margin-left: 7px;
  margin-right: 8px;
  display: inline;
  width: 260px;
  vertical-align: top;
}
