/* The modal from dom.js askDialog; colours come from the app's variables. */

.dialog {
  border: none;
  border-radius: 0.9em;
  padding: 1.25em;
  background: var(--surface);
  color: var(--text);
  width: min(20em, 85vw);
}

.dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
}

.dialog-title {
  margin: 0 0 1em;
  font-size: 1.2em;
  font-weight: 600;
}

.dialog-body {
  margin: 0 0 1em;
}

.dialog-input {
  width: 100%;
  margin-bottom: 1.25em;
  padding: 0.5em;
  font: inherit;
  font-size: 1.1em;            /* at least 16 px, so iOS does not zoom */
  border: 0.0625em solid var(--border);
  border-radius: 0.4em;
  background: var(--page);
  color: var(--text);
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
}

.dialog-buttons button {
  font: inherit;
  padding: 0.5em 1em;
  border: none;
  border-radius: 0.4em;
  background: transparent;
  color: var(--text);
}

.dialog-buttons .dialog-confirm {
  background: var(--accent);
  color: var(--on-accent);
}
