.tl-modal {
  border: 0.5rem solid var(--color-background-3);
  max-height: 90vh;
  min-height: 30vh;
  max-width: 50vw;
  padding: 1rem 2rem;
  width: 50vw;
}

.tl-modal[open]::backdrop {
  background-color: rgb(0 0 0 / 50%);
}

.tl-modal-button {
  background: var(--color-background-3);
  border: none;
  color: #fff;
  font-weight: bold;
  margin: 0.5rem 0;
  opacity: 0.8;
  padding: 0.25rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.tl-modal-button + dialog + .tl-modal-button {
  margin-left: 0.5rem;
}

.tl-modal-button:has(+ dialog + p) {
  margin-bottom: 1.5rem;
}

.tl-modal-close {
  display: block;
  margin: auto 0 1rem auto;
}

.u-overflow-hidden {
  overflow: hidden !important;
}

@media (max-width: 60rem) {
  .tl-modal {
    max-width: 90vw;
    padding: 0.5rem 1rem;
    width: 90vw;
  }
}