.dt-overlay {
  align-items: center;
  background: rgb(5 16 12 / 52%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100;
}

.dt-modal {
  background: var(--dt-color-surface);
  border-radius: var(--dt-radius-lg);
  box-shadow: var(--dt-shadow-md);
  color: var(--dt-color-text);
  max-width: 32rem;
  width: 100%;
}

.dt-modal__head {
  align-items: start;
  border-bottom: 1px solid var(--dt-color-border);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.dt-modal__head h2 {
  font-family: var(--dt-font-editorial);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0;
}

.dt-overlay__close {
  background: transparent;
  border: 0;
  color: var(--dt-color-text-muted);
  cursor: pointer;
  font-size: 1.25rem;
}

.dt-modal__body {
  color: var(--dt-color-text-muted);
  font-size: .875rem;
  line-height: 1.55;
  padding: 1.25rem;
}

.dt-modal__footer {
  align-items: center;
  border-top: 1px solid var(--dt-color-border);
  display: flex;
  gap: .625rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
}

@media (max-width: 34rem) {
  .dt-modal__head,
  .dt-modal__body,
  .dt-modal__footer {
    padding-inline: 1rem;
  }

  .dt-modal__footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dt-modal__footer > * {
    width: 100%;
  }
}
