dialog {
  top: 20%;
  margin: 0 auto;
  border: none;
  border-radius: 8px;
  padding: 16px;
  width: 400px;

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

  .inner {
    display: flex;
    flex-direction: column;
    gap: 20px;

    header {
      display: flex;
      justify-content: space-between;
      align-items: top;

      .cancel {
        font-family: "Font Awesome 6 Pro";
        content: "\58";
        color: inherit;
      }
    }

    .ss-content {
      --ss-content-height: 200px;
    }

    .actions {
      flex-direction: row;
      justify-content: space-between;
    }
  }
}

body:has(dialog[open]) {
  overflow: hidden;
}