/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

* {
  margin: 0;
  padding: 0;
  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 {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  background-image: linear-gradient(#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: linear-gradient(#fafafa 0%, #fafafa 50%, #eee 50%, #eee 100%);
}

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

input[type="submit"][disabled="true"], input[type="submit"][disabled="true"]:hover {
  background-image: linear-gradient(#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,
#otherLangDesc {
  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);
  border-radius: 5px;
  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;
  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 {
  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;
}

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

#resultsHeader.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 {
  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: linear-gradient(to top, rgb(238,238,236) 16%, rgb(255,255,255) 76%);
  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;
}

#otherLangDesc.fadeIn {
  animation-duration: 0.4s;
  animation-name: fadein;
  display: block;
  opacity: 1.0;
}

@keyframes fadein {
  0% {
    opacity: 0.0;
    display: none;
  }
  1% {
    opacity: 0.0;
    display: block;
  }
  100% {
    opacity: 1.0;
    display: block;
  }
}

#otherLangDesc.fadeOut {
  animation-duration: 0.4s;
  animation-name: fadeout;
  display: none;
  opacity: 0.0;
}

@keyframes fadeout {
  0% {
    opacity: 1.0;
    display: block;
  }
  99% {
    opacity: 0.0;
    display: none;
  }
  100% {
    opacity: 0.0;
    display: none;
  }
}
