.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.666);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  padding-inline: 1rem;
}

.dialog-box {
  width: min(100% - 2rem, 550px);
  padding: clamp(1.25rem, 0.961rem + 1.233vw, 1.75rem);
  background: var(--white);
  border-radius: 0.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.modal-scroll-wrapper {
  overflow: auto;
  max-height: calc(100vh - 10rem);
}

.dialog-box-heading {
  margin-block-end: 1rem;
}

.dialog-actions {
  flex-direction: column;
  gap: 1rem;
  margin-block-start: 1.25rem;

  & .compass-button {
    width: 100%;
  }
}

@media (min-width: 48rem) {
  .dialog-actions {
    flex-direction: row;
    justify-content: center;

    & .compass-button {
      width: fit-content;
    }
  }
}
