#errorDialog {
  display: none;
  box-sizing: border-box;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100vw - 32px));
  height: auto;
  min-height: 238px;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 25px 25px 19px;
  border: 3px solid #dedede;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #f7f7f7 100%);
  color: #444;
  box-shadow:
    0 14px 38px #17171745,
    inset 0 1px #fff;
  font-family: Arial, sans-serif;
  overflow-y: auto;
}

#errorDialog[open] {
  display: flex;
  flex-direction: column;
}

#errorDialog::backdrop {
  background: #25252538;
  backdrop-filter: none;
}

#errorMessage {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font:
    17px/1.38 Arial,
    sans-serif;
  color: #444;
}

.classic-error-ok {
  align-self: center;
  margin-top: auto;
  transform: translateY(-1px);
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d0d0d0;
  border-radius: 7px;
  background: linear-gradient(#fff, #f1f1f1);
  box-shadow:
    0 2px 4px #00000018,
    inset 0 1px #fff;
  color: #4388c8;
  font:
    bold 14px Arial,
    sans-serif;
  cursor: pointer;
}

#errorMessage {
  padding-bottom: 20px;
}

.classic-error-ok:hover {
  background: #eaf4fc;
  border-color: #a9cce8;
}

.classic-error-ok:focus-visible {
  outline: 2px solid #4e9bdd;
  outline-offset: 2px;
}
