/* 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: grid;
  grid-template-columns: 37px auto;
  grid-template-rows: 32px auto 50px;
  grid-gap: 5px;
  align-items: center;
  width: 580px;
  height: 290px;
  padding: 50px 50px 20px;
  margin: auto;
  background-color: 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;
}

::slotted([slot="dialog-icon"]) {
  width: 32px;
  height: 32px;
  -moz-context-properties: fill;
  fill: currentColor;
}

::slotted([slot="dialog-title"]) {
  font-size: 2.2em;
  user-select: none;
  margin: 0;
}

::slotted([slot="content"]) {
  grid-column-start: 2;
  align-self: baseline;
  margin-top: 16px;
  line-height: 1.4em;
}

::slotted([slot="buttons"]) {
  grid-column: 1 / 4;
  grid-row-start: 3;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.dialog-body {
  padding-block: 40px 16px;
  padding-inline: 45px 32px;
}
