.pop-modal-backing {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0, 0.5);
  user-select: none;
}

.pop-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;
  user-select: none;
  pointer-events: none;
}

.pop-modal-pane {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: fixed;
  padding: 0.5rem;
  margin: auto;
  flex-shrink: 1;
  background-color: var(--sea-blue);
  color: white;
  box-shadow: 0.25rem 0.25rem 0.25rem var(--lake-blue);
  border-radius: 0.25rem;
  pointer-events: initial;
  min-width: min(20rem, 90vw);
  max-width: min(40rem, 90vw);
  max-height: 95vh;
}

.pop-modal-pane.scroll {
  overflow-y: scroll;
  padding-right: 1rem;
}

.pop-modal-pane.noscroll:not(:has(> :is(.pop-modal-title, .pop-modal-controls))) {
  padding: 0;
  border-width: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: unset;
}

.pop-modal-title {
  font-weight: bold;
  margin: 0.5rem;
}

.pop-modal-message {
  margin: 0.5rem;
}


.pop-modal-controls {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  margin: 0.5rem 0;
}

.pop-modal-dom-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0.5rem;
  overflow-y: scroll;
  padding-right: 1rem;
}

.pop-modal-controls > .btn {
  padding: 0 1rem;
  margin-right: 0;
  margin-left: 0;
}

.pop-modal-controls > .btn:not(:first-child) {
  margin-left: 0.25rem;
}

.pop-modal-controls > .btn:not(:last-child) {
  margin-right: 0.25rem;
}

