.dialog-overlay {
  align-items: center;
  background-color: rgb(0 0 0 / 75%);
  bottom: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1;
}

.dialog-overlay.active {
  display: flex;
}

.dialog {
  background-color: #666;
  border: #666 solid 1px;
  max-width: 36rem;
  overflow: hidden;
  padding: 0;
  width: calc(100% - 2 * var(--responsive-margin, 0.5rem));
}

.dialog .box-header {
  background-color: #333;
  border-bottom: #666 solid 1px;
  color: #fff;
  font-weight: bold;
  padding: 0.5rem;
}

.dialog .box-content {
  padding: var(--responsive-margin, 0.5rem);
}

.dialog .button-row {
  display: flex;
  justify-content: center;
  margin-top: var(--responsive-margin, 0.5rem);
}

.dialog .button-row button + button {
  margin-left: var(--responsive-margin, 0.5rem);
}

.dialog-ok {
  cursor: pointer;
  width: auto;
}

.dialog-response {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.dialog-icon {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 32px;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  height: 32px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  width: 32px;
}

.dialog-icon.error {
  background-color: #f00;
}

.dialog-icon.info {
  background-color: #4da3ff;
}

.dialog-message {
  flex: 1;
}
