/* 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/. */

@import url("chrome://global/skin/in-content/common.css");

body {
  display: flex;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 0 48px;
  align-items: center;
  justify-content: center;
}

ul, ol {
  margin: 0;
  padding: 0;
  -moz-margin-start: 1em;
}

ul > li, ol > li {
  margin-bottom: .5em;
}

ul {
  list-style: disc;
}

#errorPageContainer {
  position: relative;
  min-width: 320px;
  max-width: 512px;
  margin-top: 2em;
  margin-bottom: 2em;
}

#errorPageContainer:-moz-dir(rtl) {
  background-position: right 0;
}

#errorTitle {
  background: url("chrome://global/skin/icons/info.svg") left 0 no-repeat;
  background-size: 3em;
  margin-inline-start: -5em;
  padding-inline-start: 5em;
}

@media (max-width: 675px) {
  #errorTitle {
    padding-top: 0;
    background-image: none !important;
    margin-inline-start: 0;
    padding-inline-start: 0;
  }
}

#errorPageContainer.certerror > #errorTitle {
  background-image: url("chrome://messenger/skin/icons/cert-error.svg");
}

#errorTitleText {
  border-bottom: 1px solid #c1c1c1;
  padding-bottom: 0.4em;
}

#errorTitleText:-moz-dir(rtl) {
  background-position: right 0;
}

#errorTryAgain {
  margin-top: 1.2em;
  min-width: 150px
}

#errorContainer {
  display: none;
}

/* Pressing the retry button will cause the cursor to flicker from a pointer to
 * not-allowed. Override the disabled cursor behaviour since we will never show
 * the button disabled as the initial state. */
button:disabled {
  cursor: pointer;
}

#brand {
  position: absolute;
  right: 0;
  bottom: -1.5em;
  margin-inline-end: 10px;
  opacity: .4;
}

#brand:-moz-dir(rtl) {
  right: auto;
  left: 0;
}

#brand > p {
  margin: 0;
}

#securityOverrideDiv {
  padding-top: 10px;
}

#securityOverrideContent {
  background-color: InfoBackground;
  color: InfoText;
  padding: 10px;
  border: 1px solid #c1c1c1;
}

/* Custom styling for 'blacklist' error class */
:root.blacklist {
  color: white;
  background-color: #722;
}

:root.blacklist #errorPageContainer > #errorTitle {
  background-image: url("chrome://messenger/skin/icons/blacklist.svg");
}

:root.blacklist #errorTitleText {
  color: white;
  border-bottom-color: white;
}

:root.blacklist a {
  color: white;
}

:root.blacklist #errorTryAgain {
  display: none;
}
