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

.overlay {
  position: fixed;
  z-index: 1;
  inset: 0;
  background-color: var(--background-color-overlay);
  display: flex;
}

.container {
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  max-width: 500px;
  min-height: 200px;
  margin: auto;
  background: var(--background-color-canvas);
  color: var(--text-color);
  box-shadow: var(--logins-dialog-shadow);
  border: var(--logins-dialog-border);
  /* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
  border-radius: var(--logins-dialog-border-radius);

  /* show a border in high contrast mode */
  outline: 1px solid transparent;
}

.title {
  font-size: 1.5em;
  font-weight: normal;
  user-select: none;
  margin: 0;
}

.message {
  color: var(--text-color-deemphasized);
  margin-bottom: 0;
}

.dismiss-button {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  min-width: 20px;
  min-height: 20px;
  margin: 16px;
  padding: 0;
  line-height: 0;
}

.dismiss-icon {
  -moz-context-properties: fill;
  fill: currentColor;
  user-select: none;
}

.warning-icon {
  -moz-context-properties: fill;
  fill: currentColor;
  user-select: none;
  width: var(--size-image-xsmall);
  height: var(--size-image-xsmall);
  margin: 16px;
}

.content,
.buttons {
  text-align: center;
  padding: 16px 32px;
}
