dialog {
  border: 0;
  border-radius: var(--border-radius-sm);
  padding: 0;
  width: 90%;
  max-width: 1000px;
  transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete,
    opacity 0.3s, transform 0.3s;
  opacity: 0;
  color: currentColor;
  transform: translateX(-50px);
  overflow: hidden;
  border: 1px solid var(--neutral-300);
  position: fixed;
  margin: 5% auto;

  &[open] {
    opacity: 1;
    transform: translateX(0px);

    @starting-style {
      opacity: 0;
      transform: translateX(50px);
    }
  }

  &::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.dialog-wrapper {
  display: flex;
  flex-direction: column;
}

.dialog-top {
  padding: 1.6rem;
  border-bottom: 1px solid var(--neutral-300);
  flex: 0 0 auto;
}

.dialog-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.dialog-btn {
  position: absolute;
  inset-inline-end: 20px;
  top: 20px;

  svg {
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
  }

  &:hover svg {
    opacity: 0.8;
  }
}

.dialog-image {
  margin: 3rem auto 0;
}

.dialog-body {
  padding: 1rem 1.5rem 3rem;
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: 70vh;
}

.dialog-text li {
  margin-bottom: 8px;
}